yamlock 0.2.9 → 1.0.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/README.md +249 -36
- package/bin/yamlock +8 -0
- package/dist/cli/cli.js +457 -74
- package/dist/crypto/decrypt.js +112 -13
- package/dist/crypto/encrypt.js +107 -18
- package/dist/crypto/payload-v2.js +371 -0
- package/dist/crypto/utils.js +65 -14
- package/dist/errors.js +59 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +10 -0
- package/dist/utils/config.js +298 -44
- package/dist/utils/file.js +58 -0
- package/dist/utils/migrate.js +170 -0
- package/dist/utils/path.js +58 -9
- package/docs/api.md +56 -0
- package/docs/design/payload-v2.md +344 -0
- package/docs/errors.md +71 -0
- package/docs/yaml-behavior.md +51 -0
- package/examples/basic.js +31 -0
- package/examples/docs/ci-cd.md +58 -0
- package/examples/docs/key-rotation.md +65 -0
- package/package.json +19 -7
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yamlock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"author": "PAVEL TKACHEV (phoenixweiss) <mail@phoenixweiss.me>",
|
|
5
5
|
"description": "Value-level encryption for YAML/JSON configuration files with CLI + Node.js APIs.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"packageManager": "yarn@1.22.22",
|
|
8
9
|
"main": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
9
11
|
"exports": {
|
|
10
12
|
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
11
14
|
"import": "./dist/index.js"
|
|
12
15
|
},
|
|
13
16
|
"./package.json": "./package.json"
|
|
@@ -18,6 +21,8 @@
|
|
|
18
21
|
"files": [
|
|
19
22
|
"dist",
|
|
20
23
|
"bin",
|
|
24
|
+
"docs",
|
|
25
|
+
"examples",
|
|
21
26
|
"README.md",
|
|
22
27
|
"LICENSE"
|
|
23
28
|
],
|
|
@@ -33,10 +38,15 @@
|
|
|
33
38
|
"node": ">=22.0.0"
|
|
34
39
|
},
|
|
35
40
|
"scripts": {
|
|
36
|
-
"build": "rimraf dist && cp -R src dist",
|
|
41
|
+
"build": "rimraf dist && mkdir -p dist && cp -R src/* dist/",
|
|
42
|
+
"check:docs": "node scripts/check-docs.js",
|
|
43
|
+
"check:release": "node scripts/release-check.js",
|
|
37
44
|
"lint": "eslint .",
|
|
38
45
|
"prepare": "yarn run build",
|
|
39
|
-
"test": "node --test"
|
|
46
|
+
"test": "node --test",
|
|
47
|
+
"test:coverage": "node --test --experimental-test-coverage --test-coverage-include='src/**/*.js' --test-coverage-lines=90 --test-coverage-branches=80 --test-coverage-functions=95",
|
|
48
|
+
"test:types": "yarn run build && tsc --project test/types/tsconfig.json",
|
|
49
|
+
"test:package": "yarn run build && node scripts/package-smoke.js"
|
|
40
50
|
},
|
|
41
51
|
"repository": {
|
|
42
52
|
"type": "git",
|
|
@@ -47,12 +57,14 @@
|
|
|
47
57
|
},
|
|
48
58
|
"homepage": "https://github.com/phoenixweiss/yamlock#readme",
|
|
49
59
|
"dependencies": {
|
|
50
|
-
"js-yaml": "^4.1
|
|
60
|
+
"js-yaml": "^4.3.1"
|
|
51
61
|
},
|
|
52
62
|
"devDependencies": {
|
|
53
|
-
"@eslint/js": "^9.
|
|
54
|
-
"
|
|
63
|
+
"@eslint/js": "^9.39.5",
|
|
64
|
+
"@types/node": "^22.0.0",
|
|
65
|
+
"eslint": "^9.39.5",
|
|
55
66
|
"globals": "^15.0.0",
|
|
56
|
-
"rimraf": "^5.0.5"
|
|
67
|
+
"rimraf": "^5.0.5",
|
|
68
|
+
"typescript": "^5.9.2"
|
|
57
69
|
}
|
|
58
70
|
}
|