poe-code 15.0.0 → 15.0.1
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/metafile.json +1 -1
- package/package.json +7 -1
- package/packages/safe-bash/dist/chunks/chunk-3ISDVRIM.js +3821 -0
- package/packages/safe-bash/dist/chunks/chunk-3ISDVRIM.js.map +7 -0
- package/packages/safe-bash/dist/commands/xml/evaluate.d.ts +27 -0
- package/packages/safe-bash/dist/commands/xml/evaluate.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/xml/evaluate.js +208 -0
- package/packages/safe-bash/dist/commands/xml/evaluate.js.map +1 -0
- package/packages/safe-bash/dist/commands/xml/index.browser.js +11 -0
- package/packages/safe-bash/dist/commands/xml/index.browser.js.map +7 -0
- package/packages/safe-bash/dist/commands/xml/index.d.ts +7 -0
- package/packages/safe-bash/dist/commands/xml/index.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/xml/index.js +196 -0
- package/packages/safe-bash/dist/commands/xml/index.js.map +1 -0
- package/packages/safe-bash/dist/commands/xml/limits.d.ts +36 -0
- package/packages/safe-bash/dist/commands/xml/limits.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/xml/limits.js +55 -0
- package/packages/safe-bash/dist/commands/xml/limits.js.map +1 -0
- package/packages/safe-bash/dist/commands/xml/query.d.ts +21 -0
- package/packages/safe-bash/dist/commands/xml/query.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/xml/query.js +111 -0
- package/packages/safe-bash/dist/commands/xml/query.js.map +1 -0
- package/packages/safe-bash/dist/core.browser.js +990 -3879
- package/packages/safe-bash/dist/core.browser.js.map +4 -4
- package/packages/safe-bash/dist/core.d.ts +1 -0
- package/packages/safe-bash/dist/core.d.ts.map +1 -1
- package/packages/safe-bash/dist/core.js +1 -0
- package/packages/safe-bash/dist/core.js.map +1 -1
- package/packages/safe-bash/dist/plugins/composition.d.ts +2 -0
- package/packages/safe-bash/dist/plugins/composition.d.ts.map +1 -1
- package/packages/safe-bash/dist/plugins/composition.js +3 -1
- package/packages/safe-bash/dist/plugins/composition.js.map +1 -1
- package/packages/safe-fs/dist/core.d.ts +2 -0
- package/packages/safe-fs/dist/fs/webdav/xml.d.ts +4 -10
- package/packages/safe-fs/dist/xml.d.ts +42 -0
- package/packages/safe-js/dist/browser/chunks/{chunk-QK4IEGRO.js → chunk-CRKYNANF.js} +304 -67
- package/packages/safe-js/dist/browser/chunks/{chunk-QK4IEGRO.js.map → chunk-CRKYNANF.js.map} +4 -4
- package/packages/safe-js/dist/browser/safe-fs-core.js +7 -1
- package/packages/safe-js/dist/browser/safe-fs.js +7 -1
- package/packages/safe-js/dist/chunks/{chunk-BG7WRAD3.js → chunk-7JFJLEHK.js} +3 -3
- package/packages/safe-js/dist/chunks/{chunk-XOQ5CVQM.js → chunk-CM4RZVZD.js} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-6V4U2JZS.js → chunk-LRGCUDH7.js} +333 -96
- package/packages/safe-js/dist/chunks/chunk-LRGCUDH7.js.map +7 -0
- package/packages/safe-js/dist/cli.js +3 -3
- package/packages/safe-js/dist/index.js +3 -3
- package/packages/safe-js/dist/safe-fs-core.js +7 -1
- package/packages/safe-js/dist/safe-fs-core.js.map +1 -1
- package/packages/safe-js/dist/safe-fs-node.js +2 -2
- package/packages/safe-js/dist/safe-fs.js +2 -2
- package/packages/safe-js/dist/chunks/chunk-6V4U2JZS.js.map +0 -7
- /package/packages/safe-js/dist/chunks/{chunk-BG7WRAD3.js.map → chunk-7JFJLEHK.js.map} +0 -0
- /package/packages/safe-js/dist/chunks/{chunk-XOQ5CVQM.js.map → chunk-CM4RZVZD.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-7JFJLEHK.js";
|
|
26
26
|
import {
|
|
27
27
|
Budget,
|
|
28
28
|
SandboxError,
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
restore,
|
|
36
36
|
run
|
|
37
37
|
} from "./chunks/chunk-CMS3KC72.js";
|
|
38
|
-
import "./chunks/chunk-
|
|
39
|
-
import "./chunks/chunk-
|
|
38
|
+
import "./chunks/chunk-CM4RZVZD.js";
|
|
39
|
+
import "./chunks/chunk-LRGCUDH7.js";
|
|
40
40
|
import "./chunks/chunk-4YIDX44G.js";
|
|
41
41
|
|
|
42
42
|
// packages/safe-js/src/cli.ts
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runWithSpawnUsageAccumulator,
|
|
27
27
|
splitFrontmatter,
|
|
28
28
|
supportsSpawnMode
|
|
29
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-7JFJLEHK.js";
|
|
30
30
|
import {
|
|
31
31
|
Budget,
|
|
32
32
|
FileSnapshotBackend,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
restore,
|
|
52
52
|
run
|
|
53
53
|
} from "./chunks/chunk-CMS3KC72.js";
|
|
54
|
-
import "./chunks/chunk-
|
|
55
|
-
import "./chunks/chunk-
|
|
54
|
+
import "./chunks/chunk-CM4RZVZD.js";
|
|
55
|
+
import "./chunks/chunk-LRGCUDH7.js";
|
|
56
56
|
import "./chunks/chunk-4YIDX44G.js";
|
|
57
57
|
|
|
58
58
|
// packages/safe-js/src/parse.ts
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
OverlayFileSystem,
|
|
10
10
|
ReadOnlyFileSystem,
|
|
11
11
|
WebDavFileSystem,
|
|
12
|
+
XmlLimitError,
|
|
12
13
|
assertPathWithin,
|
|
13
14
|
collectBytes,
|
|
14
15
|
compareEntries,
|
|
@@ -23,6 +24,8 @@ import {
|
|
|
23
24
|
isFsError,
|
|
24
25
|
isPathWithin,
|
|
25
26
|
normalizePath,
|
|
27
|
+
parseXml,
|
|
28
|
+
parseXmlSteps,
|
|
26
29
|
platform,
|
|
27
30
|
readBytes,
|
|
28
31
|
relativePath,
|
|
@@ -32,7 +35,7 @@ import {
|
|
|
32
35
|
toFsError,
|
|
33
36
|
validatePath,
|
|
34
37
|
withFileSystemQuota
|
|
35
|
-
} from "./chunks/chunk-
|
|
38
|
+
} from "./chunks/chunk-LRGCUDH7.js";
|
|
36
39
|
import "./chunks/chunk-4YIDX44G.js";
|
|
37
40
|
|
|
38
41
|
// packages/safe-fs/src/contracts/portable-path.ts
|
|
@@ -110,6 +113,7 @@ export {
|
|
|
110
113
|
OverlayFileSystem,
|
|
111
114
|
ReadOnlyFileSystem,
|
|
112
115
|
WebDavFileSystem,
|
|
116
|
+
XmlLimitError,
|
|
113
117
|
assertPathWithin,
|
|
114
118
|
basename,
|
|
115
119
|
collectBytes,
|
|
@@ -129,6 +133,8 @@ export {
|
|
|
129
133
|
isPathWithin,
|
|
130
134
|
joinPath,
|
|
131
135
|
normalizePath,
|
|
136
|
+
parseXml,
|
|
137
|
+
parseXmlSteps,
|
|
132
138
|
posixPath,
|
|
133
139
|
readBytes,
|
|
134
140
|
relativePath,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../safe-fs/src/contracts/portable-path.ts", "../../safe-fs/src/bridge/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { dirname as virtualDirname } from \"./virtual-path.js\";\n\nfunction assertString(value: unknown): asserts value is string {\n if (typeof value !== \"string\") throw new TypeError(\"path must be a string\");\n}\n\nexport function basename(path: string, suffix = \"\"): string {\n assertString(path);\n assertString(suffix);\n if (suffix && path === suffix) return \"\";\n let end = path.length;\n while (end > 0 && path[end - 1] === \"/\") end--;\n if (end === 0 && suffix && suffix.length <= path.length) return path;\n const start = path.lastIndexOf(\"/\", end - 1) + 1;\n const base = path.slice(start, end);\n if (suffix.length > base.length && suffix.length <= path.length && suffix.endsWith(base)) return path.slice(start);\n return suffix && suffix.length < base.length && base.endsWith(suffix)\n ? base.slice(0, -suffix.length)\n : base;\n}\n\nexport const dirname = virtualDirname;\n\nexport function extname(path: string): string {\n const base = basename(path);\n const position = base.lastIndexOf(\".\");\n return position <= 0 || base === \"..\" ? \"\" : base.slice(position);\n}\n\nexport function isAbsolutePath(path: string): boolean {\n assertString(path);\n return path.startsWith(\"/\");\n}\n\nexport function joinPath(...paths: string[]): string {\n for (const path of paths) assertString(path);\n const joined = paths.filter(Boolean).join(\"/\");\n if (!joined) return \".\";\n const absolute = joined.startsWith(\"/\");\n const components: string[] = [];\n for (const component of joined.split(\"/\")) {\n if (!component || component === \".\") continue;\n if (component === \"..\") {\n if (components.length && components.at(-1) !== \"..\") components.pop();\n else if (!absolute) components.push(component);\n } else components.push(component);\n }\n const result = `${absolute ? \"/\" : \"\"}${components.join(\"/\")}` || \".\";\n return joined.endsWith(\"/\") && result !== \"/\" ? `${result}/` : result;\n}\n\nexport const posixPath = Object.freeze({ basename, dirname, extname, join: joinPath, isAbsolute: isAbsolutePath });\n", "import { platform } from \"#safe-fs-platform\";\nimport type { FileSystem } from \"../contracts/filesystem.js\";\nimport { dirname, relativePath, resolvePath } from \"../contracts/virtual-path.js\";\nimport { FileSystemBridge } from \"./filesystem.js\";\nimport type { FsBridgeOptions } from \"./types.js\";\n\nexport type {\n FsBridgeCodec, FsBridgeDirent, FsBridgeEncoding, FsBridgeFileSystem, FsBridgeOptions, FsBridgeStats\n} from \"./types.js\";\nexport type FsBridge = FileSystemBridge<Uint8Array<ArrayBuffer>>;\n\nexport function createFsBridge(fs: FileSystem, options: FsBridgeOptions): FsBridge {\n if (options === undefined || options === null) throw new TypeError(\"An explicit filesystem codec is required\");\n return new FileSystemBridge(fs, options, {\n codec: options.codec,\n copyBytes(bytes) { return new Uint8Array(bytes); },\n randomSuffix() { return platform.randomUUID().slice(0, 6); },\n paths: {\n isAbsolute(path) { return typeof path === \"string\" && path.startsWith(\"/\"); },\n dirname,\n relative: relativePath,\n resolve: resolvePath\n }\n });\n}\n"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|
|
22
22
|
DeviceFileSystem,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
validateFileSystemConfig,
|
|
51
51
|
validatePath,
|
|
52
52
|
withFileSystemQuota
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-LRGCUDH7.js";
|
|
54
54
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
55
|
export {
|
|
56
56
|
ACCESS_MODES,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isAbsolutePath,
|
|
17
17
|
joinPath,
|
|
18
18
|
posixPath
|
|
19
|
-
} from "./chunks/chunk-
|
|
19
|
+
} from "./chunks/chunk-CM4RZVZD.js";
|
|
20
20
|
import {
|
|
21
21
|
ACCESS_MODES,
|
|
22
22
|
DeviceFileSystem,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
validateFileSystemConfig,
|
|
51
51
|
validatePath,
|
|
52
52
|
withFileSystemQuota
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-LRGCUDH7.js";
|
|
54
54
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
55
|
export {
|
|
56
56
|
ACCESS_MODES,
|