@signalplus/params-about 0.1.37 → 0.1.39

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 (2) hide show
  1. package/lib/es/index.js +3 -111
  2. package/package.json +1 -1
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
3
  * Generated: 2022-04-18
4
- * Version: 0.1.37
4
+ * Version: 0.1.39
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -253,115 +253,6 @@ function _slicedToArray(arr, i) {
253
253
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
254
254
  }
255
255
 
256
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
257
-
258
- function createCommonjsModule(fn, module) {
259
- return module = { exports: {} }, fn(module, module.exports), module.exports;
260
- }
261
-
262
- var utc = createCommonjsModule(function (module, exports) {
263
- !function (t, i) {
264
- module.exports = i() ;
265
- }(commonjsGlobal, function () {
266
-
267
- var t = "minute",
268
- i = /[+-]\d\d(?::?\d\d)?/g,
269
- e = /([+-]|\d\d)/g;
270
- return function (s, f, n) {
271
- var u = f.prototype;
272
- n.utc = function (t) {
273
- var i = {
274
- date: t,
275
- utc: !0,
276
- args: arguments
277
- };
278
- return new f(i);
279
- }, u.utc = function (i) {
280
- var e = n(this.toDate(), {
281
- locale: this.$L,
282
- utc: !0
283
- });
284
- return i ? e.add(this.utcOffset(), t) : e;
285
- }, u.local = function () {
286
- return n(this.toDate(), {
287
- locale: this.$L,
288
- utc: !1
289
- });
290
- };
291
- var o = u.parse;
292
-
293
- u.parse = function (t) {
294
- t.utc && (this.$u = !0), this.$utils().u(t.$offset) || (this.$offset = t.$offset), o.call(this, t);
295
- };
296
-
297
- var r = u.init;
298
-
299
- u.init = function () {
300
- if (this.$u) {
301
- var t = this.$d;
302
- this.$y = t.getUTCFullYear(), this.$M = t.getUTCMonth(), this.$D = t.getUTCDate(), this.$W = t.getUTCDay(), this.$H = t.getUTCHours(), this.$m = t.getUTCMinutes(), this.$s = t.getUTCSeconds(), this.$ms = t.getUTCMilliseconds();
303
- } else r.call(this);
304
- };
305
-
306
- var a = u.utcOffset;
307
-
308
- u.utcOffset = function (s, f) {
309
- var n = this.$utils().u;
310
- if (n(s)) return this.$u ? 0 : n(this.$offset) ? a.call(this) : this.$offset;
311
- if ("string" == typeof s && (s = function (t) {
312
- void 0 === t && (t = "");
313
- var s = t.match(i);
314
- if (!s) return null;
315
- var f = ("" + s[0]).match(e) || ["-", 0, 0],
316
- n = f[0],
317
- u = 60 * +f[1] + +f[2];
318
- return 0 === u ? 0 : "+" === n ? u : -u;
319
- }(s), null === s)) return this;
320
- var u = Math.abs(s) <= 16 ? 60 * s : s,
321
- o = this;
322
- if (f) return o.$offset = u, o.$u = 0 === s, o;
323
-
324
- if (0 !== s) {
325
- var r = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
326
- (o = this.local().add(u + r, t)).$offset = u, o.$x.$localOffset = r;
327
- } else o = this.utc();
328
-
329
- return o;
330
- };
331
-
332
- var h = u.format;
333
- u.format = function (t) {
334
- var i = t || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
335
- return h.call(this, i);
336
- }, u.valueOf = function () {
337
- var t = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || new Date().getTimezoneOffset());
338
- return this.$d.valueOf() - 6e4 * t;
339
- }, u.isUTC = function () {
340
- return !!this.$u;
341
- }, u.toISOString = function () {
342
- return this.toDate().toISOString();
343
- }, u.toString = function () {
344
- return this.toDate().toUTCString();
345
- };
346
- var l = u.toDate;
347
-
348
- u.toDate = function (t) {
349
- return "s" === t && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
350
- };
351
-
352
- var c = u.diff;
353
-
354
- u.diff = function (t, i, e) {
355
- if (t && this.$u === t.$u) return c.call(this, t, i, e);
356
- var s = this.local(),
357
- f = n(t).local();
358
- return c.call(s, f, i, e);
359
- };
360
- };
361
- });
362
- });
363
-
364
- dayjs.extend(utc);
365
256
  function formatNum(val) {
366
257
  var num = parseFloat(val);
367
258
  return isNaN(num) ? undefined : num;
@@ -427,7 +318,8 @@ function keyValidator(val, allKeys) {
427
318
  function isExpired(val) {
428
319
  if (!val) return false;
429
320
  var now = dayjs();
430
- var expireTime = dayjs.utc("".concat(val, " 8:00"), 'DDMMMYY 8:00');
321
+ var expiry = dayjs("".concat(val), 'DDMMMYY');
322
+ var expireTime = dayjs("".concat(expiry.format('YYYY-MM-DD'), "T08:00Z"));
431
323
  return now >= expireTime;
432
324
  }
433
325
  function validatorCvt(validator, form) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",