@openclaw/fs-safe 0.4.5 → 0.4.7
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/CHANGELOG.md +58 -0
- package/README.md +31 -1
- package/SECURITY.md +40 -7
- package/dist/directory-durability.d.ts +44 -0
- package/dist/directory-durability.d.ts.map +1 -0
- package/dist/directory-durability.js +299 -0
- package/dist/durability.d.ts +2 -0
- package/dist/durability.d.ts.map +1 -0
- package/dist/durability.js +1 -0
- package/dist/fsync.d.ts +1 -1
- package/dist/fsync.d.ts.map +1 -1
- package/dist/fsync.js +1 -21
- package/dist/local-file-access.d.ts.map +1 -1
- package/dist/local-file-access.js +9 -1
- package/dist/permissions.d.ts +11 -0
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +56 -55
- package/dist/secure-file.d.ts.map +1 -1
- package/dist/secure-file.js +3 -0
- package/dist/sibling-temp.d.ts.map +1 -1
- package/dist/sibling-temp.js +1 -13
- package/dist/windows-command.d.ts +2 -0
- package/dist/windows-command.d.ts.map +1 -0
- package/dist/windows-command.js +34 -0
- package/dist/windows-owner.d.ts +29 -0
- package/dist/windows-owner.d.ts.map +1 -0
- package/dist/windows-owner.js +118 -0
- package/docs/advanced.md +1 -1
- package/docs/contributing.md +19 -4
- package/docs/durability.md +89 -0
- package/docs/index.md +1 -0
- package/docs/permissions.md +4 -1
- package/docs/security-model.md +13 -0
- package/package.json +26 -3
package/package.json
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fs-safe",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "Capability-style filesystem roots for Node.js apps that handle untrusted relative paths.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"filesystem",
|
|
7
|
+
"openclaw",
|
|
8
|
+
"path-traversal",
|
|
9
|
+
"security",
|
|
10
|
+
"typescript"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://fs-safe.io",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/openclaw/fs-safe/issues"
|
|
15
|
+
},
|
|
5
16
|
"license": "MIT",
|
|
17
|
+
"author": "OpenClaw Team <dev@openclaw.ai>",
|
|
6
18
|
"repository": {
|
|
7
19
|
"type": "git",
|
|
8
20
|
"url": "git+https://github.com/openclaw/fs-safe.git"
|
|
9
21
|
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public",
|
|
24
|
+
"provenance": true
|
|
25
|
+
},
|
|
10
26
|
"files": [
|
|
11
27
|
"dist/**/*.js",
|
|
12
28
|
"dist/**/*.d.ts",
|
|
@@ -80,6 +96,10 @@
|
|
|
80
96
|
"types": "./dist/atomic.d.ts",
|
|
81
97
|
"default": "./dist/atomic.js"
|
|
82
98
|
},
|
|
99
|
+
"./durability": {
|
|
100
|
+
"types": "./dist/durability.d.ts",
|
|
101
|
+
"default": "./dist/durability.js"
|
|
102
|
+
},
|
|
83
103
|
"./archive": {
|
|
84
104
|
"types": "./dist/archive.d.ts",
|
|
85
105
|
"default": "./dist/archive.js"
|
|
@@ -95,7 +115,8 @@
|
|
|
95
115
|
"./test-hooks": {
|
|
96
116
|
"types": "./dist/test-hooks.d.ts",
|
|
97
117
|
"default": "./dist/test-hooks.js"
|
|
98
|
-
}
|
|
118
|
+
},
|
|
119
|
+
"./package.json": "./package.json"
|
|
99
120
|
},
|
|
100
121
|
"scripts": {
|
|
101
122
|
"benchmark": "node scripts/benchmark.mjs",
|
|
@@ -106,9 +127,11 @@
|
|
|
106
127
|
"test": "vitest run",
|
|
107
128
|
"test:coverage": "vitest run --coverage",
|
|
108
129
|
"test:security": "vitest run test/fs-safe.test.ts test/read-boundary-bypass.test.ts test/write-boundary-bypass.test.ts test/additional-boundary-bypass.test.ts test/adversarial-boundary-payloads.test.ts",
|
|
109
|
-
"check": "pnpm lint:file-size && pnpm lint:fs-boundary && pnpm build && pnpm test",
|
|
130
|
+
"check": "pnpm lint:file-size && pnpm lint:fs-boundary && pnpm build && pnpm test && node scripts/check-pack.mjs",
|
|
110
131
|
"docs:site": "node scripts/build-docs-site.mjs",
|
|
132
|
+
"pack:check": "pnpm build && node scripts/check-pack.mjs",
|
|
111
133
|
"check:changed": "pnpm run check",
|
|
134
|
+
"release:notes": "node scripts/release-notes.mjs",
|
|
112
135
|
"test:changed": "pnpm run test",
|
|
113
136
|
"crabbox:hydrate": "crabbox actions hydrate",
|
|
114
137
|
"crabbox:run": "crabbox run",
|