base44 0.0.8 → 0.0.9
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/cli/index.js +24 -18
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -30681,6 +30681,7 @@ const SYMLINK = Symbol("symlink");
|
|
|
30681
30681
|
const HARDLINK = Symbol("hardlink");
|
|
30682
30682
|
const UNSUPPORTED = Symbol("unsupported");
|
|
30683
30683
|
const CHECKPATH = Symbol("checkPath");
|
|
30684
|
+
const STRIPABSOLUTEPATH = Symbol("stripAbsolutePath");
|
|
30684
30685
|
const MKDIR = Symbol("mkdir");
|
|
30685
30686
|
const ONERROR = Symbol("onError");
|
|
30686
30687
|
const PENDING = Symbol("pending");
|
|
@@ -30793,6 +30794,27 @@ var Unpack = class extends Parser {
|
|
|
30793
30794
|
this.emit("end");
|
|
30794
30795
|
}
|
|
30795
30796
|
}
|
|
30797
|
+
[STRIPABSOLUTEPATH](entry, field) {
|
|
30798
|
+
const path$17 = entry[field];
|
|
30799
|
+
if (!path$17 || this.preservePaths) return true;
|
|
30800
|
+
const parts = path$17.split("/");
|
|
30801
|
+
if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
|
|
30802
|
+
this.warn("TAR_ENTRY_ERROR", `${field} contains '..'`, {
|
|
30803
|
+
entry,
|
|
30804
|
+
[field]: path$17
|
|
30805
|
+
});
|
|
30806
|
+
return false;
|
|
30807
|
+
}
|
|
30808
|
+
const [root, stripped] = stripAbsolutePath(path$17);
|
|
30809
|
+
if (root) {
|
|
30810
|
+
entry[field] = String(stripped);
|
|
30811
|
+
this.warn("TAR_ENTRY_INFO", `stripping ${root} from absolute ${field}`, {
|
|
30812
|
+
entry,
|
|
30813
|
+
[field]: path$17
|
|
30814
|
+
});
|
|
30815
|
+
}
|
|
30816
|
+
return true;
|
|
30817
|
+
}
|
|
30796
30818
|
[CHECKPATH](entry) {
|
|
30797
30819
|
const p$1 = normalizeWindowsPath(entry.path);
|
|
30798
30820
|
const parts = p$1.split("/");
|
|
@@ -30815,23 +30837,7 @@ var Unpack = class extends Parser {
|
|
|
30815
30837
|
});
|
|
30816
30838
|
return false;
|
|
30817
30839
|
}
|
|
30818
|
-
if (!this
|
|
30819
|
-
if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
|
|
30820
|
-
this.warn("TAR_ENTRY_ERROR", `path contains '..'`, {
|
|
30821
|
-
entry,
|
|
30822
|
-
path: p$1
|
|
30823
|
-
});
|
|
30824
|
-
return false;
|
|
30825
|
-
}
|
|
30826
|
-
const [root, stripped] = stripAbsolutePath(p$1);
|
|
30827
|
-
if (root) {
|
|
30828
|
-
entry.path = String(stripped);
|
|
30829
|
-
this.warn("TAR_ENTRY_INFO", `stripping ${root} from absolute path`, {
|
|
30830
|
-
entry,
|
|
30831
|
-
path: p$1
|
|
30832
|
-
});
|
|
30833
|
-
}
|
|
30834
|
-
}
|
|
30840
|
+
if (!this[STRIPABSOLUTEPATH](entry, "path") || !this[STRIPABSOLUTEPATH](entry, "linkpath")) return false;
|
|
30835
30841
|
if (path.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(path.resolve(entry.path));
|
|
30836
30842
|
else entry.absolute = normalizeWindowsPath(path.resolve(this.cwd, entry.path));
|
|
30837
30843
|
/* c8 ignore start - defense in depth */
|
|
@@ -38310,7 +38316,7 @@ const siteDeployCommand = new Command("site").description("Manage site deploymen
|
|
|
38310
38316
|
|
|
38311
38317
|
//#endregion
|
|
38312
38318
|
//#region package.json
|
|
38313
|
-
var version = "0.0.
|
|
38319
|
+
var version = "0.0.9";
|
|
38314
38320
|
|
|
38315
38321
|
//#endregion
|
|
38316
38322
|
//#region src/cli/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "base44",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Base44 CLI - Unified interface for managing Base44 applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ky": "^1.14.2",
|
|
56
56
|
"lodash.kebabcase": "^4.1.1",
|
|
57
57
|
"p-wait-for": "^6.0.0",
|
|
58
|
-
"tar": "^7.
|
|
58
|
+
"tar": "^7.5.3",
|
|
59
59
|
"tsdown": "^0.12.4",
|
|
60
60
|
"tsx": "^4.19.2",
|
|
61
61
|
"typescript": "^5.7.2",
|