@powfix/core-js 0.23.9 → 0.24.1
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/chunk-AQ5VUG5P.js +39 -0
- package/dist/chunk-JE77HYXB.cjs +43 -0
- package/dist/node/constants/TransactionManagerLogLevel.cjs +1 -1
- package/dist/node/constants/TransactionManagerLogLevel.js +1 -1
- package/dist/node/constants/TransactionManagerTimeoutAction.cjs +1 -1
- package/dist/node/constants/TransactionManagerTimeoutAction.js +1 -1
- package/dist/node/managers/TransactionManager.cjs +7 -7
- package/dist/node/managers/TransactionManager.js +1 -1
- package/dist/node/services/redis/RedisClient.cjs +4 -4
- package/dist/node/services/redis/RedisClient.js +1 -1
- package/dist/node/services/redis/RedisPublisher.cjs +2 -2
- package/dist/node/services/redis/RedisPublisher.js +1 -1
- package/dist/node/services/redis/RedisSubscriber.cjs +1 -1
- package/dist/node/services/redis/RedisSubscriber.js +1 -1
- package/dist/node/utils/HookUtils.cjs +1 -1
- package/dist/node/utils/HookUtils.js +1 -1
- package/dist/node/utils/sequelize-utils/SequelizeUtils.cjs +2 -2
- package/dist/node/utils/sequelize-utils/SequelizeUtils.js +1 -1
- package/dist/shared/constants/COORDINATE.cjs +5 -5
- package/dist/shared/constants/COORDINATE.js +1 -1
- package/dist/shared/constants/CRUD.cjs +1 -1
- package/dist/shared/constants/CRUD.js +1 -1
- package/dist/shared/constants/DATE.cjs +1 -1
- package/dist/shared/constants/DATE.js +1 -1
- package/dist/shared/constants/DISTANCE.cjs +1 -1
- package/dist/shared/constants/DISTANCE.js +1 -1
- package/dist/shared/constants/DURATION.cjs +1 -1
- package/dist/shared/constants/DURATION.js +1 -1
- package/dist/shared/constants/NOT_NULL.cjs +1 -1
- package/dist/shared/constants/NOT_NULL.js +1 -1
- package/dist/shared/features/WatchablePromise.cjs +182 -0
- package/dist/shared/features/WatchablePromise.d.ts +9 -0
- package/dist/shared/features/WatchablePromise.js +182 -0
- package/dist/shared/features/WatchablePromise.types.cjs +1 -0
- package/dist/shared/features/WatchablePromise.types.d.ts +1 -0
- package/dist/shared/features/WatchablePromise.types.js +0 -0
- package/dist/shared/features/index.cjs +10 -0
- package/dist/shared/features/index.d.ts +2 -0
- package/dist/shared/features/index.js +1 -0
- package/dist/shared/index.cjs +9 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/managers/SessionManager.cjs +4 -4
- package/dist/shared/managers/SessionManager.js +1 -1
- package/dist/shared/scripts/base64Polyfill.cjs +1 -1
- package/dist/shared/scripts/base64Polyfill.js +1 -1
- package/dist/shared/services/time/TimeService.cjs +7 -7
- package/dist/shared/services/time/TimeService.js +1 -1
- package/dist/shared/utils/ArrayUtils.cjs +1 -1
- package/dist/shared/utils/ArrayUtils.js +1 -1
- package/dist/shared/utils/AxiosUtils.cjs +1 -1
- package/dist/shared/utils/AxiosUtils.js +1 -1
- package/dist/shared/utils/BooleanUtils.cjs +1 -1
- package/dist/shared/utils/BooleanUtils.js +1 -1
- package/dist/shared/utils/Calc.cjs +1 -1
- package/dist/shared/utils/Calc.js +1 -1
- package/dist/shared/utils/CoordinateUtils.cjs +1 -1
- package/dist/shared/utils/CoordinateUtils.js +1 -1
- package/dist/shared/utils/DateUtils.cjs +4 -4
- package/dist/shared/utils/DateUtils.js +1 -1
- package/dist/shared/utils/Enum.cjs +5 -5
- package/dist/shared/utils/Enum.js +1 -1
- package/dist/shared/utils/I18nUtils.cjs +1 -1
- package/dist/shared/utils/I18nUtils.js +1 -1
- package/dist/shared/utils/JuminNumberUtils.cjs +1 -1
- package/dist/shared/utils/JuminNumberUtils.js +1 -1
- package/dist/shared/utils/NumberUtils.cjs +1 -1
- package/dist/shared/utils/NumberUtils.js +1 -1
- package/dist/shared/utils/ObjectIdUtils.cjs +1 -1
- package/dist/shared/utils/ObjectIdUtils.js +1 -1
- package/dist/shared/utils/Point3Utils.cjs +1 -1
- package/dist/shared/utils/Point3Utils.js +1 -1
- package/dist/shared/utils/RandomUtils.cjs +1 -1
- package/dist/shared/utils/RandomUtils.js +1 -1
- package/dist/shared/utils/Sequencer.cjs +10 -10
- package/dist/shared/utils/Sequencer.js +1 -1
- package/dist/shared/utils/StringUtils.cjs +2 -2
- package/dist/shared/utils/StringUtils.js +1 -1
- package/dist/shared/utils/Uint8ArrayUtils.cjs +1 -1
- package/dist/shared/utils/Uint8ArrayUtils.js +1 -1
- package/dist/shared/utils/UuidUtils.cjs +1 -1
- package/dist/shared/utils/UuidUtils.js +1 -1
- package/dist/shared/utils/Validator.cjs +1 -1
- package/dist/shared/utils/Validator.js +1 -1
- package/dist/shared/utils/global/atob.cjs +1 -1
- package/dist/shared/utils/global/atob.js +1 -1
- package/dist/shared/utils/global/base64.cjs +1 -1
- package/dist/shared/utils/global/base64.js +1 -1
- package/dist/shared/utils/global/between.cjs +1 -1
- package/dist/shared/utils/global/between.js +1 -1
- package/dist/shared/utils/global/btoa.cjs +1 -1
- package/dist/shared/utils/global/btoa.js +1 -1
- package/dist/shared/utils/global/castArray.cjs +1 -1
- package/dist/shared/utils/global/castArray.js +1 -1
- package/dist/shared/utils/global/circularDistance.cjs +1 -1
- package/dist/shared/utils/global/circularDistance.js +1 -1
- package/dist/shared/utils/global/fallbackIfMatch.cjs +1 -1
- package/dist/shared/utils/global/fallbackIfMatch.js +1 -1
- package/dist/shared/utils/global/fallbackIfNull.cjs +1 -1
- package/dist/shared/utils/global/fallbackIfNull.js +1 -1
- package/dist/shared/utils/global/fallbackIfNullish.cjs +1 -1
- package/dist/shared/utils/global/fallbackIfNullish.js +1 -1
- package/dist/shared/utils/global/fallbackIfUndefined.cjs +1 -1
- package/dist/shared/utils/global/fallbackIfUndefined.js +1 -1
- package/dist/shared/utils/global/firstNonNullish.cjs +1 -1
- package/dist/shared/utils/global/firstNonNullish.js +1 -1
- package/dist/shared/utils/global/flat.cjs +1 -1
- package/dist/shared/utils/global/flat.js +1 -1
- package/dist/shared/utils/global/mapIfNotNullish.cjs +1 -1
- package/dist/shared/utils/global/mapIfNotNullish.js +1 -1
- package/dist/shared/utils/global/processFirstNonNullish.cjs +1 -1
- package/dist/shared/utils/global/processFirstNonNullish.js +1 -1
- package/dist/shared/utils/global/pureEnum.cjs +1 -1
- package/dist/shared/utils/global/pureEnum.js +1 -1
- package/dist/shared/utils/global/sleep.cjs +1 -1
- package/dist/shared/utils/global/sleep.js +1 -1
- package/dist/shared/utils/try-catch/TryCatch.cjs +1 -1
- package/dist/shared/utils/try-catch/TryCatch.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ETV4XYOV.cjs +0 -18
- package/dist/chunk-PKBMQBKP.js +0 -17
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _construct(Parent, args, Class) {
|
|
17
|
+
if (_is_native_reflect_construct()) {
|
|
18
|
+
_construct = Reflect.construct;
|
|
19
|
+
} else {
|
|
20
|
+
_construct = function construct(Parent, args, Class) {
|
|
21
|
+
var a = [
|
|
22
|
+
null
|
|
23
|
+
];
|
|
24
|
+
a.push.apply(a, args);
|
|
25
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
26
|
+
var instance = new Constructor();
|
|
27
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
28
|
+
return instance;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return _construct.apply(null, arguments);
|
|
32
|
+
}
|
|
33
|
+
function _defineProperties(target, props) {
|
|
34
|
+
for(var i = 0; i < props.length; i++){
|
|
35
|
+
var descriptor = props[i];
|
|
36
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
37
|
+
descriptor.configurable = true;
|
|
38
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
39
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
43
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
44
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
45
|
+
return Constructor;
|
|
46
|
+
}
|
|
47
|
+
function _get_prototype_of(o) {
|
|
48
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
49
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
50
|
+
};
|
|
51
|
+
return _get_prototype_of(o);
|
|
52
|
+
}
|
|
53
|
+
function _inherits(subClass, superClass) {
|
|
54
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
55
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
56
|
+
}
|
|
57
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
58
|
+
constructor: {
|
|
59
|
+
value: subClass,
|
|
60
|
+
writable: true,
|
|
61
|
+
configurable: true
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
65
|
+
}
|
|
66
|
+
function _is_native_function(fn) {
|
|
67
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
68
|
+
}
|
|
69
|
+
function _possible_constructor_return(self, call) {
|
|
70
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
71
|
+
return call;
|
|
72
|
+
}
|
|
73
|
+
return _assert_this_initialized(self);
|
|
74
|
+
}
|
|
75
|
+
function _set_prototype_of(o, p) {
|
|
76
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
77
|
+
o.__proto__ = p;
|
|
78
|
+
return o;
|
|
79
|
+
};
|
|
80
|
+
return _set_prototype_of(o, p);
|
|
81
|
+
}
|
|
82
|
+
function _type_of(obj) {
|
|
83
|
+
"@swc/helpers - typeof";
|
|
84
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
85
|
+
}
|
|
86
|
+
function _wrap_native_super(Class) {
|
|
87
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
88
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
89
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
90
|
+
if (typeof Class !== "function") {
|
|
91
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
92
|
+
}
|
|
93
|
+
if (typeof _cache !== "undefined") {
|
|
94
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
95
|
+
_cache.set(Class, Wrapper);
|
|
96
|
+
}
|
|
97
|
+
function Wrapper() {
|
|
98
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
99
|
+
}
|
|
100
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
101
|
+
constructor: {
|
|
102
|
+
value: Wrapper,
|
|
103
|
+
enumerable: false,
|
|
104
|
+
writable: true,
|
|
105
|
+
configurable: true
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return _set_prototype_of(Wrapper, Class);
|
|
109
|
+
};
|
|
110
|
+
return _wrap_native_super(Class);
|
|
111
|
+
}
|
|
112
|
+
function _is_native_reflect_construct() {
|
|
113
|
+
try {
|
|
114
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
115
|
+
} catch (_) {}
|
|
116
|
+
return (_is_native_reflect_construct = function() {
|
|
117
|
+
return !!result;
|
|
118
|
+
})();
|
|
119
|
+
}
|
|
120
|
+
import { __privateSet, __privateAdd, __privateGet } from '../../chunk-AQ5VUG5P.js';
|
|
121
|
+
var _settled, _status, _result;
|
|
122
|
+
var WatchablePromise = /*#__PURE__*/ function(Promise1) {
|
|
123
|
+
"use strict";
|
|
124
|
+
_inherits(WatchablePromise, Promise1);
|
|
125
|
+
function WatchablePromise(executor) {
|
|
126
|
+
_class_call_check(this, WatchablePromise);
|
|
127
|
+
var _this;
|
|
128
|
+
_this = _call_super(this, WatchablePromise, [
|
|
129
|
+
function(resolve, reject) {
|
|
130
|
+
executor(function(value) {
|
|
131
|
+
resolve(value);
|
|
132
|
+
__privateSet(_assert_this_initialized(_this), _settled, true);
|
|
133
|
+
__privateSet(_assert_this_initialized(_this), _status, "fulfilled");
|
|
134
|
+
__privateSet(_assert_this_initialized(_this), _result, value);
|
|
135
|
+
}, function(reason) {
|
|
136
|
+
reject(reason);
|
|
137
|
+
__privateSet(_assert_this_initialized(_this), _settled, true);
|
|
138
|
+
__privateSet(_assert_this_initialized(_this), _status, "rejected");
|
|
139
|
+
__privateSet(_assert_this_initialized(_this), _result, reason);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
]);
|
|
143
|
+
__privateAdd(_this, _settled, false);
|
|
144
|
+
__privateAdd(_this, _status, "pending");
|
|
145
|
+
__privateAdd(_this, _result);
|
|
146
|
+
return _this;
|
|
147
|
+
}
|
|
148
|
+
_create_class(WatchablePromise, [
|
|
149
|
+
{
|
|
150
|
+
key: "settled",
|
|
151
|
+
get: function get() {
|
|
152
|
+
return __privateGet(this, _settled);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
key: "status",
|
|
157
|
+
get: function get() {
|
|
158
|
+
return __privateGet(this, _status);
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "result",
|
|
163
|
+
get: function get() {
|
|
164
|
+
return __privateGet(this, _result);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
], [
|
|
168
|
+
{
|
|
169
|
+
key: "from",
|
|
170
|
+
value: function from(promise) {
|
|
171
|
+
return new this(function(resolve, reject) {
|
|
172
|
+
return promise.then(resolve, reject);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]);
|
|
177
|
+
return WatchablePromise;
|
|
178
|
+
}(_wrap_native_super(Promise));
|
|
179
|
+
_settled = new WeakMap();
|
|
180
|
+
_status = new WeakMap();
|
|
181
|
+
_result = new WeakMap();
|
|
182
|
+
export { WatchablePromise };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WatchablePromiseStatus = 'pending' | 'fulfilled' | 'rejected';
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var WatchablePromise = require('./WatchablePromise');
|
|
3
|
+
Object.keys(WatchablePromise).forEach(function(k) {
|
|
4
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function get() {
|
|
7
|
+
return WatchablePromise[k];
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WatchablePromise.js';
|
package/dist/shared/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var constants = require('./constants');
|
|
3
|
+
var features = require('./features');
|
|
3
4
|
var interfaces = require('./interfaces');
|
|
4
5
|
var managers = require('./managers');
|
|
5
6
|
var scripts = require('./scripts');
|
|
@@ -14,6 +15,14 @@ Object.keys(constants).forEach(function(k) {
|
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
17
|
});
|
|
18
|
+
Object.keys(features).forEach(function(k) {
|
|
19
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return features[k];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
17
26
|
Object.keys(interfaces).forEach(function(k) {
|
|
18
27
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
28
|
enumerable: true,
|
package/dist/shared/index.d.ts
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -217,7 +217,7 @@ function _ts_generator(thisArg, body) {
|
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
var
|
|
220
|
+
var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
|
|
221
221
|
var jwtDecode = require('jwt-decode');
|
|
222
222
|
var moment = require('moment');
|
|
223
223
|
var EventEmitter = require('eventemitter3');
|
|
@@ -235,8 +235,8 @@ var _SessionManager = /*#__PURE__*/ function(_EventEmitter__default_default) {
|
|
|
235
235
|
var _this;
|
|
236
236
|
_this = _call_super(this, _SessionManager);
|
|
237
237
|
// Service parameters
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
chunkJE77HYXB_cjs.__publicField(_this, "api");
|
|
239
|
+
chunkJE77HYXB_cjs.__publicField(_this, "storageProvider");
|
|
240
240
|
_this.api = options.api;
|
|
241
241
|
_this.storageProvider = options.storageProvider;
|
|
242
242
|
console.log("SessionManager initialized", Date.now(), options.api);
|
|
@@ -493,6 +493,6 @@ var _SessionManager = /*#__PURE__*/ function(_EventEmitter__default_default) {
|
|
|
493
493
|
]);
|
|
494
494
|
return _SessionManager;
|
|
495
495
|
}(EventEmitter__default.default);
|
|
496
|
-
|
|
496
|
+
chunkJE77HYXB_cjs.__publicField(_SessionManager, "DEFAULT_AUTHORIZATION_STORAGE_KEY", "AUTHORIZATION");
|
|
497
497
|
var SessionManager = _SessionManager;
|
|
498
498
|
exports.SessionManager = SessionManager;
|
|
@@ -216,7 +216,7 @@ function _ts_generator(thisArg, body) {
|
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
import { __publicField } from '../../chunk-
|
|
219
|
+
import { __publicField } from '../../chunk-AQ5VUG5P.js';
|
|
220
220
|
import { jwtDecode } from 'jwt-decode';
|
|
221
221
|
import moment from 'moment';
|
|
222
222
|
import EventEmitter from 'eventemitter3';
|
|
@@ -192,7 +192,7 @@ function _ts_generator(thisArg, body) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var chunkJE77HYXB_cjs = require('../../../chunk-JE77HYXB.cjs');
|
|
196
196
|
var EventEmitter = require('eventemitter3');
|
|
197
197
|
function _interopDefault(e) {
|
|
198
198
|
return e && e.__esModule ? e : {
|
|
@@ -208,13 +208,13 @@ var TimeService = /*#__PURE__*/ function(_EventEmitter__default_default) {
|
|
|
208
208
|
var _this;
|
|
209
209
|
_this = _call_super(this, TimeService);
|
|
210
210
|
// Internal
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
chunkJE77HYXB_cjs.__publicField(_this, "syncHandler");
|
|
212
|
+
chunkJE77HYXB_cjs.__publicField(_this, "offset");
|
|
213
|
+
chunkJE77HYXB_cjs.__publicField(_this, "syncedAt");
|
|
214
214
|
// Members
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
chunkJE77HYXB_cjs.__publicField(_this, "syncInterval");
|
|
216
|
+
chunkJE77HYXB_cjs.__publicField(_this, "clientTimeProvider");
|
|
217
|
+
chunkJE77HYXB_cjs.__publicField(_this, "serverTimeProvider");
|
|
218
218
|
_this.syncInterval = options === null || options === void 0 ? void 0 : options.syncInterval;
|
|
219
219
|
_this.clientTimeProvider = options === null || options === void 0 ? void 0 : options.clientTimeProvider;
|
|
220
220
|
_this.serverTimeProvider = options === null || options === void 0 ? void 0 : options.serverTimeProvider;
|
|
@@ -191,7 +191,7 @@ function _ts_generator(thisArg, body) {
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
import { __publicField } from '../../../chunk-
|
|
194
|
+
import { __publicField } from '../../../chunk-AQ5VUG5P.js';
|
|
195
195
|
import EventEmitter from 'eventemitter3';
|
|
196
196
|
var LOG_TAG = "TimeService";
|
|
197
197
|
var TimeService = /*#__PURE__*/ function(EventEmitter) {
|
|
@@ -43,7 +43,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
43
43
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
44
44
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
45
45
|
}
|
|
46
|
-
require('../../chunk-
|
|
46
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
47
47
|
var global = require('./global');
|
|
48
48
|
var ArrayUtils = /*#__PURE__*/ function() {
|
|
49
49
|
function ArrayUtils() {
|
|
@@ -42,7 +42,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
42
42
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
43
43
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
44
44
|
}
|
|
45
|
-
import '../../chunk-
|
|
45
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
46
46
|
import { castArray } from './global/index.js';
|
|
47
47
|
var ArrayUtils = /*#__PURE__*/ function() {
|
|
48
48
|
"use strict";
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var AxiosUtils = /*#__PURE__*/ function() {
|
|
23
23
|
function AxiosUtils() {
|
|
24
24
|
_class_call_check(this, AxiosUtils);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var AxiosUtils = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function AxiosUtils() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
require('../../chunk-
|
|
2
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
3
3
|
function parseBoolean(value, defaultValue) {
|
|
4
4
|
if (value === void 0 || value === null) return defaultValue;
|
|
5
5
|
return value === "true" || value === true || value === 1 || value === "1";
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var Calc = /*#__PURE__*/ function() {
|
|
23
23
|
function Calc() {
|
|
24
24
|
_class_call_check(this, Calc);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var Calc = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function Calc() {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var CoordinateUtils = /*#__PURE__*/ function() {
|
|
23
23
|
function CoordinateUtils() {
|
|
24
24
|
_class_call_check(this, CoordinateUtils);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var CoordinateUtils = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function CoordinateUtils() {
|
|
@@ -29,7 +29,7 @@ function _type_of(obj) {
|
|
|
29
29
|
"@swc/helpers - typeof";
|
|
30
30
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
|
|
33
33
|
var moment = require('moment');
|
|
34
34
|
var DATE = require('../constants/DATE');
|
|
35
35
|
function _interopDefault(e) {
|
|
@@ -185,7 +185,7 @@ var _DateUtils = /*#__PURE__*/ function() {
|
|
|
185
185
|
]);
|
|
186
186
|
return _DateUtils;
|
|
187
187
|
}();
|
|
188
|
-
|
|
188
|
+
chunkJE77HYXB_cjs.__publicField(_DateUtils, "relativeDate", function(input) {
|
|
189
189
|
var base = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Date.now();
|
|
190
190
|
var datetime = moment__default.default.isMoment(input) ? moment__default.default(input.toDate()) : moment__default.default(input);
|
|
191
191
|
if (!datetime.isValid()) {
|
|
@@ -194,7 +194,7 @@ chunkETV4XYOV_cjs.__publicField(_DateUtils, "relativeDate", function(input) {
|
|
|
194
194
|
}
|
|
195
195
|
return datetime.from(base);
|
|
196
196
|
});
|
|
197
|
-
|
|
197
|
+
chunkJE77HYXB_cjs.__publicField(_DateUtils, "setLocale", function(language) {
|
|
198
198
|
var relativeTime = _DateUtils.getRelativeTimeSpec(language);
|
|
199
199
|
if (relativeTime !== void 0) {
|
|
200
200
|
moment__default.default.updateLocale(language, {
|
|
@@ -203,7 +203,7 @@ chunkETV4XYOV_cjs.__publicField(_DateUtils, "setLocale", function(language) {
|
|
|
203
203
|
}
|
|
204
204
|
moment__default.default.locale(language);
|
|
205
205
|
});
|
|
206
|
-
|
|
206
|
+
chunkJE77HYXB_cjs.__publicField(_DateUtils, "getRelativeTimeSpec", function(locale) {
|
|
207
207
|
if (locale in _DateUtils.relativeTimeSpecs) {
|
|
208
208
|
return _DateUtils.relativeTimeSpecs[locale];
|
|
209
209
|
}
|
|
@@ -28,7 +28,7 @@ function _type_of(obj) {
|
|
|
28
28
|
"@swc/helpers - typeof";
|
|
29
29
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
30
30
|
}
|
|
31
|
-
import { __publicField } from '../../chunk-
|
|
31
|
+
import { __publicField } from '../../chunk-AQ5VUG5P.js';
|
|
32
32
|
import moment from 'moment';
|
|
33
33
|
import { DATE } from '../constants/DATE.js';
|
|
34
34
|
var _DateUtils = /*#__PURE__*/ function() {
|
|
@@ -64,14 +64,14 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
64
64
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
65
65
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
|
|
68
68
|
var Enum = /*#__PURE__*/ function() {
|
|
69
69
|
function Enum(e) {
|
|
70
70
|
_class_call_check(this, Enum);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
chunkJE77HYXB_cjs.__publicField(this, "_e");
|
|
72
|
+
chunkJE77HYXB_cjs.__publicField(this, "_entries");
|
|
73
|
+
chunkJE77HYXB_cjs.__publicField(this, "_keys");
|
|
74
|
+
chunkJE77HYXB_cjs.__publicField(this, "_values");
|
|
75
75
|
this._e = e;
|
|
76
76
|
this._entries = Enum.entries(e);
|
|
77
77
|
this._keys = Enum.keys(e);
|
|
@@ -63,7 +63,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
63
63
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
64
64
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
65
65
|
}
|
|
66
|
-
import { __publicField } from '../../chunk-
|
|
66
|
+
import { __publicField } from '../../chunk-AQ5VUG5P.js';
|
|
67
67
|
var Enum = /*#__PURE__*/ function() {
|
|
68
68
|
"use strict";
|
|
69
69
|
function Enum(e) {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var deepmerge = require('deepmerge');
|
|
23
23
|
function _interopDefault(e) {
|
|
24
24
|
return e && e.__esModule ? e : {
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
import deepmerge from 'deepmerge';
|
|
22
22
|
var I18nUtils = /*#__PURE__*/ function() {
|
|
23
23
|
"use strict";
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var between = require('./global/between');
|
|
23
23
|
var JuminNumberUtils = /*#__PURE__*/ function() {
|
|
24
24
|
function JuminNumberUtils() {
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
import { between } from './global/between.js';
|
|
22
22
|
var JuminNumberUtils = /*#__PURE__*/ function() {
|
|
23
23
|
"use strict";
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var NumberUtils = /*#__PURE__*/ function() {
|
|
23
23
|
function NumberUtils() {
|
|
24
24
|
_class_call_check(this, NumberUtils);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var NumberUtils = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function NumberUtils() {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var Uint8ArrayUtils = require('./Uint8ArrayUtils');
|
|
23
23
|
var node = require('@powfix/uuid/node');
|
|
24
24
|
var ObjectIdUtils = /*#__PURE__*/ function() {
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
import { Uint8ArrayUtils } from './Uint8ArrayUtils.js';
|
|
22
22
|
import { UUID } from '@powfix/uuid/node';
|
|
23
23
|
var ObjectIdUtils = /*#__PURE__*/ function() {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var Point3Utils = /*#__PURE__*/ function() {
|
|
23
23
|
function Point3Utils() {
|
|
24
24
|
_class_call_check(this, Point3Utils);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var Point3Utils = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function Point3Utils() {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19
19
|
return Constructor;
|
|
20
20
|
}
|
|
21
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-JE77HYXB.cjs');
|
|
22
22
|
var RandomUtils = /*#__PURE__*/ function() {
|
|
23
23
|
function RandomUtils() {
|
|
24
24
|
_class_call_check(this, RandomUtils);
|
|
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-AQ5VUG5P.js';
|
|
21
21
|
var RandomUtils = /*#__PURE__*/ function() {
|
|
22
22
|
"use strict";
|
|
23
23
|
function RandomUtils() {
|