reykit 1.0.90 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.d.ts +4 -0
- package/dist/index.js +29 -24
- package/dist/net.d.ts +2 -2
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28015,8 +28015,13 @@ const qA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
28015
28015
|
Notice: xA,
|
|
28016
28016
|
notice: VT,
|
|
28017
28017
|
useLoading: NA
|
|
28018
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
28019
|
-
|
|
28018
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
28019
|
+
function YA() {
|
|
28020
|
+
document.documentElement.classList.add("debug");
|
|
28021
|
+
}
|
|
28022
|
+
const GA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28023
|
+
__proto__: null,
|
|
28024
|
+
debugCss: YA
|
|
28020
28025
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28021
28026
|
function* ES(g, U, j) {
|
|
28022
28027
|
if (j === 0) throw new Error('the parameter "step" cannot be 0');
|
|
@@ -28028,16 +28033,16 @@ function* ES(g, U, j) {
|
|
|
28028
28033
|
for (let J = T; J > U; J += j)
|
|
28029
28034
|
yield J;
|
|
28030
28035
|
}
|
|
28031
|
-
function
|
|
28036
|
+
function XA(g, U, j) {
|
|
28032
28037
|
let T;
|
|
28033
28038
|
return U === void 0 ? T = ES(g) : T = ES(g, U, j), Array.from(T);
|
|
28034
28039
|
}
|
|
28035
|
-
const
|
|
28040
|
+
const QA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28036
28041
|
__proto__: null,
|
|
28037
28042
|
range: ES,
|
|
28038
|
-
rangeArray:
|
|
28043
|
+
rangeArray: XA
|
|
28039
28044
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28040
|
-
async function
|
|
28045
|
+
async function VA(g, U) {
|
|
28041
28046
|
let {
|
|
28042
28047
|
params: j,
|
|
28043
28048
|
body: T,
|
|
@@ -28072,18 +28077,18 @@ async function QA(g, U) {
|
|
|
28072
28077
|
}
|
|
28073
28078
|
return ue;
|
|
28074
28079
|
}
|
|
28075
|
-
const
|
|
28080
|
+
const ZA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28076
28081
|
__proto__: null,
|
|
28077
|
-
request:
|
|
28078
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
28082
|
+
request: VA
|
|
28083
|
+
}, Symbol.toStringTag, { value: "Module" })), LA = /^((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/, wA = /^https?:\/\/[^\s/$.?#].[^\s]*$/, JA = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/, KA = /^1[3-9]\d{9}$/, $A = /^[\u4e00-\u9fa5]+$/, WA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28079
28084
|
__proto__: null,
|
|
28080
|
-
PATTERN_CN:
|
|
28081
|
-
PATTERN_EMAIL:
|
|
28082
|
-
PATTERN_IP:
|
|
28083
|
-
PATTERN_PHONE:
|
|
28084
|
-
PATTERN_URL:
|
|
28085
|
+
PATTERN_CN: $A,
|
|
28086
|
+
PATTERN_EMAIL: JA,
|
|
28087
|
+
PATTERN_IP: LA,
|
|
28088
|
+
PATTERN_PHONE: KA,
|
|
28089
|
+
PATTERN_URL: wA
|
|
28085
28090
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28086
|
-
class
|
|
28091
|
+
class kA {
|
|
28087
28092
|
/**
|
|
28088
28093
|
* Build instance.
|
|
28089
28094
|
*
|
|
@@ -28175,19 +28180,19 @@ class WA {
|
|
|
28175
28180
|
this.set(U, !T);
|
|
28176
28181
|
}
|
|
28177
28182
|
}
|
|
28178
|
-
const
|
|
28183
|
+
const FA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28179
28184
|
__proto__: null,
|
|
28180
|
-
Storager:
|
|
28181
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
28185
|
+
Storager: kA
|
|
28186
|
+
}, Symbol.toStringTag, { value: "Module" })), c3 = {
|
|
28182
28187
|
component: qA,
|
|
28183
|
-
base:
|
|
28184
|
-
data:
|
|
28185
|
-
net:
|
|
28186
|
-
re:
|
|
28188
|
+
base: GA,
|
|
28189
|
+
data: QA,
|
|
28190
|
+
net: ZA,
|
|
28191
|
+
re: WA,
|
|
28187
28192
|
react: UA,
|
|
28188
28193
|
twc: hA,
|
|
28189
|
-
window:
|
|
28194
|
+
window: FA
|
|
28190
28195
|
};
|
|
28191
28196
|
export {
|
|
28192
|
-
|
|
28197
|
+
c3 as default
|
|
28193
28198
|
};
|
package/dist/net.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* @param option.body - Request body data.
|
|
14
14
|
* - `URLSearchParams` : Form data. Automatic set `Content-Type` to `application/x-www-form-urlencoded`.
|
|
15
15
|
* - `FormData` : Multi form data. Automatic set `Content-Type` to `multipart/form-data`.
|
|
16
|
-
* - `File` : `file` item of multi form data.
|
|
17
|
-
* - `Blob` : Bytes data.
|
|
16
|
+
* - `File` : `file` item of multi form data. Automatic set `Content-Type` to attribute `type` value.
|
|
17
|
+
* - `Blob` : Bytes data. Automatic set `Content-Type` to attribute `type` value.
|
|
18
18
|
* - `Record<string, any> | string` : JSON data. Automatic set `Content-Type` to `application/json`.
|
|
19
19
|
* @param option.headers - Request header data.
|
|
20
20
|
* @param option.method - Request method.
|