@infrascan/fs-connector 0.3.0 → 0.4.0
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/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +15 -11
package/dist/index.js
CHANGED
|
@@ -55,7 +55,12 @@ async function readStateFromFile(filePath) {
|
|
|
55
55
|
if (readError?.code === "ENOENT") {
|
|
56
56
|
return [];
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
if (err instanceof Error) {
|
|
59
|
+
throw err;
|
|
60
|
+
}
|
|
61
|
+
throw new Error(
|
|
62
|
+
`Unexpected error occurred reading state from file: ${String(err)}`
|
|
63
|
+
);
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
66
|
function serializeState(state, prettyPrint) {
|
package/dist/index.mjs
CHANGED
|
@@ -30,7 +30,12 @@ async function readStateFromFile(filePath) {
|
|
|
30
30
|
if (readError?.code === "ENOENT") {
|
|
31
31
|
return [];
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
if (err instanceof Error) {
|
|
34
|
+
throw err;
|
|
35
|
+
}
|
|
36
|
+
throw new Error(
|
|
37
|
+
`Unexpected error occurred reading state from file: ${String(err)}`
|
|
38
|
+
);
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
function serializeState(state, prettyPrint) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrascan/fs-connector",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Connector for the Infrascan SDK to read and write state to the local filesystem",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"lint": "tsc --noEmit ; eslint .",
|
|
22
|
-
"clean": "rm -rf dist node_modules"
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/infrascan/infrascan.git"
|
|
23
21
|
},
|
|
24
22
|
"keywords": [
|
|
25
23
|
"AWS",
|
|
@@ -31,12 +29,18 @@
|
|
|
31
29
|
"author": "Liam Farrelly <liam@l3f7.dev> (https://whoisli.am/)",
|
|
32
30
|
"license": "MPL-2.0",
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
"@infrascan/shared-types": "^0.
|
|
35
|
-
"eslint-config-custom": "
|
|
36
|
-
"tsconfig": "
|
|
37
|
-
"typescript": "
|
|
32
|
+
"@infrascan/shared-types": "^0.9.0",
|
|
33
|
+
"eslint-config-custom": "1.0.0",
|
|
34
|
+
"@infrascan/tsconfig": "0.0.0",
|
|
35
|
+
"typescript": "5.8.3",
|
|
36
|
+
"@types/node": "^24"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"minimatch": "^9.0.3"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rm -rf dist ; tsup --config internal/tsconfig/tsup.json",
|
|
43
|
+
"lint": "tsc --noEmit ; eslint .",
|
|
44
|
+
"clean": "rm -rf dist node_modules"
|
|
41
45
|
}
|
|
42
|
-
}
|
|
46
|
+
}
|