@conduitplatform/grpc-sdk 0.15.18 → 0.15.19
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/classes/ConduitActiveSchema.js +25 -43
- package/dist/classes/ConduitActiveSchema.js.map +1 -1
- package/dist/classes/ConduitAuthorizedResource.js +5 -6
- package/dist/classes/ConduitAuthorizedResource.js.map +1 -1
- package/dist/classes/ConduitModule.js +44 -138
- package/dist/classes/ConduitModule.js.map +1 -1
- package/dist/classes/ConduitSchema.js +3 -4
- package/dist/classes/ConduitSchema.js.map +1 -1
- package/dist/classes/ConduitServiceModule.js +39 -98
- package/dist/classes/ConduitServiceModule.js.map +1 -1
- package/dist/classes/ConfigController.js +10 -17
- package/dist/classes/ConfigController.js.map +1 -1
- package/dist/classes/Error.js +17 -40
- package/dist/classes/Error.js.map +1 -1
- package/dist/classes/GrpcServer.js +88 -172
- package/dist/classes/GrpcServer.js.map +1 -1
- package/dist/classes/HealthCheck.js +26 -72
- package/dist/classes/HealthCheck.js.map +1 -1
- package/dist/classes/ManagedModule.js +93 -245
- package/dist/classes/ManagedModule.js.map +1 -1
- package/dist/classes/ModuleManager.js +51 -149
- package/dist/classes/ModuleManager.js.map +1 -1
- package/dist/helpers/GrpcHelper.js +11 -11
- package/dist/helpers/GrpcHelper.js.map +1 -1
- package/dist/helpers/TypeHelpers.js +57 -119
- package/dist/helpers/TypeHelpers.js.map +1 -1
- package/dist/helpers/wrapGrpcFunctions.js +14 -15
- package/dist/helpers/wrapGrpcFunctions.js.map +1 -1
- package/dist/index.js +299 -467
- package/dist/index.js.map +1 -1
- package/dist/interceptors/grpcSignedToken.js +7 -79
- package/dist/interceptors/grpcSignedToken.js.map +1 -1
- package/dist/interceptors/moduleName.js +7 -79
- package/dist/interceptors/moduleName.js.map +1 -1
- package/dist/metrics/MetricsServer.js +25 -70
- package/dist/metrics/MetricsServer.js.map +1 -1
- package/dist/metrics/clientMiddleware.js +76 -217
- package/dist/metrics/clientMiddleware.js.map +1 -1
- package/dist/metrics/config/defaults.js +1 -1
- package/dist/metrics/config/defaults.js.map +1 -1
- package/dist/metrics/index.js +53 -89
- package/dist/metrics/index.js.map +1 -1
- package/dist/modules/admin/index.js +16 -34
- package/dist/modules/admin/index.js.map +1 -1
- package/dist/modules/authentication/index.js +20 -39
- package/dist/modules/authentication/index.js.map +1 -1
- package/dist/modules/authorization/index.js +29 -47
- package/dist/modules/authorization/index.js.map +1 -1
- package/dist/modules/chat/index.js +16 -34
- package/dist/modules/chat/index.js.map +1 -1
- package/dist/modules/config/index.js +70 -175
- package/dist/modules/config/index.js.map +1 -1
- package/dist/modules/core/index.js +8 -26
- package/dist/modules/core/index.js.map +1 -1
- package/dist/modules/database/index.js +80 -122
- package/dist/modules/database/index.js.map +1 -1
- package/dist/modules/email/index.js +15 -33
- package/dist/modules/email/index.js.map +1 -1
- package/dist/modules/forms/index.js +8 -26
- package/dist/modules/forms/index.js.map +1 -1
- package/dist/modules/functions/index.js +8 -26
- package/dist/modules/functions/index.js.map +1 -1
- package/dist/modules/pushNotifications/index.js +38 -56
- package/dist/modules/pushNotifications/index.js.map +1 -1
- package/dist/modules/router/index.js +18 -36
- package/dist/modules/router/index.js.map +1 -1
- package/dist/modules/sms/index.js +17 -35
- package/dist/modules/sms/index.js.map +1 -1
- package/dist/modules/storage/index.js +17 -36
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/protoUtils/authentication.d.ts +1 -1
- package/dist/protoUtils/authentication.js +165 -146
- package/dist/protoUtils/authentication.js.map +1 -1
- package/dist/protoUtils/authorization.d.ts +1 -1
- package/dist/protoUtils/authorization.js +292 -351
- package/dist/protoUtils/authorization.js.map +1 -1
- package/dist/protoUtils/chat.d.ts +1 -1
- package/dist/protoUtils/chat.js +156 -192
- package/dist/protoUtils/chat.js.map +1 -1
- package/dist/protoUtils/core.d.ts +1 -1
- package/dist/protoUtils/core.js +555 -517
- package/dist/protoUtils/core.js.map +1 -1
- package/dist/protoUtils/database.d.ts +1 -1
- package/dist/protoUtils/database.js +485 -476
- package/dist/protoUtils/database.js.map +1 -1
- package/dist/protoUtils/email.d.ts +1 -1
- package/dist/protoUtils/email.js +157 -185
- package/dist/protoUtils/email.js.map +1 -1
- package/dist/protoUtils/forms.d.ts +1 -1
- package/dist/protoUtils/forms.js +33 -31
- package/dist/protoUtils/forms.js.map +1 -1
- package/dist/protoUtils/functions.d.ts +1 -1
- package/dist/protoUtils/functions.js +33 -31
- package/dist/protoUtils/functions.js.map +1 -1
- package/dist/protoUtils/grpc_health_check.d.ts +1 -1
- package/dist/protoUtils/grpc_health_check.js +32 -30
- package/dist/protoUtils/grpc_health_check.js.map +1 -1
- package/dist/protoUtils/push-notifications.d.ts +1 -1
- package/dist/protoUtils/push-notifications.js +220 -240
- package/dist/protoUtils/push-notifications.js.map +1 -1
- package/dist/protoUtils/router.d.ts +1 -1
- package/dist/protoUtils/router.js +326 -332
- package/dist/protoUtils/router.js.map +1 -1
- package/dist/protoUtils/sms.d.ts +1 -1
- package/dist/protoUtils/sms.js +137 -125
- package/dist/protoUtils/sms.js.map +1 -1
- package/dist/protoUtils/storage.d.ts +1 -1
- package/dist/protoUtils/storage.js +165 -139
- package/dist/protoUtils/storage.js.map +1 -1
- package/dist/routing/ConduitRouteReturn.js +9 -18
- package/dist/routing/ConduitRouteReturn.js.map +1 -1
- package/dist/routing/ProxyRouteBuilder.js +21 -24
- package/dist/routing/ProxyRouteBuilder.js.map +1 -1
- package/dist/routing/RouteBuilder.js +31 -34
- package/dist/routing/RouteBuilder.js.map +1 -1
- package/dist/routing/RoutingManager.js +65 -115
- package/dist/routing/RoutingManager.js.map +1 -1
- package/dist/routing/RoutingUtilities.js +3 -3
- package/dist/routing/RoutingUtilities.js.map +1 -1
- package/dist/routing/wrapRouterFunctions.js +25 -34
- package/dist/routing/wrapRouterFunctions.js.map +1 -1
- package/dist/types/index.js +6 -24
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/EventBus.js +16 -17
- package/dist/utilities/EventBus.js.map +1 -1
- package/dist/utilities/Logger.js +80 -180
- package/dist/utilities/Logger.js.map +1 -1
- package/dist/utilities/RedisManager.js +11 -21
- package/dist/utilities/RedisManager.js.map +1 -1
- package/dist/utilities/StateManager.js +13 -14
- package/dist/utilities/StateManager.js.map +1 -1
- package/dist/utilities/linearBackoffTimeout.js +28 -92
- package/dist/utilities/linearBackoffTimeout.js.map +1 -1
- package/dist/utilities/merge.js +2 -2
- package/dist/utilities/merge.js.map +1 -1
- package/dist/utilities/sleep.js +1 -1
- package/dist/utilities/sleep.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
6
|
exports.RedisManager = void 0;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.redisConnection =
|
|
7
|
+
const ioredis_1 = __importDefault(require("ioredis"));
|
|
8
|
+
class RedisManager {
|
|
9
|
+
constructor(redisDetails) {
|
|
10
|
+
this.redisConnection = {
|
|
11
|
+
...redisDetails,
|
|
12
|
+
};
|
|
22
13
|
}
|
|
23
|
-
|
|
14
|
+
getClient(options) {
|
|
24
15
|
if (this.redisConnection.hasOwnProperty('nodes')) {
|
|
25
|
-
|
|
16
|
+
const clusterOptions = this.redisConnection;
|
|
26
17
|
return new ioredis_1.default.Cluster(clusterOptions.nodes, clusterOptions.options);
|
|
27
18
|
}
|
|
28
19
|
else {
|
|
29
|
-
return new ioredis_1.default(
|
|
20
|
+
return new ioredis_1.default({ ...this.redisConnection, ...options });
|
|
30
21
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
34
24
|
exports.RedisManager = RedisManager;
|
|
35
25
|
//# sourceMappingURL=RedisManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedisManager.js","sourceRoot":"","sources":["../../src/utilities/RedisManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RedisManager.js","sourceRoot":"","sources":["../../src/utilities/RedisManager.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAgF;AAEhF,MAAa,YAAY;IAKvB,YACE,YAEwE;QAExE,IAAI,CAAC,eAAe,GAAG;YACrB,GAAG,YAAY;SAChB,CAAC;IACJ,CAAC;IACD,SAAS,CACP,OAEwE;QAExE,IAAI,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;YAChD,MAAM,cAAc,GAAG,IAAI,CAAC,eAG3B,CAAC;YACF,OAAO,IAAI,iBAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;SAC1E;aAAM;YACL,OAAO,IAAI,iBAAO,CAAC,EAAE,GAAI,IAAI,CAAC,eAAgC,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;SAC/E;IACH,CAAC;CACF;AA7BD,oCA6BC"}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StateManager = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
class StateManager {
|
|
5
|
+
constructor(redisManager, name) {
|
|
6
6
|
this.redisClient = redisManager.getClient({ keyPrefix: name + '_' });
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
setState(stateObj) {
|
|
9
9
|
return this.setKey('state', stateObj);
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
getState() {
|
|
12
12
|
return this.getKey('state');
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
}
|
|
14
|
+
setKey(keyName, value, expiry) {
|
|
15
15
|
if (expiry) {
|
|
16
16
|
return this.redisClient.set(keyName, value, 'PX', expiry);
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
19
|
return this.redisClient.set(keyName, value);
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
21
|
+
}
|
|
22
|
+
clearKey(keyName) {
|
|
23
23
|
return this.redisClient.del(keyName);
|
|
24
|
-
}
|
|
25
|
-
|
|
24
|
+
}
|
|
25
|
+
getKey(keyName) {
|
|
26
26
|
return this.redisClient.get(keyName);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
30
29
|
exports.StateManager = StateManager;
|
|
31
30
|
//# sourceMappingURL=StateManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../src/utilities/StateManager.ts"],"names":[],"mappings":";;;AAGA;
|
|
1
|
+
{"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../src/utilities/StateManager.ts"],"names":[],"mappings":";;;AAGA,MAAa,YAAY;IAGvB,YAAY,YAA0B,EAAE,IAAY;QAClD,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,QAAQ,CAAC,QAAa;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,KAAU,EAAE,MAAe;QACjD,IAAI,MAAM,EAAE;YACV,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC3D;aAAM;YACL,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC7C;IACH,CAAC;IAED,QAAQ,CAAC,OAAe;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,OAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AA9BD,oCA8BC"}
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.linearBackoffTimeoutAsync = exports.linearBackoffTimeout = void 0;
|
|
40
4
|
/**
|
|
@@ -42,28 +6,24 @@ exports.linearBackoffTimeoutAsync = exports.linearBackoffTimeout = void 0;
|
|
|
42
6
|
* onFailure() only runs on rep exhaustion.
|
|
43
7
|
* Timeout can be cleared through returned clear() or inside onTry().
|
|
44
8
|
*/
|
|
45
|
-
|
|
9
|
+
const timers_1 = require("timers");
|
|
46
10
|
function linearBackoffTimeout(onTry, delay, reps, onFailure) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
return [2 /*return*/];
|
|
62
|
-
});
|
|
63
|
-
}); };
|
|
11
|
+
const nextRep = () => reps === undefined || --reps > 0;
|
|
12
|
+
let timeout;
|
|
13
|
+
const invoker = async () => {
|
|
14
|
+
delay = Math.floor(delay * 2);
|
|
15
|
+
if (delay > 0 && nextRep()) {
|
|
16
|
+
timeout = setTimeout(invoker, delay);
|
|
17
|
+
onTry(timeout);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
timeout = null;
|
|
21
|
+
onFailure && onFailure();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
64
24
|
timeout = setTimeout(invoker, delay);
|
|
65
25
|
return {
|
|
66
|
-
clear:
|
|
26
|
+
clear: () => {
|
|
67
27
|
if (timeout) {
|
|
68
28
|
(0, timers_1.clearTimeout)(timeout);
|
|
69
29
|
timeout = null;
|
|
@@ -77,43 +37,19 @@ exports.linearBackoffTimeout = linearBackoffTimeout;
|
|
|
77
37
|
* onFailure() only runs on rep exhaustion.
|
|
78
38
|
* @param {() => Promise<boolean>} onTry - Async handler, returns 'continue' boolean flag
|
|
79
39
|
*/
|
|
80
|
-
function linearBackoffTimeoutAsync(onTry, delay, reps, onFailure, startNow) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (!(delay > 0 && nextRep())) return [3 /*break*/, 2];
|
|
94
|
-
return [4 /*yield*/, onTry()];
|
|
95
|
-
case 1:
|
|
96
|
-
if (_b.sent())
|
|
97
|
-
setTimeout(invoker, delay);
|
|
98
|
-
return [3 /*break*/, 5];
|
|
99
|
-
case 2:
|
|
100
|
-
_a = onFailure;
|
|
101
|
-
if (!_a) return [3 /*break*/, 4];
|
|
102
|
-
return [4 /*yield*/, onFailure()];
|
|
103
|
-
case 3:
|
|
104
|
-
_a = (_b.sent());
|
|
105
|
-
_b.label = 4;
|
|
106
|
-
case 4:
|
|
107
|
-
_a;
|
|
108
|
-
_b.label = 5;
|
|
109
|
-
case 5: return [2 /*return*/];
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}); };
|
|
113
|
-
setTimeout(invoker, startNow ? 0 : delay);
|
|
114
|
-
return [2 /*return*/];
|
|
115
|
-
});
|
|
116
|
-
});
|
|
40
|
+
async function linearBackoffTimeoutAsync(onTry, delay, reps, onFailure, startNow = false) {
|
|
41
|
+
const nextRep = () => reps === undefined || --reps > 0;
|
|
42
|
+
const invoker = async () => {
|
|
43
|
+
delay = Math.floor(delay * 2);
|
|
44
|
+
if (delay > 0 && nextRep()) {
|
|
45
|
+
if (await onTry())
|
|
46
|
+
setTimeout(invoker, delay);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
onFailure && (await onFailure());
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
setTimeout(invoker, startNow ? 0 : delay);
|
|
117
53
|
}
|
|
118
54
|
exports.linearBackoffTimeoutAsync = linearBackoffTimeoutAsync;
|
|
119
55
|
//# sourceMappingURL=linearBackoffTimeout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linearBackoffTimeout.js","sourceRoot":"","sources":["../../src/utilities/linearBackoffTimeout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linearBackoffTimeout.js","sourceRoot":"","sources":["../../src/utilities/linearBackoffTimeout.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,mCAAsC;AAEtC,SAAgB,oBAAoB,CAClC,KAAwC,EACxC,KAAa,EACb,IAAa,EACb,SAAsB;IAEtB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC;IACvD,IAAI,OAA8B,CAAC;IACnC,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;QACzB,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAC9B,IAAI,KAAK,GAAG,CAAC,IAAI,OAAO,EAAE,EAAE;YAC1B,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACrC,KAAK,CAAC,OAAO,CAAC,CAAC;SAChB;aAAM;YACL,OAAO,GAAG,IAAI,CAAC;YACf,SAAS,IAAI,SAAS,EAAE,CAAC;SAC1B;IACH,CAAC,CAAC;IACF,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO;QACL,KAAK,EAAE,GAAG,EAAE;YACV,IAAI,OAAO,EAAE;gBACX,IAAA,qBAAY,EAAC,OAAO,CAAC,CAAC;gBACtB,OAAO,GAAG,IAAI,CAAC;aAChB;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AA3BD,oDA2BC;AAED;;;;GAIG;AACI,KAAK,UAAU,yBAAyB,CAC7C,KAA6B,EAC7B,KAAa,EACb,IAAa,EACb,SAAsC,EACtC,QAAQ,GAAG,KAAK;IAEhB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;QACzB,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAC9B,IAAI,KAAK,GAAG,CAAC,IAAI,OAAO,EAAE,EAAE;YAC1B,IAAI,MAAM,KAAK,EAAE;gBAAE,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC/C;aAAM;YACL,SAAS,IAAI,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;SAClC;IACH,CAAC,CAAC;IACF,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AAjBD,8DAiBC"}
|
package/dist/utilities/merge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.merge = void 0;
|
|
4
|
-
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
5
|
function merge(objA, objB) {
|
|
6
|
-
|
|
6
|
+
const customizer = (objValue, srcValue) => {
|
|
7
7
|
if (Array.isArray(objValue)) {
|
|
8
8
|
// don't merge arrays
|
|
9
9
|
return srcValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../src/utilities/merge.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../src/utilities/merge.ts"],"names":[],"mappings":";;;AAAA,mCAAiD;AAEjD,SAAgB,KAAK,CAAmB,IAAO,EAAE,IAAO;IACtD,MAAM,UAAU,GAAG,CAAC,QAAiB,EAAE,QAAiB,EAAE,EAAE;QAC1D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC3B,qBAAqB;YACrB,OAAO,QAAQ,CAAC;SACjB;IACH,CAAC,CAAC;IACF,OAAO,IAAA,kBAAU,EAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC;AARD,sBAQC"}
|
package/dist/utilities/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/utilities/sleep.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/utilities/sleep.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
|