@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.
@@ -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());
@@ -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,
@@ -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;
@@ -9,4 +9,4 @@ export * from './other';
9
9
  export * from './number';
10
10
  export * from './array';
11
11
  export * from './image';
12
- export { default as dayjs, Dayjs, Timezone } from './dayjs';
12
+ export { default as dayjs, Dayjs, Timezone, initChinaDayjs } from './dayjs';
@@ -1,4 +1,5 @@
1
1
  export * from './mail';
2
2
  export * from './file';
3
+ export * from './oss';
3
4
  export { default as DataStore, DataStoreOptions } from 'nedb';
4
5
  export * as cheerio from 'cheerio';