@dotsec/core 5.0.0-feat-local-encryption.0e41924 → 5.0.0-feat-local-encryption.d13db9b
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 +8 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ const errors = validate('# @bogus\nFOO="bar"\n');
|
|
|
30
30
|
|
|
31
31
|
// Convert to JSON
|
|
32
32
|
const json = toJson('FOO=bar\nPORT=3000\n');
|
|
33
|
-
// '
|
|
33
|
+
// '{"FOO":"bar","PORT":"3000"}'
|
|
34
34
|
|
|
35
35
|
// Roundtrip format
|
|
36
36
|
const formatted = format('FOO=bar\n');
|
|
@@ -68,8 +68,14 @@ const typescript = schemaToTypescript(schemaSource); // TypeScript declaratio
|
|
|
68
68
|
- `@encrypt` / `@plaintext` — mark variables for encryption
|
|
69
69
|
- `@default-encrypt` / `@default-plaintext` — file-level defaults
|
|
70
70
|
- `@type=string|number|boolean|enum("a","b")` — value type validation
|
|
71
|
+
- `@format=email|url|uuid|ipv4|ipv6|date|semver` — format validation
|
|
72
|
+
- `@pattern="regex"` — regex pattern validation
|
|
73
|
+
- `@min` / `@max` — numeric range constraints
|
|
74
|
+
- `@min-length` / `@max-length` — string length constraints
|
|
75
|
+
- `@not-empty` — value must not be empty
|
|
76
|
+
- `@optional` — key not required in schema validation
|
|
71
77
|
- `@push=aws-ssm|aws-secrets-manager` — push targets with options
|
|
72
|
-
- `@provider`, `@key-id`, `@region` — file-level encryption config
|
|
78
|
+
- `@provider=local|aws`, `@key-id`, `@region` — file-level encryption config
|
|
73
79
|
|
|
74
80
|
See the [full documentation](https://jpwesselink.github.io/dotsec-rs/guide/directives.html) for details.
|
|
75
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotsec/core",
|
|
3
|
-
"version": "5.0.0-feat-local-encryption.
|
|
3
|
+
"version": "5.0.0-feat-local-encryption.d13db9b",
|
|
4
4
|
"description": "Native Node.js bindings for dotsec — parse, validate, and format .env files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"url": "https://github.com/jpwesselink/dotsec-rs"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@dotsec/core-darwin-arm64": "5.0.0-feat-local-encryption.
|
|
30
|
-
"@dotsec/core-darwin-x64": "5.0.0-feat-local-encryption.
|
|
31
|
-
"@dotsec/core-linux-x64-gnu": "5.0.0-feat-local-encryption.
|
|
32
|
-
"@dotsec/core-linux-arm64-gnu": "5.0.0-feat-local-encryption.
|
|
33
|
-
"@dotsec/core-win32-x64-msvc": "5.0.0-feat-local-encryption.
|
|
34
|
-
"@dotsec/core-win32-arm64-msvc": "5.0.0-feat-local-encryption.
|
|
29
|
+
"@dotsec/core-darwin-arm64": "5.0.0-feat-local-encryption.d13db9b",
|
|
30
|
+
"@dotsec/core-darwin-x64": "5.0.0-feat-local-encryption.d13db9b",
|
|
31
|
+
"@dotsec/core-linux-x64-gnu": "5.0.0-feat-local-encryption.d13db9b",
|
|
32
|
+
"@dotsec/core-linux-arm64-gnu": "5.0.0-feat-local-encryption.d13db9b",
|
|
33
|
+
"@dotsec/core-win32-x64-msvc": "5.0.0-feat-local-encryption.d13db9b",
|
|
34
|
+
"@dotsec/core-win32-arm64-msvc": "5.0.0-feat-local-encryption.d13db9b"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|