@push.rocks/smartsocket 2.0.21 → 2.0.23
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 +130 -215
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/smartsocket.plugins.d.ts +1 -1
- package/dist_ts/smartsocket.plugins.js +2 -2
- package/dist_ts/smartsocket.pluginstyped.d.ts +1 -1
- package/package.json +11 -11
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/smartsocket.plugins.ts +1 -1
- package/ts/smartsocket.pluginstyped.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -1264,23 +1264,6 @@ var require_SymbolTree = __commonJS({
|
|
|
1264
1264
|
}
|
|
1265
1265
|
});
|
|
1266
1266
|
|
|
1267
|
-
// node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js
|
|
1268
|
-
var require_dist_ts3 = __commonJS({
|
|
1269
|
-
"node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js"(exports) {
|
|
1270
|
-
"use strict";
|
|
1271
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1272
|
-
exports.uni = void 0;
|
|
1273
|
-
var uni2 = (prefix = "uni") => {
|
|
1274
|
-
return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
|
|
1275
|
-
const r = Math.random() * 16 | 0;
|
|
1276
|
-
const v = c === "x" ? r : r & 3 | 8;
|
|
1277
|
-
return v.toString(16);
|
|
1278
|
-
})}`;
|
|
1279
|
-
};
|
|
1280
|
-
exports.uni = uni2;
|
|
1281
|
-
}
|
|
1282
|
-
});
|
|
1283
|
-
|
|
1284
1267
|
// node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
|
|
1285
1268
|
var require_base64_js = __commonJS({
|
|
1286
1269
|
"node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports) {
|
|
@@ -5258,9 +5241,9 @@ var require_lib = __commonJS({
|
|
|
5258
5241
|
}
|
|
5259
5242
|
});
|
|
5260
5243
|
|
|
5261
|
-
// node_modules/.pnpm/url@0.11.
|
|
5244
|
+
// node_modules/.pnpm/url@0.11.2/node_modules/url/url.js
|
|
5262
5245
|
var require_url = __commonJS({
|
|
5263
|
-
"node_modules/.pnpm/url@0.11.
|
|
5246
|
+
"node_modules/.pnpm/url@0.11.2/node_modules/url/url.js"(exports) {
|
|
5264
5247
|
"use strict";
|
|
5265
5248
|
var punycode = require_punycode();
|
|
5266
5249
|
function Url() {
|
|
@@ -5542,7 +5525,11 @@ var require_url = __commonJS({
|
|
|
5542
5525
|
}
|
|
5543
5526
|
}
|
|
5544
5527
|
if (this.query && typeof this.query === "object" && Object.keys(this.query).length) {
|
|
5545
|
-
query = querystring.stringify(this.query
|
|
5528
|
+
query = querystring.stringify(this.query, {
|
|
5529
|
+
arrayFormat: "repeat",
|
|
5530
|
+
encodeValuesOnly: true,
|
|
5531
|
+
addQueryPrefix: false
|
|
5532
|
+
});
|
|
5546
5533
|
}
|
|
5547
5534
|
var search = this.search || query && "?" + query || "";
|
|
5548
5535
|
if (protocol && protocol.substr(-1) !== ":") {
|
|
@@ -6834,130 +6821,10 @@ var require_buffer_json = __commonJS({
|
|
|
6834
6821
|
// node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.plugins.js
|
|
6835
6822
|
var smartpromise = __toESM(require_dist_ts(), 1);
|
|
6836
6823
|
|
|
6837
|
-
// node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.classes.smartenv.js
|
|
6838
|
-
var Smartenv = class {
|
|
6839
|
-
constructor() {
|
|
6840
|
-
this.loadedScripts = [];
|
|
6841
|
-
}
|
|
6842
|
-
async getEnvAwareModule(optionsArg) {
|
|
6843
|
-
if (this.isNode) {
|
|
6844
|
-
const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
|
|
6845
|
-
return moduleResult;
|
|
6846
|
-
} else if (this.isBrowser) {
|
|
6847
|
-
const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
|
|
6848
|
-
return moduleResult;
|
|
6849
|
-
} else {
|
|
6850
|
-
console.error("platform for loading not supported by smartenv");
|
|
6851
|
-
}
|
|
6852
|
-
}
|
|
6853
|
-
async getSafeNodeModule(moduleNameArg) {
|
|
6854
|
-
if (!this.isNode) {
|
|
6855
|
-
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
|
|
6856
|
-
return;
|
|
6857
|
-
}
|
|
6858
|
-
return new Function(`return import('${moduleNameArg}')`)();
|
|
6859
|
-
}
|
|
6860
|
-
async getSafeWebModule(urlArg, getFunctionArg) {
|
|
6861
|
-
if (!this.isBrowser) {
|
|
6862
|
-
console.error("You tried to load a web module in a wrong context");
|
|
6863
|
-
return;
|
|
6864
|
-
}
|
|
6865
|
-
if (this.loadedScripts.includes(urlArg)) {
|
|
6866
|
-
return getFunctionArg();
|
|
6867
|
-
} else {
|
|
6868
|
-
this.loadedScripts.push(urlArg);
|
|
6869
|
-
}
|
|
6870
|
-
const done = smartpromise.defer();
|
|
6871
|
-
if (globalThis.importScripts) {
|
|
6872
|
-
globalThis.importScripts(urlArg);
|
|
6873
|
-
done.resolve();
|
|
6874
|
-
} else {
|
|
6875
|
-
const script = document.createElement("script");
|
|
6876
|
-
script.onload = () => {
|
|
6877
|
-
done.resolve();
|
|
6878
|
-
};
|
|
6879
|
-
script.src = urlArg;
|
|
6880
|
-
document.head.appendChild(script);
|
|
6881
|
-
}
|
|
6882
|
-
await done.promise;
|
|
6883
|
-
return getFunctionArg();
|
|
6884
|
-
}
|
|
6885
|
-
get runtimeEnv() {
|
|
6886
|
-
if (typeof process !== "undefined") {
|
|
6887
|
-
return "node";
|
|
6888
|
-
} else {
|
|
6889
|
-
return "browser";
|
|
6890
|
-
}
|
|
6891
|
-
}
|
|
6892
|
-
get isBrowser() {
|
|
6893
|
-
return !this.isNode;
|
|
6894
|
-
}
|
|
6895
|
-
get userAgent() {
|
|
6896
|
-
if (this.isBrowser) {
|
|
6897
|
-
return navigator.userAgent;
|
|
6898
|
-
} else {
|
|
6899
|
-
return "undefined";
|
|
6900
|
-
}
|
|
6901
|
-
}
|
|
6902
|
-
get isNode() {
|
|
6903
|
-
return this.runtimeEnv === "node";
|
|
6904
|
-
}
|
|
6905
|
-
get nodeVersion() {
|
|
6906
|
-
return process.version;
|
|
6907
|
-
}
|
|
6908
|
-
get isCI() {
|
|
6909
|
-
if (this.isNode) {
|
|
6910
|
-
if (process.env.CI) {
|
|
6911
|
-
return true;
|
|
6912
|
-
} else {
|
|
6913
|
-
return false;
|
|
6914
|
-
}
|
|
6915
|
-
} else {
|
|
6916
|
-
return false;
|
|
6917
|
-
}
|
|
6918
|
-
}
|
|
6919
|
-
async isMacAsync() {
|
|
6920
|
-
if (this.isNode) {
|
|
6921
|
-
const os = await this.getSafeNodeModule("os");
|
|
6922
|
-
return os.platform() === "darwin";
|
|
6923
|
-
} else {
|
|
6924
|
-
return false;
|
|
6925
|
-
}
|
|
6926
|
-
}
|
|
6927
|
-
async isWindowsAsync() {
|
|
6928
|
-
if (this.isNode) {
|
|
6929
|
-
const os = await this.getSafeNodeModule("os");
|
|
6930
|
-
return os.platform() === "win32";
|
|
6931
|
-
} else {
|
|
6932
|
-
return false;
|
|
6933
|
-
}
|
|
6934
|
-
}
|
|
6935
|
-
async isLinuxAsync() {
|
|
6936
|
-
if (this.isNode) {
|
|
6937
|
-
const os = await this.getSafeNodeModule("os");
|
|
6938
|
-
return os.platform() === "linux";
|
|
6939
|
-
} else {
|
|
6940
|
-
return false;
|
|
6941
|
-
}
|
|
6942
|
-
}
|
|
6943
|
-
/**
|
|
6944
|
-
* prints the environment to console
|
|
6945
|
-
*/
|
|
6946
|
-
async printEnv() {
|
|
6947
|
-
if (this.isNode) {
|
|
6948
|
-
console.log("running on NODE");
|
|
6949
|
-
console.log("node version is " + this.nodeVersion);
|
|
6950
|
-
} else {
|
|
6951
|
-
console.log("running on BROWSER");
|
|
6952
|
-
console.log("browser is " + this.userAgent);
|
|
6953
|
-
}
|
|
6954
|
-
}
|
|
6955
|
-
};
|
|
6956
|
-
|
|
6957
6824
|
// ts/smartsocket.plugins.ts
|
|
6958
6825
|
var isounique3 = __toESM(require_dist_ts2(), 1);
|
|
6959
6826
|
|
|
6960
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
6827
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/index.js
|
|
6961
6828
|
var dist_ts_exports6 = {};
|
|
6962
6829
|
__export(dist_ts_exports6, {
|
|
6963
6830
|
AsyncExecutionStack: () => AsyncExecutionStack,
|
|
@@ -9478,7 +9345,7 @@ var ObservableIntake = class {
|
|
|
9478
9345
|
}
|
|
9479
9346
|
};
|
|
9480
9347
|
|
|
9481
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
9348
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/index.js
|
|
9482
9349
|
var dist_ts_exports7 = {};
|
|
9483
9350
|
__export(dist_ts_exports7, {
|
|
9484
9351
|
CronJob: () => CronJob,
|
|
@@ -10108,7 +9975,7 @@ Cron.prototype._next = function(prev) {
|
|
|
10108
9975
|
Cron.Cron = Cron;
|
|
10109
9976
|
Cron.scheduledJobs = scheduledJobs;
|
|
10110
9977
|
|
|
10111
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
9978
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
|
|
10112
9979
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
10113
9980
|
var import_isToday = __toESM(require_isToday(), 1);
|
|
10114
9981
|
|
|
@@ -10214,10 +10081,10 @@ function prettyMilliseconds(milliseconds, options = {}) {
|
|
|
10214
10081
|
return options.colonNotation ? result.join("") : result.join(" ");
|
|
10215
10082
|
}
|
|
10216
10083
|
|
|
10217
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10084
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
|
|
10218
10085
|
import_dayjs.default.extend(import_isToday.default);
|
|
10219
10086
|
|
|
10220
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10087
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js
|
|
10221
10088
|
var CronJob = class {
|
|
10222
10089
|
constructor(cronManager, cronExpressionArg, jobFunction) {
|
|
10223
10090
|
this.status = "initial";
|
|
@@ -10259,7 +10126,7 @@ var CronJob = class {
|
|
|
10259
10126
|
}
|
|
10260
10127
|
};
|
|
10261
10128
|
|
|
10262
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10129
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js
|
|
10263
10130
|
var units = {
|
|
10264
10131
|
years: (timesArg = 1) => {
|
|
10265
10132
|
return timesArg * 3154e7;
|
|
@@ -10278,6 +10145,9 @@ var units = {
|
|
|
10278
10145
|
},
|
|
10279
10146
|
minutes: (timesArg = 1) => {
|
|
10280
10147
|
return timesArg * 6e4;
|
|
10148
|
+
},
|
|
10149
|
+
seconds: (timesArg = 1) => {
|
|
10150
|
+
return timesArg * 1e3;
|
|
10281
10151
|
}
|
|
10282
10152
|
};
|
|
10283
10153
|
var getMilliSecondsFromUnits = (combinationArg) => {
|
|
@@ -10303,13 +10173,16 @@ var getMilliSecondsFromUnits = (combinationArg) => {
|
|
|
10303
10173
|
if (combinationArg.minutes) {
|
|
10304
10174
|
addMilliSeconds(units.minutes(combinationArg.minutes));
|
|
10305
10175
|
}
|
|
10176
|
+
if (combinationArg.seconds) {
|
|
10177
|
+
addMilliSeconds(units.seconds(combinationArg.seconds));
|
|
10178
|
+
}
|
|
10306
10179
|
return timeInMilliseconds;
|
|
10307
10180
|
};
|
|
10308
10181
|
var getMilliSecondsAsHumanReadableString = (milliSecondsArg) => {
|
|
10309
10182
|
return prettyMilliseconds(milliSecondsArg);
|
|
10310
10183
|
};
|
|
10311
10184
|
|
|
10312
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10185
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
|
|
10313
10186
|
var CronManager = class {
|
|
10314
10187
|
constructor() {
|
|
10315
10188
|
this.status = "stopped";
|
|
@@ -10375,7 +10248,7 @@ var CronManager = class {
|
|
|
10375
10248
|
}
|
|
10376
10249
|
};
|
|
10377
10250
|
|
|
10378
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10251
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
|
|
10379
10252
|
var ExtendedDate = class extends Date {
|
|
10380
10253
|
// STATIC factories
|
|
10381
10254
|
static fromMillis(milliSeconds) {
|
|
@@ -10488,7 +10361,7 @@ var ExtendedDate = class extends Date {
|
|
|
10488
10361
|
}
|
|
10489
10362
|
};
|
|
10490
10363
|
|
|
10491
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10364
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
|
|
10492
10365
|
var HrtMeasurement = class {
|
|
10493
10366
|
constructor() {
|
|
10494
10367
|
this.nanoSeconds = null;
|
|
@@ -10529,7 +10402,7 @@ var HrtMeasurement = class {
|
|
|
10529
10402
|
}
|
|
10530
10403
|
};
|
|
10531
10404
|
|
|
10532
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10405
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js
|
|
10533
10406
|
var Interval = class {
|
|
10534
10407
|
constructor(intervalMillisencondsArg) {
|
|
10535
10408
|
this.status = "initial";
|
|
@@ -10563,7 +10436,7 @@ var Interval = class {
|
|
|
10563
10436
|
}
|
|
10564
10437
|
};
|
|
10565
10438
|
|
|
10566
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10439
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js
|
|
10567
10440
|
var TimeStamp = class {
|
|
10568
10441
|
/**
|
|
10569
10442
|
* returns new TimeStamp from milliseconds
|
|
@@ -10633,7 +10506,7 @@ var TimeStamp = class {
|
|
|
10633
10506
|
}
|
|
10634
10507
|
};
|
|
10635
10508
|
|
|
10636
|
-
// node_modules/.pnpm/@push.rocks+smarttime@4.0.
|
|
10509
|
+
// node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js
|
|
10637
10510
|
var Timer = class {
|
|
10638
10511
|
get timeLeft() {
|
|
10639
10512
|
return this.timeInMilliseconds - this.pausedAt.change;
|
|
@@ -10680,13 +10553,14 @@ var Timer = class {
|
|
|
10680
10553
|
}
|
|
10681
10554
|
};
|
|
10682
10555
|
|
|
10683
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10556
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.plugins.js
|
|
10684
10557
|
var import_symbol_tree = __toESM(require_SymbolTree(), 1);
|
|
10685
10558
|
|
|
10686
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10559
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.asyncexecutionstack.js
|
|
10687
10560
|
var AsyncExecutionStack = class {
|
|
10688
10561
|
constructor() {
|
|
10689
10562
|
this.executionSlots = [];
|
|
10563
|
+
this.isProcessing = false;
|
|
10690
10564
|
}
|
|
10691
10565
|
async getExclusiveExecutionSlot(funcArg, timeoutArg) {
|
|
10692
10566
|
const executionDeferred = dist_ts_exports2.defer();
|
|
@@ -10713,45 +10587,67 @@ var AsyncExecutionStack = class {
|
|
|
10713
10587
|
return executionDeferred.promise;
|
|
10714
10588
|
}
|
|
10715
10589
|
async processExecutionSlots() {
|
|
10716
|
-
if (this.
|
|
10590
|
+
if (this.isProcessing) {
|
|
10717
10591
|
return;
|
|
10718
10592
|
}
|
|
10719
|
-
this.
|
|
10720
|
-
let nonExclusiveRunningSlots = [];
|
|
10721
|
-
const checkNonExclusiveRunningSlots = async (cleanArg = false) => {
|
|
10722
|
-
if (nonExclusiveRunningSlots.length > 100 || cleanArg) {
|
|
10723
|
-
await Promise.all(nonExclusiveRunningSlots.map((nonExclusiveRunningSlotArg) => nonExclusiveRunningSlotArg.executionDeferred.promise));
|
|
10724
|
-
nonExclusiveRunningSlots = [];
|
|
10725
|
-
}
|
|
10726
|
-
};
|
|
10593
|
+
this.isProcessing = true;
|
|
10727
10594
|
while (this.executionSlots.length > 0) {
|
|
10728
|
-
const
|
|
10729
|
-
|
|
10730
|
-
|
|
10595
|
+
const currentSlot = this.executionSlots[0];
|
|
10596
|
+
if (currentSlot.mode === "exclusive") {
|
|
10597
|
+
await this.executeExclusiveSlot(currentSlot);
|
|
10598
|
+
this.executionSlots.shift();
|
|
10599
|
+
} else {
|
|
10600
|
+
const nonExclusiveSlots = [];
|
|
10601
|
+
while (this.executionSlots.length > 0 && this.executionSlots[0].mode === "nonexclusive") {
|
|
10602
|
+
nonExclusiveSlots.push(this.executionSlots.shift());
|
|
10603
|
+
}
|
|
10604
|
+
await this.executeNonExclusiveSlots(nonExclusiveSlots);
|
|
10605
|
+
}
|
|
10606
|
+
}
|
|
10607
|
+
this.isProcessing = false;
|
|
10608
|
+
}
|
|
10609
|
+
async executeExclusiveSlot(slot) {
|
|
10610
|
+
try {
|
|
10611
|
+
if (slot.timeout) {
|
|
10612
|
+
const result = await Promise.race([
|
|
10613
|
+
slot.funcToExecute(),
|
|
10614
|
+
dist_ts_exports3.delayFor(slot.timeout).then(() => {
|
|
10615
|
+
throw new Error("Timeout reached");
|
|
10616
|
+
})
|
|
10617
|
+
]);
|
|
10618
|
+
slot.executionDeferred.resolve(result);
|
|
10619
|
+
} else {
|
|
10620
|
+
const result = await slot.funcToExecute();
|
|
10621
|
+
slot.executionDeferred.resolve(result);
|
|
10622
|
+
}
|
|
10623
|
+
} catch (error) {
|
|
10624
|
+
slot.executionDeferred.reject(error);
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
async executeNonExclusiveSlots(slots) {
|
|
10628
|
+
const promises = slots.map(async (slot) => {
|
|
10629
|
+
try {
|
|
10630
|
+
if (slot.timeout) {
|
|
10731
10631
|
const result = await Promise.race([
|
|
10732
|
-
|
|
10733
|
-
dist_ts_exports3.delayFor(
|
|
10632
|
+
slot.funcToExecute(),
|
|
10633
|
+
dist_ts_exports3.delayFor(slot.timeout).then(() => {
|
|
10634
|
+
throw new Error("Timeout reached");
|
|
10635
|
+
})
|
|
10734
10636
|
]);
|
|
10735
|
-
|
|
10637
|
+
slot.executionDeferred.resolve(result);
|
|
10736
10638
|
} else {
|
|
10737
|
-
|
|
10639
|
+
const result = await slot.funcToExecute();
|
|
10640
|
+
slot.executionDeferred.resolve(result);
|
|
10738
10641
|
}
|
|
10739
|
-
}
|
|
10740
|
-
|
|
10741
|
-
await checkNonExclusiveRunningSlots(true);
|
|
10742
|
-
await runNextExecution();
|
|
10743
|
-
} else {
|
|
10744
|
-
nonExclusiveRunningSlots.push(nextExecutionSlot);
|
|
10745
|
-
await checkNonExclusiveRunningSlots(false);
|
|
10746
|
-
runNextExecution();
|
|
10642
|
+
} catch (error) {
|
|
10643
|
+
slot.executionDeferred.reject(error);
|
|
10747
10644
|
}
|
|
10748
|
-
}
|
|
10749
|
-
|
|
10750
|
-
this.currentlyExecutingDeferred = null;
|
|
10645
|
+
});
|
|
10646
|
+
await Promise.all(promises);
|
|
10751
10647
|
}
|
|
10752
10648
|
};
|
|
10753
10649
|
|
|
10754
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10650
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.fastmap.js
|
|
10755
10651
|
var FastMap = class {
|
|
10756
10652
|
constructor() {
|
|
10757
10653
|
this.mapObject = {};
|
|
@@ -10825,7 +10721,7 @@ var FastMap = class {
|
|
|
10825
10721
|
}
|
|
10826
10722
|
};
|
|
10827
10723
|
|
|
10828
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10724
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.objectmap.js
|
|
10829
10725
|
var uni = (prefix = "uni") => {
|
|
10830
10726
|
return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c) => {
|
|
10831
10727
|
const r = Math.random() * 16 | 0;
|
|
@@ -11024,7 +10920,7 @@ var ObjectMap = class {
|
|
|
11024
10920
|
}
|
|
11025
10921
|
};
|
|
11026
10922
|
|
|
11027
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10923
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.interest.js
|
|
11028
10924
|
var Interest = class {
|
|
11029
10925
|
/**
|
|
11030
10926
|
* quick access to a string that makes the interest comparable for checking for similar interests
|
|
@@ -11086,7 +10982,7 @@ var Interest = class {
|
|
|
11086
10982
|
}
|
|
11087
10983
|
};
|
|
11088
10984
|
|
|
11089
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
10985
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.js
|
|
11090
10986
|
var InterestMap = class {
|
|
11091
10987
|
constructor(comparisonFuncArg, optionsArg = {}) {
|
|
11092
10988
|
this.interestObjectMap = new ObjectMap();
|
|
@@ -11173,7 +11069,7 @@ var InterestMap = class {
|
|
|
11173
11069
|
}
|
|
11174
11070
|
};
|
|
11175
11071
|
|
|
11176
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
11072
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.limitedarray.js
|
|
11177
11073
|
var LimitedArray = class {
|
|
11178
11074
|
constructor(limitArg) {
|
|
11179
11075
|
this.array = [];
|
|
@@ -11210,7 +11106,7 @@ var LimitedArray = class {
|
|
|
11210
11106
|
}
|
|
11211
11107
|
};
|
|
11212
11108
|
|
|
11213
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
11109
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.looptracker.js
|
|
11214
11110
|
var LoopTracker = class {
|
|
11215
11111
|
constructor() {
|
|
11216
11112
|
this.referenceObjectMap = new ObjectMap();
|
|
@@ -11229,7 +11125,7 @@ var LoopTracker = class {
|
|
|
11229
11125
|
}
|
|
11230
11126
|
};
|
|
11231
11127
|
|
|
11232
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
11128
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.stringmap.js
|
|
11233
11129
|
var Stringmap = class {
|
|
11234
11130
|
constructor() {
|
|
11235
11131
|
this._stringArray = [];
|
|
@@ -11333,7 +11229,7 @@ var Stringmap = class {
|
|
|
11333
11229
|
}
|
|
11334
11230
|
};
|
|
11335
11231
|
|
|
11336
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
11232
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.timedaggregator.js
|
|
11337
11233
|
var TimedAggregtor = class {
|
|
11338
11234
|
constructor(optionsArg) {
|
|
11339
11235
|
this.storageArray = [];
|
|
@@ -11364,7 +11260,7 @@ var TimedAggregtor = class {
|
|
|
11364
11260
|
}
|
|
11365
11261
|
};
|
|
11366
11262
|
|
|
11367
|
-
// node_modules/.pnpm/@push.rocks+lik@6.0.
|
|
11263
|
+
// node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.tree.js
|
|
11368
11264
|
var Tree = class {
|
|
11369
11265
|
constructor() {
|
|
11370
11266
|
this.symbolTree = new import_symbol_tree.default();
|
|
@@ -11478,14 +11374,14 @@ var Tree = class {
|
|
|
11478
11374
|
// node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/index.js
|
|
11479
11375
|
var dist_ts_exports8 = {};
|
|
11480
11376
|
__export(dist_ts_exports8, {
|
|
11481
|
-
Smartenv: () =>
|
|
11377
|
+
Smartenv: () => Smartenv
|
|
11482
11378
|
});
|
|
11483
11379
|
|
|
11484
11380
|
// node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.plugins.js
|
|
11485
11381
|
var smartpromise2 = __toESM(require_dist_ts(), 1);
|
|
11486
11382
|
|
|
11487
11383
|
// node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
|
|
11488
|
-
var
|
|
11384
|
+
var Smartenv = class {
|
|
11489
11385
|
constructor() {
|
|
11490
11386
|
this.loadedScripts = [];
|
|
11491
11387
|
}
|
|
@@ -11604,7 +11500,7 @@ var Smartenv2 = class {
|
|
|
11604
11500
|
}
|
|
11605
11501
|
};
|
|
11606
11502
|
|
|
11607
|
-
// node_modules/.pnpm/@push.rocks+smartjson@5.0.
|
|
11503
|
+
// node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/index.js
|
|
11608
11504
|
var dist_ts_exports10 = {};
|
|
11609
11505
|
__export(dist_ts_exports10, {
|
|
11610
11506
|
Smartjson: () => Smartjson,
|
|
@@ -11613,10 +11509,11 @@ __export(dist_ts_exports10, {
|
|
|
11613
11509
|
parse: () => parse,
|
|
11614
11510
|
parseBase64: () => parseBase64,
|
|
11615
11511
|
stringify: () => stringify,
|
|
11616
|
-
stringifyBase64: () => stringifyBase64
|
|
11512
|
+
stringifyBase64: () => stringifyBase64,
|
|
11513
|
+
stringifyPretty: () => stringifyPretty
|
|
11617
11514
|
});
|
|
11618
11515
|
|
|
11619
|
-
// node_modules/.pnpm/@
|
|
11516
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/index.js
|
|
11620
11517
|
var dist_ts_exports9 = {};
|
|
11621
11518
|
__export(dist_ts_exports9, {
|
|
11622
11519
|
Base64: () => Base64,
|
|
@@ -11630,15 +11527,15 @@ __export(dist_ts_exports9, {
|
|
|
11630
11527
|
type: () => smartstring_type_exports
|
|
11631
11528
|
});
|
|
11632
11529
|
|
|
11633
|
-
// node_modules/.pnpm/@
|
|
11530
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
|
|
11634
11531
|
var smartstring_create_exports = {};
|
|
11635
11532
|
__export(smartstring_create_exports, {
|
|
11636
11533
|
createCryptoRandomString: () => createCryptoRandomString,
|
|
11637
11534
|
createRandomString: () => createRandomString
|
|
11638
11535
|
});
|
|
11639
11536
|
|
|
11640
|
-
// node_modules/.pnpm/@
|
|
11641
|
-
var isounique = __toESM(
|
|
11537
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
|
|
11538
|
+
var isounique = __toESM(require_dist_ts2(), 1);
|
|
11642
11539
|
var import_buffer = __toESM(require_buffer(), 1);
|
|
11643
11540
|
var url = __toESM(require_url(), 1);
|
|
11644
11541
|
|
|
@@ -11820,14 +11717,14 @@ function normalizeNewline(input) {
|
|
|
11820
11717
|
return Buffer.isBuffer(input) ? (0, import_replace_buffer.default)(input, CRLF, "\n") : input.replace(new RegExp(CRLF, "g"), "\n");
|
|
11821
11718
|
}
|
|
11822
11719
|
|
|
11823
|
-
// node_modules/.pnpm/@
|
|
11720
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
|
|
11824
11721
|
var import_randomatic = __toESM(require_randomatic(), 1);
|
|
11825
11722
|
var smartenvInstance = new Smartenv();
|
|
11826
11723
|
if (smartenvInstance.isBrowser) {
|
|
11827
11724
|
globalThis.Buffer = import_buffer.Buffer;
|
|
11828
11725
|
}
|
|
11829
11726
|
|
|
11830
|
-
// node_modules/.pnpm/@
|
|
11727
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
|
|
11831
11728
|
var createRandomString = (patternArg, lengthArg, optionsArg) => {
|
|
11832
11729
|
return import_randomatic.default(patternArg, lengthArg, optionsArg);
|
|
11833
11730
|
};
|
|
@@ -11835,7 +11732,7 @@ var createCryptoRandomString = () => {
|
|
|
11835
11732
|
return isounique.uni();
|
|
11836
11733
|
};
|
|
11837
11734
|
|
|
11838
|
-
// node_modules/.pnpm/@
|
|
11735
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
|
|
11839
11736
|
var smartstring_docker_exports = {};
|
|
11840
11737
|
__export(smartstring_docker_exports, {
|
|
11841
11738
|
makeEnvObject: () => makeEnvObject
|
|
@@ -11852,7 +11749,7 @@ var makeEnvObject = function(envArrayArg) {
|
|
|
11852
11749
|
return returnObject;
|
|
11853
11750
|
};
|
|
11854
11751
|
|
|
11855
|
-
// node_modules/.pnpm/@
|
|
11752
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
|
|
11856
11753
|
var smartstring_indent_exports = {};
|
|
11857
11754
|
__export(smartstring_indent_exports, {
|
|
11858
11755
|
indent: () => indent,
|
|
@@ -11918,7 +11815,7 @@ var normalize = (stringArg) => {
|
|
|
11918
11815
|
return resultString;
|
|
11919
11816
|
};
|
|
11920
11817
|
|
|
11921
|
-
// node_modules/.pnpm/@
|
|
11818
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
|
|
11922
11819
|
var smartstring_normalize_exports = {};
|
|
11923
11820
|
__export(smartstring_normalize_exports, {
|
|
11924
11821
|
replaceAll: () => replaceAll,
|
|
@@ -11927,21 +11824,34 @@ __export(smartstring_normalize_exports, {
|
|
|
11927
11824
|
var replaceAll = (stringArg, searchPattern, replacementString) => {
|
|
11928
11825
|
return stringArg.replace(new RegExp(searchPattern, "g"), replacementString);
|
|
11929
11826
|
};
|
|
11930
|
-
var standard = (stringArg) => {
|
|
11931
|
-
let
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11827
|
+
var standard = (stringArg, options) => {
|
|
11828
|
+
let result = stringArg;
|
|
11829
|
+
if (!options || options.stripIndent) {
|
|
11830
|
+
result = stripIndent(result);
|
|
11831
|
+
}
|
|
11832
|
+
if (!options || options.normalizeNewline) {
|
|
11833
|
+
result = normalizeNewline(result);
|
|
11834
|
+
}
|
|
11835
|
+
if (!options || options.replaceTabs) {
|
|
11836
|
+
result = replaceAll(result, " /", " ");
|
|
11837
|
+
}
|
|
11838
|
+
if (!options || options.stripLeadingTrailingEmptyLines) {
|
|
11839
|
+
result = result.replace(/^\s*[\r\n]/gm, "").replace(/\s*[\r\n]$/gm, "");
|
|
11840
|
+
}
|
|
11841
|
+
if (!options || options.stripAllEmptyLines) {
|
|
11842
|
+
result = result.replace(/^\s*[\r\n]/gm, "");
|
|
11843
|
+
}
|
|
11844
|
+
return result;
|
|
11935
11845
|
};
|
|
11936
11846
|
|
|
11937
|
-
// node_modules/.pnpm/@
|
|
11847
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
|
|
11938
11848
|
var smartstring_type_exports = {};
|
|
11939
11849
|
__export(smartstring_type_exports, {
|
|
11940
11850
|
isBase64: () => isBase64,
|
|
11941
11851
|
isUtf8: () => isUtf8
|
|
11942
11852
|
});
|
|
11943
11853
|
|
|
11944
|
-
// node_modules/.pnpm/@
|
|
11854
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
|
|
11945
11855
|
var Base64 = class {
|
|
11946
11856
|
constructor(inputStringArg, typeArg) {
|
|
11947
11857
|
switch (typeArg) {
|
|
@@ -12004,7 +11914,7 @@ var base64 = {
|
|
|
12004
11914
|
}
|
|
12005
11915
|
};
|
|
12006
11916
|
|
|
12007
|
-
// node_modules/.pnpm/@
|
|
11917
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
|
|
12008
11918
|
var isUtf8 = (stringArg) => {
|
|
12009
11919
|
const bytes = Buffer.from(stringArg);
|
|
12010
11920
|
let i = 0;
|
|
@@ -12055,7 +11965,7 @@ var isBase64 = (stringArg) => {
|
|
|
12055
11965
|
return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && stringArg[len - 1] === "=";
|
|
12056
11966
|
};
|
|
12057
11967
|
|
|
12058
|
-
// node_modules/.pnpm/@
|
|
11968
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
|
|
12059
11969
|
var Domain = class {
|
|
12060
11970
|
constructor(domainStringArg) {
|
|
12061
11971
|
this.protocol = this._protocolRegex(domainStringArg);
|
|
@@ -12116,7 +12026,7 @@ var Domain = class {
|
|
|
12116
12026
|
}
|
|
12117
12027
|
};
|
|
12118
12028
|
|
|
12119
|
-
// node_modules/.pnpm/@
|
|
12029
|
+
// node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
|
|
12120
12030
|
var GitRepo = class {
|
|
12121
12031
|
constructor(stringArg, tokenArg) {
|
|
12122
12032
|
let regexMatches = gitRegex(stringArg);
|
|
@@ -12152,13 +12062,13 @@ var gitLink = function(hostArg, userArg, repoArg, tokenArg = "", linkTypeArg) {
|
|
|
12152
12062
|
return returnString;
|
|
12153
12063
|
};
|
|
12154
12064
|
|
|
12155
|
-
// node_modules/.pnpm/@push.rocks+smartjson@5.0.
|
|
12065
|
+
// node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/smartjson.plugins.js
|
|
12156
12066
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
12157
12067
|
var import_fast_json_stable_stringify = __toESM(require_fast_json_stable_stringify(), 1);
|
|
12158
12068
|
var import_buffer_json = __toESM(require_buffer_json(), 1);
|
|
12159
12069
|
var stableJson = import_fast_json_stable_stringify.default;
|
|
12160
12070
|
|
|
12161
|
-
// node_modules/.pnpm/@push.rocks+smartjson@5.0.
|
|
12071
|
+
// node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/index.js
|
|
12162
12072
|
var parse = import_buffer_json.default.parse;
|
|
12163
12073
|
var stringify = (objArg, simpleOrderArray, optionsArg = {}) => {
|
|
12164
12074
|
const bufferedJson = import_buffer_json.default.stringify(objArg);
|
|
@@ -12166,6 +12076,11 @@ var stringify = (objArg, simpleOrderArray, optionsArg = {}) => {
|
|
|
12166
12076
|
let returnJson = stableJson(objArg, optionsArg);
|
|
12167
12077
|
return returnJson;
|
|
12168
12078
|
};
|
|
12079
|
+
var stringifyPretty = (objectArg) => {
|
|
12080
|
+
const stringified = stringify(objectArg);
|
|
12081
|
+
const object = JSON.parse(stringified);
|
|
12082
|
+
return JSON.stringify(object, null, 2);
|
|
12083
|
+
};
|
|
12169
12084
|
var stringifyBase64 = (...args) => {
|
|
12170
12085
|
const stringifiedResult = stringify(...args);
|
|
12171
12086
|
return dist_ts_exports9.base64.encodeUri(stringifiedResult);
|