@adonis-agora/authkit-vault-azure 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/build/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { createKeystoreVault } from './src/vault.js';
2
1
  export type { KeystoreVaultLike, SecretBackend } from './src/vault.js';
2
+ export { createKeystoreVault } from './src/vault.js';
@@ -30,11 +30,16 @@ function makeAzureBackend(cfg) {
30
30
  const kvSpec = '@azure/keyvault-secrets';
31
31
  const idSpec = '@azure/identity';
32
32
  let clientP;
33
- const client = async () => (clientP ??= (async () => {
34
- const kv = await import(__rewriteRelativeImportExtension(kvSpec));
35
- const id = await import(__rewriteRelativeImportExtension(idSpec));
36
- return new kv.SecretClient(cfg.vaultUrl, new id.DefaultAzureCredential());
37
- })());
33
+ const client = async () => {
34
+ if (!clientP) {
35
+ clientP = (async () => {
36
+ const kv = await import(__rewriteRelativeImportExtension(kvSpec));
37
+ const id = await import(__rewriteRelativeImportExtension(idSpec));
38
+ return new kv.SecretClient(cfg.vaultUrl, new id.DefaultAzureCredential());
39
+ })();
40
+ }
41
+ return clientP;
42
+ };
38
43
  return {
39
44
  async get() {
40
45
  const c = await client();
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@adonis-agora/authkit-vault-azure",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Azure Key Vault 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-azure#readme",
8
7
  "repository": {
9
8
  "type": "git",
10
- "url": "https://github.com/DavideCarvalho/adonis-authkit.git",
9
+ "url": "https://github.com/DavideCarvalho/adonis-agora-authkit.git",
11
10
  "directory": "packages/authkit-vault-azure"
12
11
  },
12
+ "homepage": "https://davidecarvalho.github.io/agora/docs/authkit",
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",
@@ -34,6 +34,9 @@
34
34
  ".": "./build/index.js",
35
35
  "./types": "./build/index.js"
36
36
  },
37
+ "engines": {
38
+ "node": ">=24"
39
+ },
37
40
  "peerDependencies": {
38
41
  "@azure/keyvault-secrets": ">=4",
39
42
  "@azure/identity": ">=4"
@@ -51,12 +54,12 @@
51
54
  "@japa/assert": "4.2.0",
52
55
  "@japa/runner": "5.3.0",
53
56
  "@poppinss/ts-exec": "1.4.4",
54
- "@types/node": "25.9.1",
55
- "typescript": "6.0.3"
57
+ "@types/node": "26.5.1",
58
+ "typescript": "7.0.2"
56
59
  },
57
60
  "scripts": {
58
61
  "build": "tsc",
59
- "typecheck": "tsc --noEmit",
62
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json",
60
63
  "test": "node --import=@poppinss/ts-exec bin/test.ts"
61
64
  }
62
65
  }