serverless-kms-alias 5.0.3 → 5.0.5

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/index.cjs CHANGED
@@ -2,15 +2,9 @@
2
2
 
3
3
  const clientKms = require('@aws-sdk/client-kms');
4
4
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => {
8
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
- return value;
10
- };
11
5
  class KmsAliasPlugin {
6
+ configurationVariablesSources;
12
7
  constructor(serverless) {
13
- __publicField(this, "configurationVariablesSources");
14
8
  this.configurationVariablesSources = {
15
9
  kms: {
16
10
  async resolve({ address }) {
@@ -34,7 +28,7 @@ class KmsAliasPlugin {
34
28
  }
35
29
  serverless.cli.log(`Info: Fetching KMS key for alias: ${address}`);
36
30
  const client = new clientKms.KMSClient({
37
- ...serverless.providers.aws.getCredentials(),
31
+ credentials: serverless.providers.aws.getCredentials(),
38
32
  region: serverless.providers.aws.getRegion()
39
33
  });
40
34
  const command = new clientKms.DescribeKeyCommand({
package/dist/index.d.cts CHANGED
@@ -37,4 +37,4 @@ declare class KmsAliasPlugin {
37
37
  constructor(serverless: ServerlessInstance);
38
38
  }
39
39
 
40
- export { KmsAliasPlugin as default };
40
+ export = KmsAliasPlugin;
package/dist/index.d.ts CHANGED
@@ -37,4 +37,4 @@ declare class KmsAliasPlugin {
37
37
  constructor(serverless: ServerlessInstance);
38
38
  }
39
39
 
40
- export { KmsAliasPlugin as default };
40
+ export = KmsAliasPlugin;
package/dist/index.mjs CHANGED
@@ -1,14 +1,8 @@
1
1
  import { KMSClient, DescribeKeyCommand } from '@aws-sdk/client-kms';
2
2
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => {
6
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
- return value;
8
- };
9
3
  class KmsAliasPlugin {
4
+ configurationVariablesSources;
10
5
  constructor(serverless) {
11
- __publicField(this, "configurationVariablesSources");
12
6
  this.configurationVariablesSources = {
13
7
  kms: {
14
8
  async resolve({ address }) {
@@ -32,7 +26,7 @@ class KmsAliasPlugin {
32
26
  }
33
27
  serverless.cli.log(`Info: Fetching KMS key for alias: ${address}`);
34
28
  const client = new KMSClient({
35
- ...serverless.providers.aws.getCredentials(),
29
+ credentials: serverless.providers.aws.getCredentials(),
36
30
  region: serverless.providers.aws.getRegion()
37
31
  });
38
32
  const command = new DescribeKeyCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverless-kms-alias",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -53,21 +53,28 @@
53
53
  "node": ">= 18"
54
54
  },
55
55
  "dependencies": {
56
- "@aws-sdk/client-kms": "^3.699.0"
56
+ "@aws-sdk/client-kms": "^3.962.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/lodash": "4.17.13",
60
- "@types/serverless": "3.12.23",
61
- "eslint": "9.16.0",
62
- "eslint-config-decent": "2.2.3",
59
+ "@semantic-release/changelog": "6.0.3",
60
+ "@semantic-release/commit-analyzer": "13.0.1",
61
+ "@semantic-release/git": "10.0.1",
62
+ "@semantic-release/github": "12.0.2",
63
+ "@semantic-release/npm": "13.1.3",
64
+ "@semantic-release/release-notes-generator": "14.1.0",
65
+ "@types/lodash": "4.17.21",
66
+ "@types/serverless": "3.12.27",
67
+ "eslint": "9.39.2",
68
+ "eslint-config-decent": "3.1.87",
63
69
  "husky": "9.1.7",
64
- "lint-staged": "15.2.10",
65
- "markdownlint-cli": "0.43.0",
70
+ "lint-staged": "16.2.7",
71
+ "markdownlint-cli": "0.47.0",
66
72
  "npm-run-all": "4.1.5",
67
73
  "pinst": "3.0.0",
68
- "prettier": "3.4.1",
69
- "prettier-plugin-packagejson": "2.5.6",
70
- "typescript": "5.7.2",
71
- "unbuild": "2.0.0"
74
+ "prettier": "3.7.4",
75
+ "prettier-plugin-packagejson": "2.5.20",
76
+ "semantic-release": "25.0.2",
77
+ "typescript": "5.9.3",
78
+ "unbuild": "3.6.1"
72
79
  }
73
80
  }
package/src/index.ts CHANGED
@@ -46,7 +46,7 @@ class KmsAliasPlugin {
46
46
  serverless.cli.log(`Info: Fetching KMS key for alias: ${address}`);
47
47
 
48
48
  const client = new KMSClient({
49
- ...serverless.providers.aws.getCredentials(),
49
+ credentials: serverless.providers.aws.getCredentials(),
50
50
  region: serverless.providers.aws.getRegion(),
51
51
  });
52
52
  const command = new DescribeKeyCommand({