@updating-secrets/infisical-adapter 1.1.1 → 1.2.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/infisical.adapter.js +9 -4
- package/package.json +10 -10
|
@@ -58,7 +58,7 @@ export class InfisicalAdapter extends BaseSecretsAdapter {
|
|
|
58
58
|
}
|
|
59
59
|
if (infisicalConfig.keyInFolder) {
|
|
60
60
|
if (check.isString(folderValue)) {
|
|
61
|
-
throw new TypeError(
|
|
61
|
+
throw new TypeError('Cannot get keyInFolder of a non-folder.');
|
|
62
62
|
}
|
|
63
63
|
else if (check.hasKey(folderValue, infisicalConfig.keyInFolder)) {
|
|
64
64
|
const value = folderValue[infisicalConfig.keyInFolder];
|
|
@@ -103,7 +103,10 @@ function mapInfisicalSecrets(secrets) {
|
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
105
|
setNested(secretsMap, removeSuffix({
|
|
106
|
-
value: removePrefix({
|
|
106
|
+
value: removePrefix({
|
|
107
|
+
value: secret.secretPath,
|
|
108
|
+
prefix: '/',
|
|
109
|
+
}),
|
|
107
110
|
suffix: '/',
|
|
108
111
|
})
|
|
109
112
|
.split('/')
|
|
@@ -131,7 +134,9 @@ export function getNested(parent, keys) {
|
|
|
131
134
|
}
|
|
132
135
|
if (keys.length > 1) {
|
|
133
136
|
if (check.isString(nextParent)) {
|
|
134
|
-
throw new TypeError(`Keys still remain but received string value: ${stringify({
|
|
137
|
+
throw new TypeError(`Keys still remain but received string value: ${stringify({
|
|
138
|
+
keys,
|
|
139
|
+
})}`);
|
|
135
140
|
}
|
|
136
141
|
return getNested(nextParent, keys.slice(1));
|
|
137
142
|
}
|
|
@@ -149,7 +154,7 @@ export function setNested(parent, keys, value) {
|
|
|
149
154
|
if (nextKey == undefined) {
|
|
150
155
|
throw new Error('Invalid key or ran out of keys.');
|
|
151
156
|
}
|
|
152
|
-
if (keys.length === 1) {
|
|
157
|
+
else if (keys.length === 1) {
|
|
153
158
|
parent[nextKey] = value;
|
|
154
159
|
return;
|
|
155
160
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updating-secrets/infisical-adapter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Infisical adapter for the updating-secrets package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"secrets",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"test:update": "npm test update"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@augment-vir/assert": "^31.
|
|
42
|
-
"@augment-vir/common": "^31.
|
|
43
|
-
"@infisical/sdk": "^
|
|
44
|
-
"type-fest": "^5.
|
|
45
|
-
"updating-secrets": "^1.
|
|
41
|
+
"@augment-vir/assert": "^31.69.0",
|
|
42
|
+
"@augment-vir/common": "^31.69.0",
|
|
43
|
+
"@infisical/sdk": "^5.0.2",
|
|
44
|
+
"type-fest": "^5.6.0",
|
|
45
|
+
"updating-secrets": "^1.2.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@augment-vir/test": "^31.
|
|
49
|
-
"@types/node": "^25.0
|
|
50
|
-
"c8": "^
|
|
48
|
+
"@augment-vir/test": "^31.69.0",
|
|
49
|
+
"@types/node": "^25.6.0",
|
|
50
|
+
"c8": "^11.0.0",
|
|
51
51
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
52
|
-
"object-shape-tester": "^6.
|
|
52
|
+
"object-shape-tester": "^6.12.1"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=22"
|