@wzyjs/utils 0.2.54 → 0.2.56
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/browser.cjs.js +13 -5
- package/dist/browser.esm.js +13 -5
- package/dist/common/dayjs.d.ts +6 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node.cjs.js +6315 -76040
- package/dist/node.esm.js +6176 -75863
- package/package.json +4 -4
- package/dist/common/location.d.ts +0 -8
package/dist/browser.cjs.js
CHANGED
|
@@ -10359,6 +10359,7 @@ __export(exports_browser, {
|
|
|
10359
10359
|
isAborted: () => isAborted,
|
|
10360
10360
|
intersection: () => intersectionType,
|
|
10361
10361
|
instanceof: () => instanceOfType,
|
|
10362
|
+
initChinaDayjs: () => initChinaDayjs,
|
|
10362
10363
|
imageToBase64: () => imageToBase64,
|
|
10363
10364
|
hexToRgba: () => hexToRgba2,
|
|
10364
10365
|
getType: () => getType,
|
|
@@ -19461,15 +19462,22 @@ import_dayjs.default.extend(import_updateLocale.default);
|
|
|
19461
19462
|
import_dayjs.default.extend(import_timezone.default);
|
|
19462
19463
|
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
19463
19464
|
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
19464
|
-
import_dayjs.default.locale("zh-cn");
|
|
19465
|
-
import_dayjs.default.tz.setDefault("Asia/Shanghai");
|
|
19466
|
-
import_dayjs.default.updateLocale("zh-cn", {
|
|
19467
|
-
weekStart: 1
|
|
19468
|
-
});
|
|
19469
19465
|
var Timezone;
|
|
19470
19466
|
((Timezone2) => {
|
|
19471
19467
|
Timezone2["AsiaShanghai"] = "Asia/Shanghai";
|
|
19468
|
+
Timezone2["AsiaTokyo"] = "Asia/Tokyo";
|
|
19469
|
+
Timezone2["AmericaNewYork"] = "America/New_York";
|
|
19470
|
+
Timezone2["EuropeLondon"] = "Europe/London";
|
|
19471
|
+
Timezone2["EuropeBerlin"] = "Europe/Berlin";
|
|
19472
19472
|
})(Timezone ||= {});
|
|
19473
|
+
var initChinaDayjs = () => {
|
|
19474
|
+
import_dayjs.default.locale("zh-cn");
|
|
19475
|
+
import_dayjs.default.tz.setDefault("Asia/Shanghai" /* AsiaShanghai */);
|
|
19476
|
+
import_dayjs.default.updateLocale("zh-cn", {
|
|
19477
|
+
weekStart: 1
|
|
19478
|
+
});
|
|
19479
|
+
return import_dayjs.default;
|
|
19480
|
+
};
|
|
19473
19481
|
var dayjs_default = import_dayjs.default;
|
|
19474
19482
|
// src/browser/index.ts
|
|
19475
19483
|
var import_md5 = __toESM(require_md5());
|
package/dist/browser.esm.js
CHANGED
|
@@ -19279,15 +19279,22 @@ import_dayjs.default.extend(import_updateLocale.default);
|
|
|
19279
19279
|
import_dayjs.default.extend(import_timezone.default);
|
|
19280
19280
|
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
19281
19281
|
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
19282
|
-
import_dayjs.default.locale("zh-cn");
|
|
19283
|
-
import_dayjs.default.tz.setDefault("Asia/Shanghai");
|
|
19284
|
-
import_dayjs.default.updateLocale("zh-cn", {
|
|
19285
|
-
weekStart: 1
|
|
19286
|
-
});
|
|
19287
19282
|
var Timezone;
|
|
19288
19283
|
((Timezone2) => {
|
|
19289
19284
|
Timezone2["AsiaShanghai"] = "Asia/Shanghai";
|
|
19285
|
+
Timezone2["AsiaTokyo"] = "Asia/Tokyo";
|
|
19286
|
+
Timezone2["AmericaNewYork"] = "America/New_York";
|
|
19287
|
+
Timezone2["EuropeLondon"] = "Europe/London";
|
|
19288
|
+
Timezone2["EuropeBerlin"] = "Europe/Berlin";
|
|
19290
19289
|
})(Timezone ||= {});
|
|
19290
|
+
var initChinaDayjs = () => {
|
|
19291
|
+
import_dayjs.default.locale("zh-cn");
|
|
19292
|
+
import_dayjs.default.tz.setDefault("Asia/Shanghai" /* AsiaShanghai */);
|
|
19293
|
+
import_dayjs.default.updateLocale("zh-cn", {
|
|
19294
|
+
weekStart: 1
|
|
19295
|
+
});
|
|
19296
|
+
return import_dayjs.default;
|
|
19297
|
+
};
|
|
19291
19298
|
var dayjs_default = import_dayjs.default;
|
|
19292
19299
|
// src/browser/index.ts
|
|
19293
19300
|
var import_md5 = __toESM(require_md5(), 1);
|
|
@@ -20903,6 +20910,7 @@ export {
|
|
|
20903
20910
|
isAborted,
|
|
20904
20911
|
intersectionType as intersection,
|
|
20905
20912
|
instanceOfType as instanceof,
|
|
20913
|
+
initChinaDayjs,
|
|
20906
20914
|
imageToBase64,
|
|
20907
20915
|
hexToRgba2 as hexToRgba,
|
|
20908
20916
|
getType,
|
package/dist/common/dayjs.d.ts
CHANGED
|
@@ -6,8 +6,13 @@ import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
|
|
|
6
6
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
7
7
|
import 'dayjs/locale/zh-cn';
|
|
8
8
|
export declare enum Timezone {
|
|
9
|
-
AsiaShanghai = "Asia/Shanghai"
|
|
9
|
+
AsiaShanghai = "Asia/Shanghai",
|
|
10
|
+
AsiaTokyo = "Asia/Tokyo",
|
|
11
|
+
AmericaNewYork = "America/New_York",
|
|
12
|
+
EuropeLondon = "Europe/London",
|
|
13
|
+
EuropeBerlin = "Europe/Berlin"
|
|
10
14
|
}
|
|
15
|
+
export declare const initChinaDayjs: () => typeof dayjs;
|
|
11
16
|
export { Dayjs } from 'dayjs';
|
|
12
17
|
declare const _default: typeof dayjs & {
|
|
13
18
|
isBetween: typeof isBetween;
|
package/dist/common/index.d.ts
CHANGED