@confconf/aws-secrets-manager
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -7,9 +7,5 @@ "use strict"; | ||
constructor(opts) { | ||
// private readonly structure?: ConfigStructureRoot; | ||
// constructor(opts: AwsSecretsManagerProviderOptsStructure); | ||
// constructor(opts: AwsSecretsManagerProviderOptsSecret | AwsSecretsManagerProviderOptsStructure) { | ||
this.client = opts.client; | ||
this.secretToLoad = opts.secretToLoad; | ||
} | ||
// this.structure = (opts as AwsSecretsManagerProviderOptsStructure).structure; | ||
async load() { | ||
@@ -20,5 +16,2 @@ if (this.secretToLoad) { | ||
return {}; | ||
// if (this.structure) { | ||
// return await this.loadIntoStructure(this.structure); | ||
// } | ||
} | ||
@@ -42,9 +35,4 @@ async loadSingleSecret(secret) { | ||
exports.AwsSecretsManagerProvider = AwsSecretsManagerProvider; | ||
// private async loadIntoStructure(structure: ConfigStructureRoot) { | ||
// const secretsToLoad = traverse.reduce(structure, (acc, value) => { | ||
// if (val) | ||
// }, []) | ||
// } | ||
const awsSecretsManagerConfig = (opts) => new AwsSecretsManagerProvider(opts); | ||
exports.awsSecretsManagerConfig = awsSecretsManagerConfig; | ||
//# sourceMappingURL=awsSecretsManagerProvider.js.map |
{ | ||
"name": "@confconf/aws-secrets-manager", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "AWS Secrets Manager provider for confconf", | ||
@@ -35,2 +35,4 @@ "keywords": [ | ||
"scripts": { | ||
"build": "tsc -p .", | ||
"clean": "rimraf dist && rm -f tsconfig.ref.tsbuildinfo", | ||
"test": "jest", | ||
@@ -42,3 +44,3 @@ "test:ci": "jest --ci", | ||
"@aws-sdk/client-secrets-manager": "^3.40.0", | ||
"@confconf/confconf": "^1.1.1" | ||
"@confconf/confconf": "^2.0.0" | ||
}, | ||
@@ -49,3 +51,6 @@ "license": "MIT", | ||
}, | ||
"homepage": "https://github.com/tomi/confconf/tree/main/packages/aws-secrets-manager" | ||
"homepage": "https://github.com/tomi/confconf/tree/main/packages/aws-secrets-manager", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10480
104