@push.rocks/smartsocket 4.0.1 → 4.0.2
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_bundle/bundle.js
CHANGED
|
@@ -29,97 +29,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
mod
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js
|
|
33
|
-
var require_dist_ts = __commonJS({
|
|
34
|
-
"node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js"(exports) {
|
|
35
|
-
"use strict";
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.getFirstTrueOrFalse = exports.timeoutAndContinue = exports.timeoutWrap = exports.map = exports.rejectedPromise = exports.resolvedPromise = exports.defer = exports.Deferred = void 0;
|
|
38
|
-
var Deferred2 = class {
|
|
39
|
-
static {
|
|
40
|
-
__name(this, "Deferred");
|
|
41
|
-
}
|
|
42
|
-
constructor() {
|
|
43
|
-
this.promise = new Promise((resolve, reject) => {
|
|
44
|
-
this.resolve = (valueArg) => {
|
|
45
|
-
this.status = "fulfilled";
|
|
46
|
-
this.stoppedAt = Date.now();
|
|
47
|
-
resolve(valueArg);
|
|
48
|
-
};
|
|
49
|
-
this.reject = (reason) => {
|
|
50
|
-
this.status = "rejected";
|
|
51
|
-
this.stoppedAt = Date.now();
|
|
52
|
-
reject(reason);
|
|
53
|
-
};
|
|
54
|
-
this.startedAt = Date.now();
|
|
55
|
-
this.status = "pending";
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
get duration() {
|
|
59
|
-
if (this.stoppedAt) {
|
|
60
|
-
return this.stoppedAt - this.startedAt;
|
|
61
|
-
} else {
|
|
62
|
-
return Date.now() - this.startedAt;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
exports.Deferred = Deferred2;
|
|
67
|
-
exports.defer = () => {
|
|
68
|
-
return new Deferred2();
|
|
69
|
-
};
|
|
70
|
-
exports.resolvedPromise = (value) => {
|
|
71
|
-
return Promise.resolve(value);
|
|
72
|
-
};
|
|
73
|
-
exports.rejectedPromise = (err) => {
|
|
74
|
-
return Promise.reject(err);
|
|
75
|
-
};
|
|
76
|
-
exports.map = async (inputArg, functionArg) => {
|
|
77
|
-
const promiseArray = [];
|
|
78
|
-
const resultArray = [];
|
|
79
|
-
for (const item of inputArg) {
|
|
80
|
-
const promise = functionArg(item);
|
|
81
|
-
promiseArray.push(promise);
|
|
82
|
-
promise.then((x2) => {
|
|
83
|
-
resultArray.push(x2);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
await Promise.all(promiseArray);
|
|
87
|
-
return resultArray;
|
|
88
|
-
};
|
|
89
|
-
exports.timeoutWrap = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
|
|
90
|
-
return new Promise((resolve, reject) => {
|
|
91
|
-
setTimeout(() => {
|
|
92
|
-
if (rejectArg) {
|
|
93
|
-
reject(new Error("timeout"));
|
|
94
|
-
} else {
|
|
95
|
-
resolve(null);
|
|
96
|
-
}
|
|
97
|
-
}, timeoutInMsArg);
|
|
98
|
-
promiseArg.then(resolve, reject);
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
exports.timeoutAndContinue = async (promiseArg, timeoutInMsArg = 6e4) => {
|
|
102
|
-
return exports.timeoutWrap(promiseArg, timeoutInMsArg, false);
|
|
103
|
-
};
|
|
104
|
-
exports.getFirstTrueOrFalse = async (promisesArg) => {
|
|
105
|
-
const done = exports.defer();
|
|
106
|
-
for (const promiseArg of promisesArg) {
|
|
107
|
-
promiseArg.then((resultArg) => {
|
|
108
|
-
if (resultArg === true) {
|
|
109
|
-
done.resolve(true);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
Promise.all(promisesArg).then(() => {
|
|
114
|
-
done.resolve(false);
|
|
115
|
-
});
|
|
116
|
-
return done.promise;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
32
|
// node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
|
|
122
|
-
var
|
|
33
|
+
var require_dist_ts = __commonJS({
|
|
123
34
|
"node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) {
|
|
124
35
|
"use strict";
|
|
125
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1325,174 +1236,9 @@ var require_fast_json_stable_stringify = __commonJS({
|
|
|
1325
1236
|
// node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js
|
|
1326
1237
|
var dist_ts_exports = {};
|
|
1327
1238
|
|
|
1328
|
-
// node_modules/.pnpm/@push.rocks+isohash@2.0.1/node_modules/@push.rocks/isohash/dist_ts/index.js
|
|
1329
|
-
var dist_ts_exports3 = {};
|
|
1330
|
-
__export(dist_ts_exports3, {
|
|
1331
|
-
sha256FromString: () => sha256FromString
|
|
1332
|
-
});
|
|
1333
|
-
|
|
1334
|
-
// node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/index.js
|
|
1335
|
-
var dist_ts_exports2 = {};
|
|
1336
|
-
__export(dist_ts_exports2, {
|
|
1337
|
-
Smartenv: () => Smartenv
|
|
1338
|
-
});
|
|
1339
|
-
|
|
1340
|
-
// node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.plugins.js
|
|
1341
|
-
var smartpromise = __toESM(require_dist_ts(), 1);
|
|
1342
|
-
|
|
1343
|
-
// node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.classes.smartenv.js
|
|
1344
|
-
var Smartenv = class {
|
|
1345
|
-
static {
|
|
1346
|
-
__name(this, "Smartenv");
|
|
1347
|
-
}
|
|
1348
|
-
constructor() {
|
|
1349
|
-
this.loadedScripts = [];
|
|
1350
|
-
}
|
|
1351
|
-
async getEnvAwareModule(optionsArg) {
|
|
1352
|
-
if (this.isNode) {
|
|
1353
|
-
const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
|
|
1354
|
-
return moduleResult;
|
|
1355
|
-
} else if (this.isBrowser) {
|
|
1356
|
-
const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
|
|
1357
|
-
return moduleResult;
|
|
1358
|
-
} else {
|
|
1359
|
-
console.error("platform for loading not supported by smartenv");
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
async getSafeNodeModule(moduleNameArg) {
|
|
1363
|
-
if (!this.isNode) {
|
|
1364
|
-
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
|
|
1365
|
-
return;
|
|
1366
|
-
}
|
|
1367
|
-
return new Function(`return import('${moduleNameArg}')`)();
|
|
1368
|
-
}
|
|
1369
|
-
async getSafeWebModule(urlArg, getFunctionArg) {
|
|
1370
|
-
if (!this.isBrowser) {
|
|
1371
|
-
console.error("You tried to load a web module in a wrong context");
|
|
1372
|
-
return;
|
|
1373
|
-
}
|
|
1374
|
-
if (this.loadedScripts.includes(urlArg)) {
|
|
1375
|
-
return getFunctionArg();
|
|
1376
|
-
} else {
|
|
1377
|
-
this.loadedScripts.push(urlArg);
|
|
1378
|
-
}
|
|
1379
|
-
const done = smartpromise.defer();
|
|
1380
|
-
if (globalThis.importScripts) {
|
|
1381
|
-
globalThis.importScripts(urlArg);
|
|
1382
|
-
done.resolve();
|
|
1383
|
-
} else {
|
|
1384
|
-
const script = document.createElement("script");
|
|
1385
|
-
script.onload = () => {
|
|
1386
|
-
done.resolve();
|
|
1387
|
-
};
|
|
1388
|
-
script.src = urlArg;
|
|
1389
|
-
document.head.appendChild(script);
|
|
1390
|
-
}
|
|
1391
|
-
await done.promise;
|
|
1392
|
-
return getFunctionArg();
|
|
1393
|
-
}
|
|
1394
|
-
get runtimeEnv() {
|
|
1395
|
-
if (typeof process !== "undefined") {
|
|
1396
|
-
return "node";
|
|
1397
|
-
} else {
|
|
1398
|
-
return "browser";
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
get isBrowser() {
|
|
1402
|
-
return !this.isNode;
|
|
1403
|
-
}
|
|
1404
|
-
get userAgent() {
|
|
1405
|
-
if (this.isBrowser) {
|
|
1406
|
-
return navigator.userAgent;
|
|
1407
|
-
} else {
|
|
1408
|
-
return "undefined";
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
get isNode() {
|
|
1412
|
-
return this.runtimeEnv === "node";
|
|
1413
|
-
}
|
|
1414
|
-
get nodeVersion() {
|
|
1415
|
-
return process.version;
|
|
1416
|
-
}
|
|
1417
|
-
get isCI() {
|
|
1418
|
-
if (this.isNode) {
|
|
1419
|
-
if (process.env.CI) {
|
|
1420
|
-
return true;
|
|
1421
|
-
} else {
|
|
1422
|
-
return false;
|
|
1423
|
-
}
|
|
1424
|
-
} else {
|
|
1425
|
-
return false;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
async isMacAsync() {
|
|
1429
|
-
if (this.isNode) {
|
|
1430
|
-
const os = await this.getSafeNodeModule("os");
|
|
1431
|
-
return os.platform() === "darwin";
|
|
1432
|
-
} else {
|
|
1433
|
-
return false;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
async isWindowsAsync() {
|
|
1437
|
-
if (this.isNode) {
|
|
1438
|
-
const os = await this.getSafeNodeModule("os");
|
|
1439
|
-
return os.platform() === "win32";
|
|
1440
|
-
} else {
|
|
1441
|
-
return false;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
async isLinuxAsync() {
|
|
1445
|
-
if (this.isNode) {
|
|
1446
|
-
const os = await this.getSafeNodeModule("os");
|
|
1447
|
-
return os.platform() === "linux";
|
|
1448
|
-
} else {
|
|
1449
|
-
return false;
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
/**
|
|
1453
|
-
* prints the environment to console
|
|
1454
|
-
*/
|
|
1455
|
-
async printEnv() {
|
|
1456
|
-
if (this.isNode) {
|
|
1457
|
-
console.log("running on NODE");
|
|
1458
|
-
console.log("node version is " + this.nodeVersion);
|
|
1459
|
-
} else {
|
|
1460
|
-
console.log("running on BROWSER");
|
|
1461
|
-
console.log("browser is " + this.userAgent);
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
// node_modules/.pnpm/@push.rocks+isohash@2.0.1/node_modules/@push.rocks/isohash/dist_ts/index.js
|
|
1467
|
-
var hex = /* @__PURE__ */ __name((buffer2) => {
|
|
1468
|
-
const hexCodes = [];
|
|
1469
|
-
const view = new DataView(buffer2);
|
|
1470
|
-
for (let i = 0; i < view.byteLength; i += 4) {
|
|
1471
|
-
const value = view.getUint32(i);
|
|
1472
|
-
const stringValue = value.toString(16);
|
|
1473
|
-
const padding = "00000000";
|
|
1474
|
-
const paddedValue = (padding + stringValue).slice(-padding.length);
|
|
1475
|
-
hexCodes.push(paddedValue);
|
|
1476
|
-
}
|
|
1477
|
-
return hexCodes.join("");
|
|
1478
|
-
}, "hex");
|
|
1479
|
-
var sha256FromString = /* @__PURE__ */ __name(async (stringArg) => {
|
|
1480
|
-
const smartenv = new dist_ts_exports2.Smartenv();
|
|
1481
|
-
if (smartenv.isBrowser) {
|
|
1482
|
-
const buffer2 = new TextEncoder().encode(stringArg);
|
|
1483
|
-
const hash = await crypto.subtle.digest("SHA-256", buffer2);
|
|
1484
|
-
const result = hex(hash);
|
|
1485
|
-
return result;
|
|
1486
|
-
} else if (smartenv.isNode) {
|
|
1487
|
-
const smarthashModule = await smartenv.getSafeNodeModule("@pushrocks/smarthash");
|
|
1488
|
-
const result = await smarthashModule.sha256FromString(stringArg);
|
|
1489
|
-
return result;
|
|
1490
|
-
}
|
|
1491
|
-
}, "sha256FromString");
|
|
1492
|
-
|
|
1493
1239
|
// node_modules/.pnpm/@push.rocks+lik@6.4.1/node_modules/@push.rocks/lik/dist_ts/index.js
|
|
1494
|
-
var
|
|
1495
|
-
__export(
|
|
1240
|
+
var dist_ts_exports6 = {};
|
|
1241
|
+
__export(dist_ts_exports6, {
|
|
1496
1242
|
AsyncExecutionStack: () => AsyncExecutionStack,
|
|
1497
1243
|
BackpressuredArray: () => BackpressuredArray,
|
|
1498
1244
|
FastMap: () => FastMap,
|
|
@@ -1509,16 +1255,16 @@ __export(dist_ts_exports8, {
|
|
|
1509
1255
|
});
|
|
1510
1256
|
|
|
1511
1257
|
// node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js
|
|
1512
|
-
var
|
|
1513
|
-
__export(
|
|
1258
|
+
var dist_ts_exports3 = {};
|
|
1259
|
+
__export(dist_ts_exports3, {
|
|
1514
1260
|
Timeout: () => Timeout,
|
|
1515
1261
|
delayFor: () => delayFor,
|
|
1516
1262
|
delayForRandom: () => delayForRandom
|
|
1517
1263
|
});
|
|
1518
1264
|
|
|
1519
1265
|
// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js
|
|
1520
|
-
var
|
|
1521
|
-
__export(
|
|
1266
|
+
var dist_ts_exports2 = {};
|
|
1267
|
+
__export(dist_ts_exports2, {
|
|
1522
1268
|
CumulativeDeferred: () => CumulativeDeferred,
|
|
1523
1269
|
Deferred: () => Deferred,
|
|
1524
1270
|
cumulativeDefer: () => cumulativeDefer,
|
|
@@ -1712,8 +1458,8 @@ var Timeout = class {
|
|
|
1712
1458
|
};
|
|
1713
1459
|
|
|
1714
1460
|
// node_modules/.pnpm/@push.rocks+smartmatch@2.0.0/node_modules/@push.rocks/smartmatch/dist_ts/index.js
|
|
1715
|
-
var
|
|
1716
|
-
__export(
|
|
1461
|
+
var dist_ts_exports4 = {};
|
|
1462
|
+
__export(dist_ts_exports4, {
|
|
1717
1463
|
SmartMatch: () => SmartMatch
|
|
1718
1464
|
});
|
|
1719
1465
|
|
|
@@ -1830,8 +1576,8 @@ var SmartMatch = class {
|
|
|
1830
1576
|
};
|
|
1831
1577
|
|
|
1832
1578
|
// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/index.js
|
|
1833
|
-
var
|
|
1834
|
-
__export(
|
|
1579
|
+
var dist_ts_exports5 = {};
|
|
1580
|
+
__export(dist_ts_exports5, {
|
|
1835
1581
|
ObservableIntake: () => ObservableIntake,
|
|
1836
1582
|
Observablemap: () => Observablemap,
|
|
1837
1583
|
fromStreamWithBackpressure: () => fromStreamWithBackpressure,
|
|
@@ -4577,7 +4323,7 @@ var ObservableIntake = class {
|
|
|
4577
4323
|
return observerArg.complete();
|
|
4578
4324
|
};
|
|
4579
4325
|
});
|
|
4580
|
-
this.completedDeffered =
|
|
4326
|
+
this.completedDeffered = dist_ts_exports2.defer();
|
|
4581
4327
|
this.completed = this.completedDeffered.promise;
|
|
4582
4328
|
}
|
|
4583
4329
|
setObservable(observableFunc) {
|
|
@@ -4666,8 +4412,8 @@ function fromStreamWithBackpressure(stream) {
|
|
|
4666
4412
|
__name(fromStreamWithBackpressure, "fromStreamWithBackpressure");
|
|
4667
4413
|
|
|
4668
4414
|
// node_modules/.pnpm/@push.rocks+smarttime@4.2.3/node_modules/@push.rocks/smarttime/dist_ts/index.js
|
|
4669
|
-
var
|
|
4670
|
-
__export(
|
|
4415
|
+
var dist_ts_exports7 = {};
|
|
4416
|
+
__export(dist_ts_exports7, {
|
|
4671
4417
|
CronJob: () => CronJob,
|
|
4672
4418
|
CronManager: () => CronManager,
|
|
4673
4419
|
ExtendedDate: () => ExtendedDate,
|
|
@@ -12265,7 +12011,7 @@ var CronManager = class {
|
|
|
12265
12011
|
}
|
|
12266
12012
|
constructor() {
|
|
12267
12013
|
this.status = "stopped";
|
|
12268
|
-
this.cronjobs = new
|
|
12014
|
+
this.cronjobs = new dist_ts_exports6.ObjectMap();
|
|
12269
12015
|
this.cycleWakeDeferred = null;
|
|
12270
12016
|
}
|
|
12271
12017
|
/**
|
|
@@ -12307,7 +12053,7 @@ var CronManager = class {
|
|
|
12307
12053
|
}
|
|
12308
12054
|
async runCronCycle() {
|
|
12309
12055
|
while (this.status === "started") {
|
|
12310
|
-
this.cycleWakeDeferred = new
|
|
12056
|
+
this.cycleWakeDeferred = new dist_ts_exports2.Deferred();
|
|
12311
12057
|
let soonestMs = Infinity;
|
|
12312
12058
|
for (const cronJob of this.cronjobs.getArray()) {
|
|
12313
12059
|
cronJob.checkExecution();
|
|
@@ -12317,7 +12063,7 @@ var CronManager = class {
|
|
|
12317
12063
|
}
|
|
12318
12064
|
}
|
|
12319
12065
|
if (soonestMs < Infinity && soonestMs > 0) {
|
|
12320
|
-
this.executionTimeout = new
|
|
12066
|
+
this.executionTimeout = new dist_ts_exports3.Timeout(soonestMs);
|
|
12321
12067
|
await Promise.race([
|
|
12322
12068
|
this.executionTimeout.promise,
|
|
12323
12069
|
this.cycleWakeDeferred.promise
|
|
@@ -12584,7 +12330,7 @@ var Interval = class {
|
|
|
12584
12330
|
this.statusAuthorization = statusAuth;
|
|
12585
12331
|
const runInterval = /* @__PURE__ */ __name(async () => {
|
|
12586
12332
|
while (this.status === "started" && this.statusAuthorization === statusAuth) {
|
|
12587
|
-
await
|
|
12333
|
+
await dist_ts_exports3.delayFor(this.intervalMilliseconds);
|
|
12588
12334
|
this.executeIntervalJobs();
|
|
12589
12335
|
}
|
|
12590
12336
|
}, "runInterval");
|
|
@@ -12687,7 +12433,7 @@ var Timer = class {
|
|
|
12687
12433
|
}
|
|
12688
12434
|
constructor(timeInMillisecondsArg) {
|
|
12689
12435
|
this.state = "initiated";
|
|
12690
|
-
this.completedDeferred =
|
|
12436
|
+
this.completedDeferred = dist_ts_exports2.defer();
|
|
12691
12437
|
this.timeInMilliseconds = timeInMillisecondsArg;
|
|
12692
12438
|
this.completed = this.completedDeferred.promise;
|
|
12693
12439
|
}
|
|
@@ -12744,7 +12490,7 @@ var AsyncExecutionStack = class {
|
|
|
12744
12490
|
/** Queue of resolvers waiting for a non-exclusive slot */
|
|
12745
12491
|
nonExclusivePendingQueue = [];
|
|
12746
12492
|
async getExclusiveExecutionSlot(funcArg, timeoutArg) {
|
|
12747
|
-
const executionDeferred =
|
|
12493
|
+
const executionDeferred = dist_ts_exports2.defer();
|
|
12748
12494
|
const executionSlot = {
|
|
12749
12495
|
funcToExecute: funcArg,
|
|
12750
12496
|
executionDeferred,
|
|
@@ -12756,7 +12502,7 @@ var AsyncExecutionStack = class {
|
|
|
12756
12502
|
return executionDeferred.promise;
|
|
12757
12503
|
}
|
|
12758
12504
|
async getNonExclusiveExecutionSlot(funcArg, timeoutArg) {
|
|
12759
|
-
const executionDeferred =
|
|
12505
|
+
const executionDeferred = dist_ts_exports2.defer();
|
|
12760
12506
|
const executionSlot = {
|
|
12761
12507
|
funcToExecute: funcArg,
|
|
12762
12508
|
executionDeferred,
|
|
@@ -12812,7 +12558,7 @@ var AsyncExecutionStack = class {
|
|
|
12812
12558
|
async executeExclusiveSlot(slot) {
|
|
12813
12559
|
try {
|
|
12814
12560
|
if (slot.timeout) {
|
|
12815
|
-
const timeoutInstance = new
|
|
12561
|
+
const timeoutInstance = new dist_ts_exports3.Timeout(slot.timeout);
|
|
12816
12562
|
try {
|
|
12817
12563
|
const result = await Promise.race([
|
|
12818
12564
|
slot.funcToExecute(),
|
|
@@ -12839,7 +12585,7 @@ var AsyncExecutionStack = class {
|
|
|
12839
12585
|
await this.waitForNonExclusiveSlot();
|
|
12840
12586
|
try {
|
|
12841
12587
|
if (slot.timeout) {
|
|
12842
|
-
const timeoutInstance = new
|
|
12588
|
+
const timeoutInstance = new dist_ts_exports3.Timeout(slot.timeout);
|
|
12843
12589
|
try {
|
|
12844
12590
|
const result = await Promise.race([
|
|
12845
12591
|
slot.funcToExecute(),
|
|
@@ -12897,8 +12643,8 @@ var BackpressuredArray = class {
|
|
|
12897
12643
|
}
|
|
12898
12644
|
data;
|
|
12899
12645
|
highWaterMark;
|
|
12900
|
-
hasSpace = new
|
|
12901
|
-
itemsAvailable = new
|
|
12646
|
+
hasSpace = new dist_ts_exports5.rxjs.Subject();
|
|
12647
|
+
itemsAvailable = new dist_ts_exports5.rxjs.Subject();
|
|
12902
12648
|
isDestroyed = false;
|
|
12903
12649
|
constructor(highWaterMark = 16) {
|
|
12904
12650
|
this.data = [];
|
|
@@ -13084,7 +12830,7 @@ var ObjectMap = class _ObjectMap {
|
|
|
13084
12830
|
fastMap = new FastMap();
|
|
13085
12831
|
reverseMap = /* @__PURE__ */ new Map();
|
|
13086
12832
|
// events
|
|
13087
|
-
eventSubject = new
|
|
12833
|
+
eventSubject = new dist_ts_exports5.rxjs.Subject();
|
|
13088
12834
|
/**
|
|
13089
12835
|
* returns a new instance
|
|
13090
12836
|
*/
|
|
@@ -13315,7 +13061,7 @@ var Interest = class {
|
|
|
13315
13061
|
interestMapRef;
|
|
13316
13062
|
originalInterest;
|
|
13317
13063
|
comparisonFunc;
|
|
13318
|
-
destructionTimer = new
|
|
13064
|
+
destructionTimer = new dist_ts_exports7.Timer(1e4);
|
|
13319
13065
|
isFullfilled = false;
|
|
13320
13066
|
isDestroyed = false;
|
|
13321
13067
|
/**
|
|
@@ -13332,7 +13078,7 @@ var Interest = class {
|
|
|
13332
13078
|
get comparisonString() {
|
|
13333
13079
|
return this.comparisonFunc(this.originalInterest);
|
|
13334
13080
|
}
|
|
13335
|
-
interestDeferred = new
|
|
13081
|
+
interestDeferred = new dist_ts_exports2.Deferred();
|
|
13336
13082
|
interestFullfilled = this.interestDeferred.promise;
|
|
13337
13083
|
/**
|
|
13338
13084
|
* fullfill the interest
|
|
@@ -13354,7 +13100,7 @@ var Interest = class {
|
|
|
13354
13100
|
}
|
|
13355
13101
|
});
|
|
13356
13102
|
if (this.options?.markLostAfterDefault) {
|
|
13357
|
-
this.markLostTimeout = new
|
|
13103
|
+
this.markLostTimeout = new dist_ts_exports3.Timeout(this.options.markLostAfterDefault);
|
|
13358
13104
|
this.markLostTimeout.promise.then(() => {
|
|
13359
13105
|
if (!this.isDestroyed) {
|
|
13360
13106
|
this.markLost();
|
|
@@ -13443,7 +13189,7 @@ var InterestMap = class {
|
|
|
13443
13189
|
this.interestObservable.push(returnInterest);
|
|
13444
13190
|
return returnInterest;
|
|
13445
13191
|
}
|
|
13446
|
-
interestObservable = new
|
|
13192
|
+
interestObservable = new dist_ts_exports5.ObservableIntake();
|
|
13447
13193
|
/**
|
|
13448
13194
|
* removes an interest from the interest map
|
|
13449
13195
|
*/
|
|
@@ -13645,7 +13391,7 @@ var Stringmap = class {
|
|
|
13645
13391
|
* checks stringPresence with minimatch
|
|
13646
13392
|
*/
|
|
13647
13393
|
checkMinimatch(miniMatchStringArg) {
|
|
13648
|
-
const smartMatchInstance = new
|
|
13394
|
+
const smartMatchInstance = new dist_ts_exports4.SmartMatch(miniMatchStringArg);
|
|
13649
13395
|
let foundMatch = false;
|
|
13650
13396
|
for (const stringItem of this._stringArray) {
|
|
13651
13397
|
if (smartMatchInstance.match(stringItem)) {
|
|
@@ -13675,7 +13421,7 @@ var Stringmap = class {
|
|
|
13675
13421
|
* register a new trigger
|
|
13676
13422
|
*/
|
|
13677
13423
|
registerUntilTrue(functionArg, callbackArg) {
|
|
13678
|
-
const trueDeferred =
|
|
13424
|
+
const trueDeferred = dist_ts_exports2.defer();
|
|
13679
13425
|
this._triggerUntilTrueFunctionArray.push(() => {
|
|
13680
13426
|
const result = functionArg(this.getStringArray());
|
|
13681
13427
|
if (result === true) {
|
|
@@ -13724,7 +13470,7 @@ var TimedAggregtor = class {
|
|
|
13724
13470
|
return;
|
|
13725
13471
|
}
|
|
13726
13472
|
const addAggregationTimer = /* @__PURE__ */ __name(() => {
|
|
13727
|
-
this.aggregationTimer = new
|
|
13473
|
+
this.aggregationTimer = new dist_ts_exports7.Timer(this.options.aggregationIntervalInMillis);
|
|
13728
13474
|
this.aggregationTimer.completed.then(() => {
|
|
13729
13475
|
if (this.isStopped) {
|
|
13730
13476
|
this.aggregationTimer = null;
|
|
@@ -13910,13 +13656,13 @@ var Tree = class {
|
|
|
13910
13656
|
};
|
|
13911
13657
|
|
|
13912
13658
|
// node_modules/.pnpm/@push.rocks+smartenv@6.0.0/node_modules/@push.rocks/smartenv/dist_ts/index.js
|
|
13913
|
-
var
|
|
13914
|
-
__export(
|
|
13915
|
-
Smartenv: () =>
|
|
13659
|
+
var dist_ts_exports8 = {};
|
|
13660
|
+
__export(dist_ts_exports8, {
|
|
13661
|
+
Smartenv: () => Smartenv
|
|
13916
13662
|
});
|
|
13917
13663
|
|
|
13918
13664
|
// node_modules/.pnpm/@push.rocks+smartenv@6.0.0/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
|
|
13919
|
-
var
|
|
13665
|
+
var Smartenv = class {
|
|
13920
13666
|
static {
|
|
13921
13667
|
__name(this, "Smartenv");
|
|
13922
13668
|
}
|
|
@@ -13955,7 +13701,7 @@ var Smartenv2 = class {
|
|
|
13955
13701
|
} else {
|
|
13956
13702
|
this.loadedScripts.push(urlArg);
|
|
13957
13703
|
}
|
|
13958
|
-
const done =
|
|
13704
|
+
const done = dist_ts_exports2.defer();
|
|
13959
13705
|
if (globalThis.importScripts) {
|
|
13960
13706
|
globalThis.importScripts(urlArg);
|
|
13961
13707
|
done.resolve();
|
|
@@ -14111,8 +13857,8 @@ var Smartenv2 = class {
|
|
|
14111
13857
|
};
|
|
14112
13858
|
|
|
14113
13859
|
// node_modules/.pnpm/@push.rocks+smartjson@6.0.1/node_modules/@push.rocks/smartjson/dist_ts/index.js
|
|
14114
|
-
var
|
|
14115
|
-
__export(
|
|
13860
|
+
var dist_ts_exports10 = {};
|
|
13861
|
+
__export(dist_ts_exports10, {
|
|
14116
13862
|
Smartjson: () => Smartjson,
|
|
14117
13863
|
deepEqualJsonLStrings: () => deepEqualJsonLStrings,
|
|
14118
13864
|
deepEqualObjects: () => deepEqualObjects,
|
|
@@ -14128,8 +13874,8 @@ __export(dist_ts_exports12, {
|
|
|
14128
13874
|
});
|
|
14129
13875
|
|
|
14130
13876
|
// node_modules/.pnpm/@push.rocks+smartstring@4.1.0/node_modules/@push.rocks/smartstring/dist_ts/index.js
|
|
14131
|
-
var
|
|
14132
|
-
__export(
|
|
13877
|
+
var dist_ts_exports9 = {};
|
|
13878
|
+
__export(dist_ts_exports9, {
|
|
14133
13879
|
Base64: () => Base64,
|
|
14134
13880
|
Domain: () => Domain,
|
|
14135
13881
|
GitRepo: () => GitRepo,
|
|
@@ -14149,7 +13895,7 @@ __export(smartstring_create_exports, {
|
|
|
14149
13895
|
});
|
|
14150
13896
|
|
|
14151
13897
|
// node_modules/.pnpm/@push.rocks+smartstring@4.1.0/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
|
|
14152
|
-
var isounique = __toESM(
|
|
13898
|
+
var isounique = __toESM(require_dist_ts(), 1);
|
|
14153
13899
|
|
|
14154
13900
|
// node_modules/.pnpm/@push.rocks+smartstring@4.1.0/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
|
|
14155
13901
|
var getRandomInt = /* @__PURE__ */ __name((min3, max3) => {
|
|
@@ -14781,10 +14527,10 @@ var stringifyPretty = /* @__PURE__ */ __name((objectArg) => {
|
|
|
14781
14527
|
}, "stringifyPretty");
|
|
14782
14528
|
var stringifyBase64 = /* @__PURE__ */ __name((...args) => {
|
|
14783
14529
|
const stringifiedResult = stringify2(...args);
|
|
14784
|
-
return
|
|
14530
|
+
return dist_ts_exports9.base64.encodeUri(stringifiedResult);
|
|
14785
14531
|
}, "stringifyBase64");
|
|
14786
14532
|
var parseBase64 = /* @__PURE__ */ __name((base64JsonStringArg) => {
|
|
14787
|
-
const base642 =
|
|
14533
|
+
const base642 = dist_ts_exports9.base64;
|
|
14788
14534
|
const decodeFn = base642.decodeUri || base642.decode;
|
|
14789
14535
|
const simpleStringified = decodeFn(base64JsonStringArg);
|
|
14790
14536
|
return parse3(simpleStringified);
|
|
@@ -14880,8 +14626,8 @@ var deepEqualJsonLStrings = /* @__PURE__ */ __name((jsonLString1, jsonLString2)
|
|
|
14880
14626
|
}, "deepEqualJsonLStrings");
|
|
14881
14627
|
|
|
14882
14628
|
// node_modules/.pnpm/@push.rocks+smartlog@3.2.2/node_modules/@push.rocks/smartlog/dist_ts/index.js
|
|
14883
|
-
var
|
|
14884
|
-
__export(
|
|
14629
|
+
var dist_ts_exports12 = {};
|
|
14630
|
+
__export(dist_ts_exports12, {
|
|
14885
14631
|
ConsoleLog: () => ConsoleLog,
|
|
14886
14632
|
LogGroup: () => LogGroup,
|
|
14887
14633
|
Smartlog: () => Smartlog
|
|
@@ -14894,8 +14640,8 @@ __export(dist_ts_interfaces_exports, {
|
|
|
14894
14640
|
});
|
|
14895
14641
|
|
|
14896
14642
|
// node_modules/.pnpm/@tsclass+tsclass@9.5.1/node_modules/@tsclass/tsclass/dist_ts/index.js
|
|
14897
|
-
var
|
|
14898
|
-
__export(
|
|
14643
|
+
var dist_ts_exports11 = {};
|
|
14644
|
+
__export(dist_ts_exports11, {
|
|
14899
14645
|
business: () => business_exports,
|
|
14900
14646
|
code: () => code_exports,
|
|
14901
14647
|
container: () => container_exports,
|
|
@@ -14960,7 +14706,7 @@ var website_exports = {};
|
|
|
14960
14706
|
var smartlog_interfaces_requests_exports = {};
|
|
14961
14707
|
|
|
14962
14708
|
// node_modules/.pnpm/@push.rocks+smartlog@3.2.2/node_modules/@push.rocks/smartlog/dist_ts/smartlog.plugins.js
|
|
14963
|
-
var isounique2 = __toESM(
|
|
14709
|
+
var isounique2 = __toESM(require_dist_ts(), 1);
|
|
14964
14710
|
|
|
14965
14711
|
// node_modules/.pnpm/@push.rocks+smartlog@3.2.2/node_modules/@push.rocks/smartlog/dist_ts/smartlog.classes.consolelog.js
|
|
14966
14712
|
var ConsoleLog = class {
|
|
@@ -15135,10 +14881,10 @@ var LogGroup = class {
|
|
|
15135
14881
|
};
|
|
15136
14882
|
|
|
15137
14883
|
// ts/smartsocket.plugins.ts
|
|
15138
|
-
var isounique3 = __toESM(
|
|
14884
|
+
var isounique3 = __toESM(require_dist_ts(), 1);
|
|
15139
14885
|
|
|
15140
14886
|
// ts/smartsocket.logging.ts
|
|
15141
|
-
var logger = new
|
|
14887
|
+
var logger = new dist_ts_exports12.ConsoleLog();
|
|
15142
14888
|
|
|
15143
14889
|
// ts/smartsocket.classes.socketrequest.ts
|
|
15144
14890
|
var SocketRequest = class {
|
|
@@ -15157,7 +14903,7 @@ var SocketRequest = class {
|
|
|
15157
14903
|
shortid;
|
|
15158
14904
|
originSocketConnection;
|
|
15159
14905
|
funcCallData;
|
|
15160
|
-
done =
|
|
14906
|
+
done = dist_ts_exports2.defer();
|
|
15161
14907
|
smartsocketRef;
|
|
15162
14908
|
constructor(smartsocketRefArg, optionsArg) {
|
|
15163
14909
|
this.smartsocketRef = smartsocketRefArg;
|
|
@@ -15241,10 +14987,10 @@ var SmartsocketClient2 = class {
|
|
|
15241
14987
|
currentRetryCount = 0;
|
|
15242
14988
|
currentBackoffDelay;
|
|
15243
14989
|
// status handling
|
|
15244
|
-
eventSubject = new
|
|
14990
|
+
eventSubject = new dist_ts_exports5.rxjs.Subject();
|
|
15245
14991
|
eventStatus = "new";
|
|
15246
|
-
socketFunctions = new
|
|
15247
|
-
socketRequests = new
|
|
14992
|
+
socketFunctions = new dist_ts_exports6.ObjectMap();
|
|
14993
|
+
socketRequests = new dist_ts_exports6.ObjectMap();
|
|
15248
14994
|
// tagStore
|
|
15249
14995
|
tagStore = {};
|
|
15250
14996
|
tagStoreSubscription;
|
|
@@ -15303,8 +15049,8 @@ var SmartsocketClient2 = class {
|
|
|
15303
15049
|
this.currentBackoffDelay = this.initialBackoffDelay;
|
|
15304
15050
|
}
|
|
15305
15051
|
this.isReconnecting = false;
|
|
15306
|
-
const done =
|
|
15307
|
-
const smartenvInstance = new
|
|
15052
|
+
const done = dist_ts_exports2.defer();
|
|
15053
|
+
const smartenvInstance = new dist_ts_exports8.Smartenv();
|
|
15308
15054
|
logger.log("info", "trying to connect...");
|
|
15309
15055
|
const protocol = this.serverUrl.startsWith("https") ? "wss" : "ws";
|
|
15310
15056
|
const host = this.serverUrl.replace(/^https?:\/\//, "");
|
|
@@ -15328,7 +15074,7 @@ var SmartsocketClient2 = class {
|
|
|
15328
15074
|
const socketConnection = this.socketConnection;
|
|
15329
15075
|
this.connectionAttemptId++;
|
|
15330
15076
|
const currentAttemptId = this.connectionAttemptId;
|
|
15331
|
-
const timer2 = new
|
|
15077
|
+
const timer2 = new dist_ts_exports7.Timer(5e3);
|
|
15332
15078
|
timer2.start();
|
|
15333
15079
|
timer2.completed.then(() => {
|
|
15334
15080
|
if (currentAttemptId === this.connectionAttemptId && this.eventStatus !== "connected") {
|
|
@@ -15449,7 +15195,7 @@ var SmartsocketClient2 = class {
|
|
|
15449
15195
|
const delay2 = Math.min(this.currentBackoffDelay + jitter, this.maxBackoffDelay);
|
|
15450
15196
|
logger.log("info", `Reconnect attempt ${this.currentRetryCount}/${this.maxRetries} in ${Math.round(delay2)}ms`);
|
|
15451
15197
|
this.currentBackoffDelay = Math.min(this.currentBackoffDelay * 2, this.maxBackoffDelay);
|
|
15452
|
-
await
|
|
15198
|
+
await dist_ts_exports3.delayFor(delay2);
|
|
15453
15199
|
this.disconnectRunning = false;
|
|
15454
15200
|
this.isReconnecting = true;
|
|
15455
15201
|
await this.connect();
|
|
@@ -15545,7 +15291,7 @@ var SocketFunction = class {
|
|
|
15545
15291
|
};
|
|
15546
15292
|
|
|
15547
15293
|
// ts/smartsocket.classes.socketconnection.ts
|
|
15548
|
-
var allSocketConnections = new
|
|
15294
|
+
var allSocketConnections = new dist_ts_exports6.ObjectMap();
|
|
15549
15295
|
var SocketConnection2 = class {
|
|
15550
15296
|
static {
|
|
15551
15297
|
__name(this, "SocketConnection");
|
|
@@ -15555,11 +15301,11 @@ var SocketConnection2 = class {
|
|
|
15555
15301
|
authenticated = false;
|
|
15556
15302
|
smartsocketRef;
|
|
15557
15303
|
socket;
|
|
15558
|
-
eventSubject = new
|
|
15304
|
+
eventSubject = new dist_ts_exports5.rxjs.Subject();
|
|
15559
15305
|
eventStatus = "new";
|
|
15560
15306
|
tagStore = {};
|
|
15561
|
-
tagStoreObservable = new
|
|
15562
|
-
remoteTagStoreObservable = new
|
|
15307
|
+
tagStoreObservable = new dist_ts_exports5.rxjs.Subject();
|
|
15308
|
+
remoteTagStoreObservable = new dist_ts_exports5.rxjs.Subject();
|
|
15563
15309
|
constructor(optionsArg) {
|
|
15564
15310
|
this.alias = optionsArg.alias;
|
|
15565
15311
|
this.authenticated = optionsArg.authenticated;
|
|
@@ -15643,7 +15389,7 @@ var SocketConnection2 = class {
|
|
|
15643
15389
|
}
|
|
15644
15390
|
handleTagUpdate(messageData) {
|
|
15645
15391
|
const tagStoreArg = messageData.payload.tags;
|
|
15646
|
-
if (!
|
|
15392
|
+
if (!dist_ts_exports10.deepEqualObjects(this.tagStore, tagStoreArg)) {
|
|
15647
15393
|
this.tagStore = tagStoreArg;
|
|
15648
15394
|
this.sendMessage({
|
|
15649
15395
|
type: "tagUpdate",
|
|
@@ -15657,15 +15403,15 @@ var SocketConnection2 = class {
|
|
|
15657
15403
|
* adds a tag to a connection
|
|
15658
15404
|
*/
|
|
15659
15405
|
async addTag(tagArg) {
|
|
15660
|
-
const done =
|
|
15406
|
+
const done = dist_ts_exports2.defer();
|
|
15661
15407
|
this.tagStore[tagArg.id] = tagArg;
|
|
15662
15408
|
this.tagStoreObservable.next(this.tagStore);
|
|
15663
15409
|
const remoteSubscription = this.remoteTagStoreObservable.subscribe((remoteTagStore) => {
|
|
15664
15410
|
if (!remoteTagStore[tagArg.id]) {
|
|
15665
15411
|
return;
|
|
15666
15412
|
}
|
|
15667
|
-
const localTagString =
|
|
15668
|
-
const remoteTagString =
|
|
15413
|
+
const localTagString = dist_ts_exports10.stringify(tagArg);
|
|
15414
|
+
const remoteTagString = dist_ts_exports10.stringify(remoteTagStore[tagArg.id]);
|
|
15669
15415
|
if (localTagString === remoteTagString) {
|
|
15670
15416
|
remoteSubscription.unsubscribe();
|
|
15671
15417
|
done.resolve();
|
|
@@ -15699,7 +15445,7 @@ var SocketConnection2 = class {
|
|
|
15699
15445
|
* authenticate the socket (server side)
|
|
15700
15446
|
*/
|
|
15701
15447
|
authenticate() {
|
|
15702
|
-
const done =
|
|
15448
|
+
const done = dist_ts_exports2.defer();
|
|
15703
15449
|
const messageHandler = /* @__PURE__ */ __name((event) => {
|
|
15704
15450
|
try {
|
|
15705
15451
|
const data = typeof event.data === "string" ? event.data : event.data.toString();
|
|
@@ -15745,7 +15491,7 @@ var SocketConnection2 = class {
|
|
|
15745
15491
|
* listen to function requests
|
|
15746
15492
|
*/
|
|
15747
15493
|
listenToFunctionRequests() {
|
|
15748
|
-
const done =
|
|
15494
|
+
const done = dist_ts_exports2.defer();
|
|
15749
15495
|
if (this.authenticated) {
|
|
15750
15496
|
const messageHandler = /* @__PURE__ */ __name((event) => {
|
|
15751
15497
|
try {
|
|
@@ -15808,7 +15554,7 @@ var SocketServer = class {
|
|
|
15808
15554
|
if (!this.smartsocket.options.port) {
|
|
15809
15555
|
return;
|
|
15810
15556
|
}
|
|
15811
|
-
const done =
|
|
15557
|
+
const done = dist_ts_exports2.defer();
|
|
15812
15558
|
const httpModule = await this.smartsocket.smartenv.getSafeNodeModule("http");
|
|
15813
15559
|
const wsModule = await this.smartsocket.smartenv.getSafeNodeModule("ws");
|
|
15814
15560
|
const httpServer = httpModule.createServer();
|
|
@@ -15832,7 +15578,7 @@ var SocketServer = class {
|
|
|
15832
15578
|
* closes the server
|
|
15833
15579
|
*/
|
|
15834
15580
|
async stop() {
|
|
15835
|
-
const done =
|
|
15581
|
+
const done = dist_ts_exports2.defer();
|
|
15836
15582
|
let resolved = false;
|
|
15837
15583
|
if (this.wsServer) {
|
|
15838
15584
|
this.wsServer.clients.forEach((client) => {
|
|
@@ -15963,12 +15709,12 @@ var Smartsocket5 = class {
|
|
|
15963
15709
|
* a unique id to detect server restarts
|
|
15964
15710
|
*/
|
|
15965
15711
|
alias;
|
|
15966
|
-
smartenv = new
|
|
15712
|
+
smartenv = new dist_ts_exports8.Smartenv();
|
|
15967
15713
|
options;
|
|
15968
|
-
socketConnections = new
|
|
15969
|
-
socketFunctions = new
|
|
15970
|
-
socketRequests = new
|
|
15971
|
-
eventSubject = new
|
|
15714
|
+
socketConnections = new dist_ts_exports6.ObjectMap();
|
|
15715
|
+
socketFunctions = new dist_ts_exports6.ObjectMap();
|
|
15716
|
+
socketRequests = new dist_ts_exports6.ObjectMap();
|
|
15717
|
+
eventSubject = new dist_ts_exports5.rxjs.Subject();
|
|
15972
15718
|
socketServer = new SocketServer(this);
|
|
15973
15719
|
constructor(optionsArg) {
|
|
15974
15720
|
this.options = optionsArg;
|
|
@@ -16023,7 +15769,7 @@ var Smartsocket5 = class {
|
|
|
16023
15769
|
* stops smartsocket
|
|
16024
15770
|
*/
|
|
16025
15771
|
async stop() {
|
|
16026
|
-
await
|
|
15772
|
+
await dist_ts_exports3.delayFor(1e3);
|
|
16027
15773
|
this.socketConnections.forEach((socketObjectArg) => {
|
|
16028
15774
|
if (socketObjectArg) {
|
|
16029
15775
|
logger.log(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartsocket',
|
|
6
|
-
version: '4.0.
|
|
6
|
+
version: '4.0.2',
|
|
7
7
|
description: 'Provides easy and secure websocket communication mechanisms, including server and client implementation, function call routing, connection management, and tagging.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHFLQUFxSztDQUNuTCxDQUFBIn0=
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
|
|
2
2
|
export { typedrequestInterfaces };
|
|
3
|
-
import * as isohash from '@push.rocks/isohash';
|
|
4
3
|
import * as isounique from '@push.rocks/isounique';
|
|
5
4
|
import * as lik from '@push.rocks/lik';
|
|
6
5
|
import * as smartenv from '@push.rocks/smartenv';
|
|
@@ -10,4 +9,4 @@ import * as smartdelay from '@push.rocks/smartdelay';
|
|
|
10
9
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
11
10
|
import * as smarttime from '@push.rocks/smarttime';
|
|
12
11
|
import * as smartrx from '@push.rocks/smartrx';
|
|
13
|
-
export {
|
|
12
|
+
export { isounique, lik, smartenv, smartjson, smartlog, smartdelay, smartpromise, smarttime, smartrx, };
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
|
|
3
3
|
export { typedrequestInterfaces };
|
|
4
4
|
// pushrocks scope
|
|
5
|
-
import * as isohash from '@push.rocks/isohash';
|
|
6
5
|
import * as isounique from '@push.rocks/isounique';
|
|
7
6
|
import * as lik from '@push.rocks/lik';
|
|
8
7
|
import * as smartenv from '@push.rocks/smartenv';
|
|
@@ -12,5 +11,5 @@ import * as smartdelay from '@push.rocks/smartdelay';
|
|
|
12
11
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
13
12
|
import * as smarttime from '@push.rocks/smarttime';
|
|
14
13
|
import * as smartrx from '@push.rocks/smartrx';
|
|
15
|
-
export {
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
export { isounique, lik, smartenv, smartjson, smartlog, smartdelay, smartpromise, smarttime, smartrx, };
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0c29ja2V0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0JBQWtCO0FBQ2xCLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxxQ0FBcUMsQ0FBQztBQUU5RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsQ0FBQztBQUVsQyxrQkFBa0I7QUFDbEIsT0FBTyxLQUFLLFNBQVMsTUFBTSx1QkFBdUIsQ0FBQztBQUNuRCxPQUFPLEtBQUssR0FBRyxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sS0FBSyxRQUFRLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxLQUFLLFNBQVMsTUFBTSx1QkFBdUIsQ0FBQztBQUNuRCxPQUFPLEtBQUssUUFBUSxNQUFNLHNCQUFzQixDQUFDO0FBQ2pELE9BQU8sS0FBSyxVQUFVLE1BQU0sd0JBQXdCLENBQUM7QUFDckQsT0FBTyxLQUFLLFlBQVksTUFBTSwwQkFBMEIsQ0FBQztBQUN6RCxPQUFPLEtBQUssU0FBUyxNQUFNLHVCQUF1QixDQUFDO0FBQ25ELE9BQU8sS0FBSyxPQUFPLE1BQU0scUJBQXFCLENBQUM7QUFFL0MsT0FBTyxFQUNMLFNBQVMsRUFDVCxHQUFHLEVBQ0gsUUFBUSxFQUNSLFNBQVMsRUFDVCxRQUFRLEVBQ1IsVUFBVSxFQUNWLFlBQVksRUFDWixTQUFTLEVBQ1QsT0FBTyxHQUNSLENBQUMifQ==
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartsocket",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Provides easy and secure websocket communication mechanisms, including server and client implementation, function call routing, connection management, and tagging.",
|
|
5
5
|
"main": "dist_ts/index.js",
|
|
6
6
|
"typings": "dist_ts/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "(tstest test/ --verbose)",
|
|
10
|
-
"build": "tsbuild --web && tsbundle",
|
|
11
|
-
"buildDocs": "tsdoc"
|
|
12
|
-
},
|
|
13
8
|
"repository": {
|
|
14
9
|
"type": "git",
|
|
15
10
|
"url": "https://code.foss.global/push.rocks/smartsocket.git"
|
|
@@ -22,7 +17,6 @@
|
|
|
22
17
|
"homepage": "https://code.foss.global/push.rocks/smartsocket",
|
|
23
18
|
"dependencies": {
|
|
24
19
|
"@api.global/typedrequest-interfaces": "^3.0.19",
|
|
25
|
-
"@push.rocks/isohash": "^2.0.1",
|
|
26
20
|
"@push.rocks/isounique": "^1.0.5",
|
|
27
21
|
"@push.rocks/lik": "^6.4.1",
|
|
28
22
|
"@push.rocks/smartdelay": "^3.0.5",
|
|
@@ -74,5 +68,9 @@
|
|
|
74
68
|
"secure",
|
|
75
69
|
"rpc"
|
|
76
70
|
],
|
|
77
|
-
"
|
|
78
|
-
|
|
71
|
+
"scripts": {
|
|
72
|
+
"test": "(tstest test/ --verbose)",
|
|
73
|
+
"build": "tsbuild --web && tsbundle",
|
|
74
|
+
"buildDocs": "tsdoc"
|
|
75
|
+
}
|
|
76
|
+
}
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartsocket',
|
|
6
|
-
version: '4.0.
|
|
6
|
+
version: '4.0.2',
|
|
7
7
|
description: 'Provides easy and secure websocket communication mechanisms, including server and client implementation, function call routing, connection management, and tagging.'
|
|
8
8
|
}
|
|
@@ -4,7 +4,6 @@ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
|
|
|
4
4
|
export { typedrequestInterfaces };
|
|
5
5
|
|
|
6
6
|
// pushrocks scope
|
|
7
|
-
import * as isohash from '@push.rocks/isohash';
|
|
8
7
|
import * as isounique from '@push.rocks/isounique';
|
|
9
8
|
import * as lik from '@push.rocks/lik';
|
|
10
9
|
import * as smartenv from '@push.rocks/smartenv';
|
|
@@ -16,7 +15,6 @@ import * as smarttime from '@push.rocks/smarttime';
|
|
|
16
15
|
import * as smartrx from '@push.rocks/smartrx';
|
|
17
16
|
|
|
18
17
|
export {
|
|
19
|
-
isohash,
|
|
20
18
|
isounique,
|
|
21
19
|
lik,
|
|
22
20
|
smartenv,
|