@adonis-agora/authkit-vault-gcp 0.3.0 → 0.3.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/build/src/vault.js +9 -4
- package/package.json +5 -5
package/build/src/vault.js
CHANGED
|
@@ -29,10 +29,15 @@ function makeGcpBackend(cfg) {
|
|
|
29
29
|
// o specifier não é resolvido em build-time pelo tsc.
|
|
30
30
|
const spec = '@google-cloud/secret-manager';
|
|
31
31
|
let clientP;
|
|
32
|
-
const client = async () =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const client = async () => {
|
|
33
|
+
if (!clientP) {
|
|
34
|
+
clientP = (async () => {
|
|
35
|
+
const s = await import(__rewriteRelativeImportExtension(spec));
|
|
36
|
+
return new s.SecretManagerServiceClient();
|
|
37
|
+
})();
|
|
38
|
+
}
|
|
39
|
+
return clientP;
|
|
40
|
+
};
|
|
36
41
|
return {
|
|
37
42
|
async get() {
|
|
38
43
|
const c = await client();
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/authkit-vault-gcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "GCP Secret Manager keystore vault for the AuthKit JWKS keystore (createKeystoreVault).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dudousxd",
|
|
7
|
-
"homepage": "https://github.com/DavideCarvalho/adonis-authkit/tree/main/packages/authkit-vault-gcp#readme",
|
|
7
|
+
"homepage": "https://github.com/DavideCarvalho/adonis-agora-authkit/tree/main/packages/authkit-vault-gcp#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/DavideCarvalho/adonis-authkit.git",
|
|
10
|
+
"url": "https://github.com/DavideCarvalho/adonis-agora-authkit.git",
|
|
11
11
|
"directory": "packages/authkit-vault-gcp"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/DavideCarvalho/adonis-authkit/issues"
|
|
14
|
+
"url": "https://github.com/DavideCarvalho/adonis-agora-authkit/issues"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"adonisjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsc",
|
|
55
|
-
"typecheck": "tsc --noEmit",
|
|
55
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json",
|
|
56
56
|
"test": "node --import=@poppinss/ts-exec bin/test.ts"
|
|
57
57
|
}
|
|
58
58
|
}
|