@poe-platform/safe-bash 0.1.777 → 0.1.778
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.
|
@@ -82626,7 +82626,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
82626
82626
|
if (genSelM) {
|
|
82627
82627
|
const condVals = this.evalSyncJqPathOps(item, genSelM[1]);
|
|
82628
82628
|
if (!condVals) return void 0;
|
|
82629
|
-
return condVals.
|
|
82629
|
+
return condVals.filter((v) => v !== null && v !== void 0 && v !== false).map(() => item);
|
|
82630
82630
|
}
|
|
82631
82631
|
const delGenM = /^del\(\s*(.+)\s*\)$/.exec(st);
|
|
82632
82632
|
if (delGenM && item && typeof item === "object") {
|
|
@@ -82649,6 +82649,8 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
82649
82649
|
const subClone = { ...clone[k1] };
|
|
82650
82650
|
delete subClone[k2];
|
|
82651
82651
|
clone[k1] = subClone;
|
|
82652
|
+
} else if (clone[k1] !== null && clone[k1] !== void 0) {
|
|
82653
|
+
return void 0;
|
|
82652
82654
|
}
|
|
82653
82655
|
}
|
|
82654
82656
|
if (okDel) return [clone];
|
|
@@ -86041,7 +86043,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
86041
86043
|
const formatJoin = (key, r1, r2) => {
|
|
86042
86044
|
if (outSpec) {
|
|
86043
86045
|
return outSpec.map((s) => {
|
|
86044
|
-
if (s.file === 0) return key;
|
|
86046
|
+
if (s.file === 0) return key === "" ? emptyRep : key;
|
|
86045
86047
|
const src = s.file === 1 ? r1 : r2;
|
|
86046
86048
|
const val = src ? src[s.idx] : void 0;
|
|
86047
86049
|
return val !== void 0 && val !== "" ? val : emptyRep;
|
|
@@ -86271,7 +86273,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
86271
86273
|
}
|
|
86272
86274
|
}
|
|
86273
86275
|
if (sepChars || l.length > start) row.push(l.slice(start));
|
|
86274
|
-
if (row.length === 0
|
|
86276
|
+
if (row.length === 0) continue;
|
|
86275
86277
|
if (row.length > maxCols) maxCols = row.length;
|
|
86276
86278
|
rows.push(row);
|
|
86277
86279
|
}
|
|
@@ -28156,7 +28156,7 @@ export class Runtime {
|
|
|
28156
28156
|
const condVals = this.evalSyncJqPathOps(item, genSelM[1]);
|
|
28157
28157
|
if (!condVals)
|
|
28158
28158
|
return undefined;
|
|
28159
|
-
return condVals.
|
|
28159
|
+
return condVals.filter(v => v !== null && v !== undefined && v !== false).map(() => item);
|
|
28160
28160
|
}
|
|
28161
28161
|
const delGenM = /^del\(\s*(.+)\s*\)$/.exec(st);
|
|
28162
28162
|
if (delGenM && item && typeof item === "object") {
|
|
@@ -28181,6 +28181,9 @@ export class Runtime {
|
|
|
28181
28181
|
delete subClone[k2];
|
|
28182
28182
|
clone[k1] = subClone;
|
|
28183
28183
|
}
|
|
28184
|
+
else if (clone[k1] !== null && clone[k1] !== undefined) {
|
|
28185
|
+
return undefined;
|
|
28186
|
+
}
|
|
28184
28187
|
}
|
|
28185
28188
|
if (okDel)
|
|
28186
28189
|
return [clone];
|
|
@@ -32340,7 +32343,7 @@ export class Runtime {
|
|
|
32340
32343
|
if (outSpec) {
|
|
32341
32344
|
return outSpec.map(s => {
|
|
32342
32345
|
if (s.file === 0)
|
|
32343
|
-
return key;
|
|
32346
|
+
return key === "" ? emptyRep : key;
|
|
32344
32347
|
const src = s.file === 1 ? r1 : r2;
|
|
32345
32348
|
const val = src ? src[s.idx] : undefined;
|
|
32346
32349
|
return val !== undefined && val !== "" ? val : emptyRep;
|
|
@@ -32648,7 +32651,7 @@ export class Runtime {
|
|
|
32648
32651
|
}
|
|
32649
32652
|
if (sepChars || l.length > start)
|
|
32650
32653
|
row.push(l.slice(start));
|
|
32651
|
-
if (row.length === 0
|
|
32654
|
+
if (row.length === 0)
|
|
32652
32655
|
continue;
|
|
32653
32656
|
if (row.length > maxCols)
|
|
32654
32657
|
maxCols = row.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.778",
|
|
4
4
|
"description": "Extensible virtual shell with pluggable filesystems and streaming commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
"access": "public"
|
|
842
842
|
},
|
|
843
843
|
"dependencies": {
|
|
844
|
-
"@poe-platform/safe-fs": "0.1.
|
|
844
|
+
"@poe-platform/safe-fs": "0.1.778",
|
|
845
845
|
"pdf-lib": "1.17.1",
|
|
846
846
|
"@noble/hashes": "2.4.0",
|
|
847
847
|
"pako": "3.0.1",
|