@nocobase/plugin-backup-restore 2.2.19 → 2.2.21

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.
Files changed (195) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/@hapi/topo/package.json +1 -1
  3. package/dist/node_modules/@xhmikosr/decompress/package.json +1 -1
  4. package/dist/node_modules/archiver/package.json +1 -1
  5. package/dist/node_modules/fs-extra/package.json +1 -1
  6. package/dist/node_modules/moment/LICENSE +1 -1
  7. package/dist/node_modules/moment/dist/locale/am-et.js +62 -0
  8. package/dist/node_modules/moment/dist/locale/ar-dz.js +8 -8
  9. package/dist/node_modules/moment/dist/locale/ar-ly.js +8 -8
  10. package/dist/node_modules/moment/dist/locale/ar-ps.js +112 -0
  11. package/dist/node_modules/moment/dist/locale/ar.js +8 -8
  12. package/dist/node_modules/moment/dist/locale/be.js +2 -2
  13. package/dist/node_modules/moment/dist/locale/bs.js +14 -4
  14. package/dist/node_modules/moment/dist/locale/ca.js +7 -7
  15. package/dist/node_modules/moment/dist/locale/cs.js +5 -4
  16. package/dist/node_modules/moment/dist/locale/cv.js +2 -2
  17. package/dist/node_modules/moment/dist/locale/de-at.js +29 -1
  18. package/dist/node_modules/moment/dist/locale/de-ch.js +29 -1
  19. package/dist/node_modules/moment/dist/locale/de.js +29 -1
  20. package/dist/node_modules/moment/dist/locale/en-au.js +6 -6
  21. package/dist/node_modules/moment/dist/locale/en-ca.js +6 -6
  22. package/dist/node_modules/moment/dist/locale/en-gb.js +6 -6
  23. package/dist/node_modules/moment/dist/locale/en-ie.js +6 -6
  24. package/dist/node_modules/moment/dist/locale/en-il.js +6 -6
  25. package/dist/node_modules/moment/dist/locale/en-in.js +6 -6
  26. package/dist/node_modules/moment/dist/locale/en-nz.js +6 -6
  27. package/dist/node_modules/moment/dist/locale/en-sg.js +6 -6
  28. package/dist/node_modules/moment/dist/locale/hu.js +3 -3
  29. package/dist/node_modules/moment/dist/locale/id.js +12 -1
  30. package/dist/node_modules/moment/dist/locale/it.js +4 -4
  31. package/dist/node_modules/moment/dist/locale/ka.js +1 -1
  32. package/dist/node_modules/moment/dist/locale/ku-kmr.js +121 -0
  33. package/dist/node_modules/moment/dist/locale/lt.js +2 -2
  34. package/dist/node_modules/moment/dist/locale/me.js +2 -2
  35. package/dist/node_modules/moment/dist/locale/nb.js +4 -4
  36. package/dist/node_modules/moment/dist/locale/nl-be.js +2 -2
  37. package/dist/node_modules/moment/dist/locale/nl.js +1 -1
  38. package/dist/node_modules/moment/dist/locale/oc-lnc.js +6 -6
  39. package/dist/node_modules/moment/dist/locale/pl.js +1 -1
  40. package/dist/node_modules/moment/dist/locale/ps.js +177 -0
  41. package/dist/node_modules/moment/dist/locale/pt-br.js +14 -6
  42. package/dist/node_modules/moment/dist/locale/ru.js +2 -2
  43. package/dist/node_modules/moment/dist/locale/sv.js +7 -7
  44. package/dist/node_modules/moment/dist/locale/sw.js +56 -14
  45. package/dist/node_modules/moment/dist/locale/tet.js +6 -6
  46. package/dist/node_modules/moment/dist/locale/tlh.js +8 -8
  47. package/dist/node_modules/moment/dist/locale/tzl.js +2 -2
  48. package/dist/node_modules/moment/dist/locale/uk.js +9 -8
  49. package/dist/node_modules/moment/dist/locale/uz-latn.js +1 -1
  50. package/dist/node_modules/moment/dist/locale/uz.js +1 -1
  51. package/dist/node_modules/moment/dist/locale/x-pseudo.js +6 -6
  52. package/dist/node_modules/moment/dist/moment.js +1274 -1042
  53. package/dist/node_modules/moment/dojo.profile.js +11 -0
  54. package/dist/node_modules/moment/ender.js +1 -1
  55. package/dist/node_modules/moment/locale/am-et.js +73 -0
  56. package/dist/node_modules/moment/locale/ar-dz.js +8 -8
  57. package/dist/node_modules/moment/locale/ar-ly.js +8 -8
  58. package/dist/node_modules/moment/locale/ar-ps.js +123 -0
  59. package/dist/node_modules/moment/locale/ar.js +8 -8
  60. package/dist/node_modules/moment/locale/be.js +2 -2
  61. package/dist/node_modules/moment/locale/bm.js +2 -0
  62. package/dist/node_modules/moment/locale/bs.js +14 -4
  63. package/dist/node_modules/moment/locale/ca.js +7 -7
  64. package/dist/node_modules/moment/locale/cs.js +5 -4
  65. package/dist/node_modules/moment/locale/cv.js +2 -2
  66. package/dist/node_modules/moment/locale/de-at.js +29 -1
  67. package/dist/node_modules/moment/locale/de-ch.js +29 -1
  68. package/dist/node_modules/moment/locale/de.js +29 -1
  69. package/dist/node_modules/moment/locale/en-au.js +6 -6
  70. package/dist/node_modules/moment/locale/en-ca.js +6 -6
  71. package/dist/node_modules/moment/locale/en-gb.js +6 -6
  72. package/dist/node_modules/moment/locale/en-ie.js +6 -6
  73. package/dist/node_modules/moment/locale/en-il.js +6 -6
  74. package/dist/node_modules/moment/locale/en-in.js +6 -6
  75. package/dist/node_modules/moment/locale/en-nz.js +6 -6
  76. package/dist/node_modules/moment/locale/en-sg.js +6 -6
  77. package/dist/node_modules/moment/locale/hu.js +3 -3
  78. package/dist/node_modules/moment/locale/id.js +12 -1
  79. package/dist/node_modules/moment/locale/it.js +4 -4
  80. package/dist/node_modules/moment/locale/ka.js +1 -1
  81. package/dist/node_modules/moment/locale/ku-kmr.js +125 -0
  82. package/dist/node_modules/moment/locale/lt.js +2 -2
  83. package/dist/node_modules/moment/locale/me.js +2 -2
  84. package/dist/node_modules/moment/locale/mk.js +0 -1
  85. package/dist/node_modules/moment/locale/nb.js +4 -4
  86. package/dist/node_modules/moment/locale/nl-be.js +2 -2
  87. package/dist/node_modules/moment/locale/nl.js +1 -1
  88. package/dist/node_modules/moment/locale/oc-lnc.js +6 -6
  89. package/dist/node_modules/moment/locale/pl.js +1 -1
  90. package/dist/node_modules/moment/locale/ps.js +188 -0
  91. package/dist/node_modules/moment/locale/pt-br.js +14 -6
  92. package/dist/node_modules/moment/locale/ru.js +2 -2
  93. package/dist/node_modules/moment/locale/sv.js +7 -7
  94. package/dist/node_modules/moment/locale/sw.js +56 -14
  95. package/dist/node_modules/moment/locale/tet.js +6 -6
  96. package/dist/node_modules/moment/locale/tlh.js +8 -8
  97. package/dist/node_modules/moment/locale/tzl.js +2 -2
  98. package/dist/node_modules/moment/locale/uk.js +9 -8
  99. package/dist/node_modules/moment/locale/uz-latn.js +1 -1
  100. package/dist/node_modules/moment/locale/uz.js +1 -1
  101. package/dist/node_modules/moment/locale/x-pseudo.js +6 -6
  102. package/dist/node_modules/moment/min/locales.js +1380 -771
  103. package/dist/node_modules/moment/min/locales.min.js +211 -1
  104. package/dist/node_modules/moment/min/moment-with-locales.js +2705 -1858
  105. package/dist/node_modules/moment/min/moment-with-locales.min.js +216 -1
  106. package/dist/node_modules/moment/min/moment.min.js +8 -1
  107. package/dist/node_modules/moment/moment.d.ts +2 -0
  108. package/dist/node_modules/moment/moment.js +3 -3
  109. package/dist/node_modules/moment/package.json +1 -1
  110. package/dist/node_modules/moment/src/lib/create/check-overflow.js +15 -15
  111. package/dist/node_modules/moment/src/lib/create/from-array.js +77 -10
  112. package/dist/node_modules/moment/src/lib/create/from-string-and-array.js +2 -0
  113. package/dist/node_modules/moment/src/lib/create/parsing-flags.js +1 -0
  114. package/dist/node_modules/moment/src/lib/create/valid.js +25 -24
  115. package/dist/node_modules/moment/src/lib/duration/as.js +3 -15
  116. package/dist/node_modules/moment/src/lib/duration/bubble.js +4 -6
  117. package/dist/node_modules/moment/src/lib/duration/humanize.js +14 -3
  118. package/dist/node_modules/moment/src/lib/format/format.js +7 -4
  119. package/dist/node_modules/moment/src/lib/locale/en.js +6 -6
  120. package/dist/node_modules/moment/src/lib/locale/formats.js +19 -3
  121. package/dist/node_modules/moment/src/lib/locale/locales.js +33 -13
  122. package/dist/node_modules/moment/src/lib/locale/relative.js +25 -2
  123. package/dist/node_modules/moment/src/lib/locale/set.js +4 -0
  124. package/dist/node_modules/moment/src/lib/moment/calendar.js +10 -10
  125. package/dist/node_modules/moment/src/lib/moment/get-set.js +66 -22
  126. package/dist/node_modules/moment/src/lib/moment/min-max.js +15 -3
  127. package/dist/node_modules/moment/src/lib/parse/regex.js +4 -0
  128. package/dist/node_modules/moment/src/lib/units/aliases.js +50 -6
  129. package/dist/node_modules/moment/src/lib/units/day-of-month.js +7 -11
  130. package/dist/node_modules/moment/src/lib/units/day-of-week.js +52 -21
  131. package/dist/node_modules/moment/src/lib/units/day-of-year.js +0 -9
  132. package/dist/node_modules/moment/src/lib/units/era.js +13 -7
  133. package/dist/node_modules/moment/src/lib/units/hour.js +5 -12
  134. package/dist/node_modules/moment/src/lib/units/millisecond.js +0 -10
  135. package/dist/node_modules/moment/src/lib/units/minute.js +7 -12
  136. package/dist/node_modules/moment/src/lib/units/month.js +38 -28
  137. package/dist/node_modules/moment/src/lib/units/offset.js +13 -1
  138. package/dist/node_modules/moment/src/lib/units/priorities.js +18 -5
  139. package/dist/node_modules/moment/src/lib/units/quarter.js +0 -10
  140. package/dist/node_modules/moment/src/lib/units/second.js +7 -12
  141. package/dist/node_modules/moment/src/lib/units/week-calendar-utils.js +22 -8
  142. package/dist/node_modules/moment/src/lib/units/week-year.js +1 -11
  143. package/dist/node_modules/moment/src/lib/units/week.js +8 -15
  144. package/dist/node_modules/moment/src/lib/units/year.js +0 -10
  145. package/dist/node_modules/moment/src/lib/utils/deprecate.js +1 -1
  146. package/dist/node_modules/moment/src/locale/am-et.js +62 -0
  147. package/dist/node_modules/moment/src/locale/ar-dz.js +8 -8
  148. package/dist/node_modules/moment/src/locale/ar-ly.js +8 -8
  149. package/dist/node_modules/moment/src/locale/ar-ps.js +112 -0
  150. package/dist/node_modules/moment/src/locale/ar.js +8 -8
  151. package/dist/node_modules/moment/src/locale/be.js +2 -2
  152. package/dist/node_modules/moment/src/locale/bs.js +14 -4
  153. package/dist/node_modules/moment/src/locale/ca.js +7 -7
  154. package/dist/node_modules/moment/src/locale/cs.js +5 -4
  155. package/dist/node_modules/moment/src/locale/cv.js +2 -2
  156. package/dist/node_modules/moment/src/locale/de-at.js +29 -1
  157. package/dist/node_modules/moment/src/locale/de-ch.js +29 -1
  158. package/dist/node_modules/moment/src/locale/de.js +29 -1
  159. package/dist/node_modules/moment/src/locale/en-au.js +6 -6
  160. package/dist/node_modules/moment/src/locale/en-ca.js +6 -6
  161. package/dist/node_modules/moment/src/locale/en-gb.js +6 -6
  162. package/dist/node_modules/moment/src/locale/en-ie.js +6 -6
  163. package/dist/node_modules/moment/src/locale/en-il.js +6 -6
  164. package/dist/node_modules/moment/src/locale/en-in.js +6 -6
  165. package/dist/node_modules/moment/src/locale/en-nz.js +6 -6
  166. package/dist/node_modules/moment/src/locale/en-sg.js +6 -6
  167. package/dist/node_modules/moment/src/locale/hu.js +3 -3
  168. package/dist/node_modules/moment/src/locale/id.js +12 -1
  169. package/dist/node_modules/moment/src/locale/it.js +4 -4
  170. package/dist/node_modules/moment/src/locale/ka.js +1 -1
  171. package/dist/node_modules/moment/src/locale/ku-kmr.js +121 -0
  172. package/dist/node_modules/moment/src/locale/lt.js +2 -2
  173. package/dist/node_modules/moment/src/locale/me.js +2 -2
  174. package/dist/node_modules/moment/src/locale/nb.js +4 -4
  175. package/dist/node_modules/moment/src/locale/nl-be.js +2 -2
  176. package/dist/node_modules/moment/src/locale/nl.js +1 -1
  177. package/dist/node_modules/moment/src/locale/oc-lnc.js +6 -6
  178. package/dist/node_modules/moment/src/locale/pl.js +1 -1
  179. package/dist/node_modules/moment/src/locale/ps.js +177 -0
  180. package/dist/node_modules/moment/src/locale/pt-br.js +14 -6
  181. package/dist/node_modules/moment/src/locale/ru.js +2 -2
  182. package/dist/node_modules/moment/src/locale/sv.js +7 -7
  183. package/dist/node_modules/moment/src/locale/sw.js +56 -14
  184. package/dist/node_modules/moment/src/locale/tet.js +6 -6
  185. package/dist/node_modules/moment/src/locale/tlh.js +8 -8
  186. package/dist/node_modules/moment/src/locale/tzl.js +2 -2
  187. package/dist/node_modules/moment/src/locale/uk.js +9 -8
  188. package/dist/node_modules/moment/src/locale/uz-latn.js +1 -1
  189. package/dist/node_modules/moment/src/locale/uz.js +1 -1
  190. package/dist/node_modules/moment/src/locale/x-pseudo.js +6 -6
  191. package/dist/node_modules/moment/src/moment.js +2 -2
  192. package/dist/node_modules/moment/ts3.1-typings/moment.d.ts +258 -78
  193. package/dist/node_modules/semver/package.json +1 -1
  194. package/package.json +2 -2
  195. package/dist/node_modules/moment/package.js +0 -11
@@ -1,25 +1,72 @@
1
+ // TypeScript 3.1 and newer declarations, selected by package.json typesVersions.
2
+
1
3
  /**
2
4
  * @param strict Strict parsing disables the deprecated fallback to the native Date constructor when
3
5
  * parsing a string.
4
6
  */
5
- declare function moment(inp?: moment.MomentInput, strict?: boolean): moment.Moment;
7
+ declare function moment(
8
+ inp?: moment.MomentInput,
9
+ strict?: boolean
10
+ ): moment.Moment;
6
11
  /**
7
12
  * @param strict Strict parsing requires that the format and input match exactly, including delimiters.
8
13
  * Strict parsing is frequently the best parsing option. For more information about choosing strict vs
9
14
  * forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
10
15
  */
11
- declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
16
+ declare function moment(
17
+ inp?: moment.MomentInput,
18
+ format?: moment.MomentFormatSpecification,
19
+ strict?: boolean
20
+ ): moment.Moment;
12
21
  /**
13
22
  * @param strict Strict parsing requires that the format and input match exactly, including delimiters.
14
23
  * Strict parsing is frequently the best parsing option. For more information about choosing strict vs
15
24
  * forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
16
25
  */
17
- declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
26
+ declare function moment(
27
+ inp?: moment.MomentInput,
28
+ format?: moment.MomentFormatSpecification,
29
+ language?: string,
30
+ strict?: boolean
31
+ ): moment.Moment;
18
32
 
19
33
  declare namespace moment {
20
- type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | 'M' | 'MM' | 'y' | 'yy';
21
- type CalendarKey = 'sameDay' | 'nextDay' | 'lastDay' | 'nextWeek' | 'lastWeek' | 'sameElse' | string;
22
- type LongDateFormatKey = 'LTS' | 'LT' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'lts' | 'lt' | 'l' | 'll' | 'lll' | 'llll';
34
+ type RelativeTimeKey =
35
+ | 's'
36
+ | 'ss'
37
+ | 'm'
38
+ | 'mm'
39
+ | 'h'
40
+ | 'hh'
41
+ | 'd'
42
+ | 'dd'
43
+ | 'w'
44
+ | 'ww'
45
+ | 'M'
46
+ | 'MM'
47
+ | 'y'
48
+ | 'yy';
49
+ type CalendarKey =
50
+ | 'sameDay'
51
+ | 'nextDay'
52
+ | 'lastDay'
53
+ | 'nextWeek'
54
+ | 'lastWeek'
55
+ | 'sameElse'
56
+ | string;
57
+ type LongDateFormatKey =
58
+ | 'LTS'
59
+ | 'LT'
60
+ | 'L'
61
+ | 'LL'
62
+ | 'LLL'
63
+ | 'LLLL'
64
+ | 'lts'
65
+ | 'lt'
66
+ | 'l'
67
+ | 'll'
68
+ | 'lll'
69
+ | 'llll';
23
70
 
24
71
  interface Locale {
25
72
  calendar(key?: CalendarKey, m?: Moment, now?: Moment): string;
@@ -30,8 +77,12 @@ declare namespace moment {
30
77
 
31
78
  preparse(inp: string): string;
32
79
  postformat(inp: string): string;
33
- relativeTime(n: number, withoutSuffix: boolean,
34
- key: RelativeTimeKey, isFuture: boolean): string;
80
+ relativeTime(
81
+ n: number,
82
+ withoutSuffix: boolean,
83
+ key: RelativeTimeKey,
84
+ isFuture: boolean
85
+ ): string;
35
86
  pastFuture(diff: number, absRelTime: string): string;
36
87
  set(config: Object): void;
37
88
 
@@ -86,11 +137,14 @@ declare namespace moment {
86
137
  [x: string]: CalendarSpecVal | undefined;
87
138
  }
88
139
 
89
- type RelativeTimeSpecVal = (
90
- string |
91
- ((n: number, withoutSuffix: boolean,
92
- key: RelativeTimeKey, isFuture: boolean) => string)
93
- );
140
+ type RelativeTimeSpecVal =
141
+ | string
142
+ | ((
143
+ n: number,
144
+ withoutSuffix: boolean,
145
+ key: RelativeTimeKey,
146
+ isFuture: boolean
147
+ ) => string);
94
148
  type RelativeTimeFuturePastVal = string | ((relTime: string) => string);
95
149
 
96
150
  interface RelativeTimeSpec {
@@ -141,7 +195,7 @@ declare namespace moment {
141
195
  weekdaysMin?: string[] | StandaloneFormatSpec | WeekdaySimpleFn;
142
196
 
143
197
  meridiemParse?: RegExp;
144
- meridiem?: (hour: number, minute:number, isLower: boolean) => string;
198
+ meridiem?: (hour: number, minute: number, isLower: boolean) => string;
145
199
 
146
200
  isPM?: (input: string) => boolean;
147
201
 
@@ -184,7 +238,7 @@ declare namespace moment {
184
238
  clone(): Duration;
185
239
 
186
240
  humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;
187
-
241
+
188
242
  humanize(argThresholds?: argThresholdOpts): string;
189
243
 
190
244
  abs(): Duration;
@@ -309,23 +363,39 @@ declare namespace moment {
309
363
  __momentBuiltinFormatBrand: any;
310
364
  }
311
365
 
312
- type MomentFormatSpecification = string | MomentBuiltinFormat | (string | MomentBuiltinFormat)[];
366
+ type MomentFormatSpecification =
367
+ string | MomentBuiltinFormat | (string | MomentBuiltinFormat)[];
313
368
 
314
369
  namespace unitOfTime {
315
- type Base = (
316
- "year" | "years" | "y" |
317
- "month" | "months" | "M" |
318
- "week" | "weeks" | "w" |
319
- "day" | "days" | "d" |
320
- "hour" | "hours" | "h" |
321
- "minute" | "minutes" | "m" |
322
- "second" | "seconds" | "s" |
323
- "millisecond" | "milliseconds" | "ms"
324
- );
325
-
326
- type _quarter = "quarter" | "quarters" | "Q";
327
- type _isoWeek = "isoWeek" | "isoWeeks" | "W";
328
- type _date = "date" | "dates" | "D";
370
+ type Base =
371
+ | 'year'
372
+ | 'years'
373
+ | 'y'
374
+ | 'month'
375
+ | 'months'
376
+ | 'M'
377
+ | 'week'
378
+ | 'weeks'
379
+ | 'w'
380
+ | 'day'
381
+ | 'days'
382
+ | 'd'
383
+ | 'hour'
384
+ | 'hours'
385
+ | 'h'
386
+ | 'minute'
387
+ | 'minutes'
388
+ | 'm'
389
+ | 'second'
390
+ | 'seconds'
391
+ | 's'
392
+ | 'millisecond'
393
+ | 'milliseconds'
394
+ | 'ms';
395
+
396
+ type _quarter = 'quarter' | 'quarters' | 'Q';
397
+ type _isoWeek = 'isoWeek' | 'isoWeeks' | 'W';
398
+ type _date = 'date' | 'dates' | 'D';
329
399
  type DurationConstructor = Base | _quarter;
330
400
 
331
401
  type DurationAs = Base;
@@ -336,12 +406,26 @@ declare namespace moment {
336
406
 
337
407
  type MomentConstructor = Base | _date;
338
408
 
339
- type All = Base | _quarter | _isoWeek | _date |
340
- "weekYear" | "weekYears" | "gg" |
341
- "isoWeekYear" | "isoWeekYears" | "GG" |
342
- "dayOfYear" | "dayOfYears" | "DDD" |
343
- "weekday" | "weekdays" | "e" |
344
- "isoWeekday" | "isoWeekdays" | "E";
409
+ type All =
410
+ | Base
411
+ | _quarter
412
+ | _isoWeek
413
+ | _date
414
+ | 'weekYear'
415
+ | 'weekYears'
416
+ | 'gg'
417
+ | 'isoWeekYear'
418
+ | 'isoWeekYears'
419
+ | 'GG'
420
+ | 'dayOfYear'
421
+ | 'dayOfYears'
422
+ | 'DDD'
423
+ | 'weekday'
424
+ | 'weekdays'
425
+ | 'e'
426
+ | 'isoWeekday'
427
+ | 'isoWeekdays'
428
+ | 'E';
345
429
  }
346
430
 
347
431
  interface MomentInputObject {
@@ -427,8 +511,23 @@ declare namespace moment {
427
511
  to: MomentInput;
428
512
  }
429
513
 
430
- type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | null | undefined;
431
- type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | null | undefined;
514
+ type MomentInput =
515
+ | Moment
516
+ | Date
517
+ | string
518
+ | number
519
+ | (number | string)[]
520
+ | MomentInputObject
521
+ | null
522
+ | undefined;
523
+ type DurationInputArg1 =
524
+ | Duration
525
+ | number
526
+ | string
527
+ | FromTo
528
+ | DurationInputObject
529
+ | null
530
+ | undefined;
432
531
  type DurationInputArg2 = unitOfTime.DurationConstructor;
433
532
  type LocaleSpecifier = string | Moment | Duration | string[] | boolean;
434
533
 
@@ -450,13 +549,16 @@ declare namespace moment {
450
549
  /**
451
550
  * @deprecated reverse syntax
452
551
  */
453
- add(unit: unitOfTime.DurationConstructor, amount: number|string): Moment;
552
+ add(unit: unitOfTime.DurationConstructor, amount: number | string): Moment;
454
553
 
455
554
  subtract(amount?: DurationInputArg1, unit?: DurationInputArg2): Moment;
456
555
  /**
457
556
  * @deprecated reverse syntax
458
557
  */
459
- subtract(unit: unitOfTime.DurationConstructor, amount: number|string): Moment;
558
+ subtract(
559
+ unit: unitOfTime.DurationConstructor,
560
+ amount: number | string
561
+ ): Moment;
460
562
 
461
563
  calendar(): string;
462
564
  calendar(formats: CalendarSpec): string;
@@ -504,19 +606,19 @@ declare namespace moment {
504
606
  quarter(q: number): Moment;
505
607
  quarters(): number;
506
608
  quarters(q: number): Moment;
507
- month(M: number|string): Moment;
609
+ month(M: number | string): Moment;
508
610
  month(): number;
509
611
  /**
510
612
  * @deprecated use month(M)
511
613
  */
512
- months(M: number|string): Moment;
614
+ months(M: number | string): Moment;
513
615
  /**
514
616
  * @deprecated use month()
515
617
  */
516
618
  months(): number;
517
- day(d: number|string): Moment;
619
+ day(d: number | string): Moment;
518
620
  day(): number;
519
- days(d: number|string): Moment;
621
+ days(d: number | string): Moment;
520
622
  days(): number;
521
623
  date(d: number): Moment;
522
624
  date(): number;
@@ -547,7 +649,7 @@ declare namespace moment {
547
649
  weekday(): number;
548
650
  weekday(d: number): Moment;
549
651
  isoWeekday(): number;
550
- isoWeekday(d: number|string): Moment;
652
+ isoWeekday(d: number | string): Moment;
551
653
  weekYear(): number;
552
654
  weekYear(d: number): Moment;
553
655
  isoWeekYear(): number;
@@ -571,7 +673,11 @@ declare namespace moment {
571
673
  fromNow(withoutSuffix?: boolean): string;
572
674
  toNow(withoutPrefix?: boolean): string;
573
675
 
574
- diff(b: MomentInput, unitOfTime?: unitOfTime.Diff, precise?: boolean): number;
676
+ diff(
677
+ b: MomentInput,
678
+ unitOfTime?: unitOfTime.Diff,
679
+ precise?: boolean
680
+ ): number;
575
681
 
576
682
  toArray(): [number, number, number, number, number, number, number];
577
683
  toDate(): Date;
@@ -585,9 +691,9 @@ declare namespace moment {
585
691
  * @deprecated in favor of utcOffset
586
692
  */
587
693
  zone(): number;
588
- zone(b: number|string): Moment;
694
+ zone(b: number | string): Moment;
589
695
  utcOffset(): number;
590
- utcOffset(b: number|string, keepLocalTime?: boolean): Moment;
696
+ utcOffset(b: number | string, keepLocalTime?: boolean): Moment;
591
697
  isUtcOffset(): boolean;
592
698
  daysInMonth(): number;
593
699
  isDST(): boolean;
@@ -599,8 +705,16 @@ declare namespace moment {
599
705
  isAfter(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
600
706
  isSame(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
601
707
  isSameOrAfter(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
602
- isSameOrBefore(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
603
- isBetween(a: MomentInput, b: MomentInput, granularity?: unitOfTime.StartOf, inclusivity?: "()" | "[)" | "(]" | "[]"): boolean;
708
+ isSameOrBefore(
709
+ inp?: MomentInput,
710
+ granularity?: unitOfTime.StartOf
711
+ ): boolean;
712
+ isBetween(
713
+ a: MomentInput,
714
+ b: MomentInput,
715
+ granularity?: unitOfTime.StartOf,
716
+ inclusivity?: '()' | '[)' | '(]' | '[]'
717
+ ): boolean;
604
718
 
605
719
  /**
606
720
  * @deprecated as of 2.8.0, use locale
@@ -625,21 +739,39 @@ declare namespace moment {
625
739
  /**
626
740
  * @deprecated as of 2.7.0, use moment.min/max
627
741
  */
628
- max(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
742
+ max(
743
+ inp?: MomentInput,
744
+ format?: MomentFormatSpecification,
745
+ strict?: boolean
746
+ ): Moment;
629
747
  /**
630
748
  * @deprecated as of 2.7.0, use moment.min/max
631
749
  */
632
- max(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
750
+ max(
751
+ inp?: MomentInput,
752
+ format?: MomentFormatSpecification,
753
+ language?: string,
754
+ strict?: boolean
755
+ ): Moment;
633
756
 
634
757
  // NOTE(constructor): Same as moment constructor
635
758
  /**
636
759
  * @deprecated as of 2.7.0, use moment.min/max
637
760
  */
638
- min(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
761
+ min(
762
+ inp?: MomentInput,
763
+ format?: MomentFormatSpecification,
764
+ strict?: boolean
765
+ ): Moment;
639
766
  /**
640
767
  * @deprecated as of 2.7.0, use moment.min/max
641
768
  */
642
- min(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
769
+ min(
770
+ inp?: MomentInput,
771
+ format?: MomentFormatSpecification,
772
+ language?: string,
773
+ strict?: boolean
774
+ ): Moment;
643
775
 
644
776
  get(unit: unitOfTime.All): number;
645
777
  set(unit: unitOfTime.All, value: number): Moment;
@@ -662,13 +794,22 @@ declare namespace moment {
662
794
  * Strict parsing is frequently the best parsing option. For more information about choosing strict vs
663
795
  * forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
664
796
  */
665
- export function utc(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
797
+ export function utc(
798
+ inp?: MomentInput,
799
+ format?: MomentFormatSpecification,
800
+ strict?: boolean
801
+ ): Moment;
666
802
  /**
667
803
  * @param strict Strict parsing requires that the format and input match exactly, including delimiters.
668
804
  * Strict parsing is frequently the best parsing option. For more information about choosing strict vs
669
805
  * forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
670
806
  */
671
- export function utc(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
807
+ export function utc(
808
+ inp?: MomentInput,
809
+ format?: MomentFormatSpecification,
810
+ language?: string,
811
+ strict?: boolean
812
+ ): Moment;
672
813
 
673
814
  export function unix(timestamp: number): Moment;
674
815
 
@@ -688,15 +829,30 @@ declare namespace moment {
688
829
 
689
830
  export function locale(language?: string): string;
690
831
  export function locale(language?: string[]): string;
691
- export function locale(language?: string, definition?: LocaleSpecification | null | undefined): string;
832
+ export function locale(
833
+ language?: string,
834
+ definition?: LocaleSpecification | null | undefined
835
+ ): string;
692
836
 
693
837
  export function localeData(key?: string | string[]): Locale;
694
838
 
695
- export function duration(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration;
839
+ export function duration(
840
+ inp?: DurationInputArg1,
841
+ unit?: DurationInputArg2
842
+ ): Duration;
696
843
 
697
844
  // NOTE(constructor): Same as moment constructor
698
- export function parseZone(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
699
- export function parseZone(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
845
+ export function parseZone(
846
+ inp?: MomentInput,
847
+ format?: MomentFormatSpecification,
848
+ strict?: boolean
849
+ ): Moment;
850
+ export function parseZone(
851
+ inp?: MomentInput,
852
+ format?: MomentFormatSpecification,
853
+ language?: string,
854
+ strict?: boolean
855
+ ): Moment;
700
856
 
701
857
  export function months(): string[];
702
858
  export function months(index: number): string;
@@ -714,15 +870,26 @@ declare namespace moment {
714
870
  export function weekdays(localeSorted: boolean): string[];
715
871
  export function weekdays(localeSorted: boolean, index: number): string;
716
872
  export function weekdays(localeSorted: boolean, format: string): string[];
717
- export function weekdays(localeSorted: boolean, format: string, index: number): string;
873
+ export function weekdays(
874
+ localeSorted: boolean,
875
+ format: string,
876
+ index: number
877
+ ): string;
718
878
  export function weekdaysShort(): string[];
719
879
  export function weekdaysShort(index: number): string;
720
880
  export function weekdaysShort(format: string): string[];
721
881
  export function weekdaysShort(format: string, index: number): string;
722
882
  export function weekdaysShort(localeSorted: boolean): string[];
723
883
  export function weekdaysShort(localeSorted: boolean, index: number): string;
724
- export function weekdaysShort(localeSorted: boolean, format: string): string[];
725
- export function weekdaysShort(localeSorted: boolean, format: string, index: number): string;
884
+ export function weekdaysShort(
885
+ localeSorted: boolean,
886
+ format: string
887
+ ): string[];
888
+ export function weekdaysShort(
889
+ localeSorted: boolean,
890
+ format: string,
891
+ index: number
892
+ ): string;
726
893
  export function weekdaysMin(): string[];
727
894
  export function weekdaysMin(index: number): string;
728
895
  export function weekdaysMin(format: string): string[];
@@ -730,7 +897,11 @@ declare namespace moment {
730
897
  export function weekdaysMin(localeSorted: boolean): string[];
731
898
  export function weekdaysMin(localeSorted: boolean, index: number): string;
732
899
  export function weekdaysMin(localeSorted: boolean, format: string): string[];
733
- export function weekdaysMin(localeSorted: boolean, format: string, index: number): string;
900
+ export function weekdaysMin(
901
+ localeSorted: boolean,
902
+ format: string,
903
+ index: number
904
+ ): string;
734
905
 
735
906
  export function min(moments: Moment[]): Moment;
736
907
  export function min(...moments: Moment[]): Moment;
@@ -742,14 +913,23 @@ declare namespace moment {
742
913
  */
743
914
  export function now(): number;
744
915
 
745
- export function defineLocale(language: string, localeSpec: LocaleSpecification | null): Locale;
746
- export function updateLocale(language: string, localeSpec: LocaleSpecification | null): Locale;
916
+ export function defineLocale(
917
+ language: string,
918
+ localeSpec: LocaleSpecification | null
919
+ ): Locale;
920
+ export function updateLocale(
921
+ language: string,
922
+ localeSpec: LocaleSpecification | null
923
+ ): Locale;
747
924
 
748
925
  export function locales(): string[];
749
926
 
750
927
  export function normalizeUnits(unit: unitOfTime.All): string;
751
928
  export function relativeTimeThreshold(threshold: string): number | boolean;
752
- export function relativeTimeThreshold(threshold: string, limit: number): boolean;
929
+ export function relativeTimeThreshold(
930
+ threshold: string,
931
+ limit: number
932
+ ): boolean;
753
933
  export function relativeTimeRounding(fn: (num: number) => number): boolean;
754
934
  export function relativeTimeRounding(): (num: number) => number;
755
935
  export function calendarFormat(m: Moment, now: Moment): string;
@@ -765,20 +945,20 @@ declare namespace moment {
765
945
  export var defaultFormatUtc: string;
766
946
 
767
947
  export var suppressDeprecationWarnings: boolean;
768
- export var deprecationHandler: ((name: string | null, msg: string) => void) | null | undefined;
948
+ export var deprecationHandler:
949
+ ((name: string | null, msg: string) => void) | null | undefined;
769
950
 
770
951
  export var HTML5_FMT: {
771
- DATETIME_LOCAL: string,
772
- DATETIME_LOCAL_SECONDS: string,
773
- DATETIME_LOCAL_MS: string,
774
- DATE: string,
775
- TIME: string,
776
- TIME_SECONDS: string,
777
- TIME_MS: string,
778
- WEEK: string,
779
- MONTH: string
952
+ DATETIME_LOCAL: string;
953
+ DATETIME_LOCAL_SECONDS: string;
954
+ DATETIME_LOCAL_MS: string;
955
+ DATE: string;
956
+ TIME: string;
957
+ TIME_SECONDS: string;
958
+ TIME_MS: string;
959
+ WEEK: string;
960
+ MONTH: string;
780
961
  };
781
-
782
962
  }
783
963
 
784
964
  export = moment;
@@ -1 +1 @@
1
- {"name":"semver","version":"7.7.1","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.4","benchmark":"^2.1.4","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.4","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf","/benchmarks"],"publish":"true"},"_lastModified":"2026-09-29T04:30:37.242Z"}
1
+ {"name":"semver","version":"7.7.1","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.4","benchmark":"^2.1.4","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.4","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf","/benchmarks"],"publish":"true"},"_lastModified":"2026-10-06T06:18:19.113Z"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Backup and restore applications for scenarios such as application replication, migration, and upgrades.",
7
7
  "description.ru-RU": "Резервное копирование и восстановление приложений для задач репликации, миграции и обновления.",
8
8
  "description.zh-CN": "备份和还原应用,可用于应用的复制、迁移、升级等场景。",
9
- "version": "2.2.19",
9
+ "version": "2.2.21",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/backup-restore",
@@ -52,5 +52,5 @@
52
52
  "keywords": [
53
53
  "System management"
54
54
  ],
55
- "gitHead": "0d4e2dc07729c32533e35c8e8e16c57815d6242a"
55
+ "gitHead": "b3ab91d3475d2763c922e0cad9486bf7cb20ac70"
56
56
  }
@@ -1,11 +0,0 @@
1
- var profile = {
2
- resourceTags: {
3
- ignore: function(filename, mid){
4
- // only include moment/moment
5
- return mid != "moment/moment";
6
- },
7
- amd: function(filename, mid){
8
- return /\.js$/.test(filename);
9
- }
10
- }
11
- };