serverless-vpc-discovery 5.0.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -185,8 +185,8 @@ To run integration tests, set an environment variable TEST\_VPC\_NAME to the VPC
185
185
  ```
186
186
  export AWS_PROFILE=your_profile
187
187
  export TEST_VPC_NAME=vpc_name
188
- npm run build
189
- npm run integration-test
188
+ npx npm run build
189
+ npx npm run integration-test
190
190
  ```
191
191
 
192
192
  If there is an error build and install the node\_module inside the serverless-vpc-discovery folder:
package/dist/src/utils.js CHANGED
@@ -9,7 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getValueFromTags = exports.wildcardMatches = exports.isObjectEmpty = exports.getAWSPagedResults = exports.sleep = void 0;
12
+ exports.sleep = sleep;
13
+ exports.getAWSPagedResults = getAWSPagedResults;
14
+ exports.isObjectEmpty = isObjectEmpty;
15
+ exports.wildcardMatches = wildcardMatches;
16
+ exports.getValueFromTags = getValueFromTags;
13
17
  /**
14
18
  * Iterate through the pages of a AWS SDK response and collect them into a single array
15
19
  *
@@ -32,7 +36,6 @@ function getAWSPagedResults(client, resultsKey, nextTokenKey, nextRequestTokenKe
32
36
  return results;
33
37
  });
34
38
  }
35
- exports.getAWSPagedResults = getAWSPagedResults;
36
39
  /**
37
40
  * Stops event thread execution for given number of seconds.
38
41
  * @param seconds
@@ -43,11 +46,9 @@ function sleep(seconds) {
43
46
  return new Promise((resolve) => setTimeout(resolve, 1000 * seconds));
44
47
  });
45
48
  }
46
- exports.sleep = sleep;
47
49
  function isObjectEmpty(value) {
48
50
  return Object.keys(value).length === 0;
49
51
  }
50
- exports.isObjectEmpty = isObjectEmpty;
51
52
  function replaceAll(input, search, replace) {
52
53
  return input.split(search).join(replace);
53
54
  }
@@ -57,7 +58,6 @@ function wildcardMatches(inputArn, actualArn) {
57
58
  const inputArnRegex = new RegExp(`^${inputArnRegexStr}$`);
58
59
  return inputArnRegex.test(actualArn);
59
60
  }
60
- exports.wildcardMatches = wildcardMatches;
61
61
  function getValueFromTags(tags, tagKey) {
62
62
  const tagItem = tags.find((tag) => tag.Key === tagKey);
63
63
  if (tagItem) {
@@ -65,4 +65,3 @@ function getValueFromTags(tags, tagKey) {
65
65
  }
66
66
  return null;
67
67
  }
68
- exports.getValueFromTags = getValueFromTags;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateVPCDiscoveryConfig = void 0;
3
+ exports.validateVPCDiscoveryConfig = validateVPCDiscoveryConfig;
4
4
  /**
5
5
  * Validate vpc discovery subnets config
6
6
  * @param subnets - the `SubnetItem` options
@@ -61,4 +61,3 @@ function validateVPCDiscoveryConfig(vpcDiscovery) {
61
61
  validateVPCSecurityGroups(vpcDiscovery.securityGroups);
62
62
  }
63
63
  }
64
- exports.validateVPCDiscoveryConfig = validateVPCDiscoveryConfig;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "serverless-vpc-discovery",
3
- "version": "5.0.2",
3
+ "version": "6.0.0",
4
4
  "engines": {
5
- "node": ">=14"
5
+ "node": ">=16"
6
6
  },
7
7
  "description": "Serverless Plugin to modify VPC values",
8
8
  "author": "Amplify Education Inc",
@@ -49,39 +49,40 @@
49
49
  ]
50
50
  },
51
51
  "devDependencies": {
52
- "@aws-sdk/client-lambda": "^3.465.0",
52
+ "@aws-sdk/client-lambda": "^3.696.0",
53
+ "@types/chai": "^5.0.1",
54
+ "@types/chai-spies": "^1.0.6",
53
55
  "@types/js-yaml": "^4.0.9",
54
- "@types/mocha": "^10.0.6",
55
- "@types/node": "^20.10.3",
56
- "@types/randomstring": "^1.1.11",
56
+ "@types/mocha": "^10.0.9",
57
+ "@types/node": "^22.9.1",
58
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
59
+ "@types/randomstring": "^1.3.0",
57
60
  "@types/shelljs": "^0.8.15",
58
- "@typescript-eslint/eslint-plugin": "^5.62.0",
59
- "@typescript-eslint/parser": "^5.62.0",
60
- "aws-sdk-client-mock": "^3.0.0",
61
- "chai": "^4.3.10",
61
+ "aws-sdk-client-mock": "^4.1.0",
62
+ "chai": "^4.5.0",
62
63
  "chai-spies": "^1.1.0",
63
- "eslint": "^7.32.0",
64
- "eslint-config-standard": "^16.0.3",
65
- "eslint-plugin-import": "^2.29.0",
64
+ "eslint": "^8.57.1",
65
+ "eslint-config-standard": "^17.1.0",
66
+ "eslint-plugin-import": "^2.31.0",
66
67
  "eslint-plugin-node": "^11.1.0",
67
- "eslint-plugin-promise": "^5.2.0",
68
+ "eslint-plugin-promise": "^6.6.0",
68
69
  "js-yaml": "^4.1.0",
69
- "mocha": "^10.2.0",
70
+ "mocha": "^10.8.2",
70
71
  "mocha-param": "^2.0.1",
71
- "nyc": "^15.1.0",
72
+ "nyc": "^17.1.0",
72
73
  "randomstring": "^1.3.0",
73
- "serverless": "^3.38.0",
74
+ "serverless": "^4.4.11",
74
75
  "shelljs": "^0.8.5",
75
- "ts-node": "^10.9.1",
76
- "typescript": "5.1.6"
76
+ "ts-node": "^10.9.2",
77
+ "typescript": "^5.6.3"
77
78
  },
78
79
  "dependencies": {
79
- "@aws-sdk/client-ec2": "^3.467.0",
80
- "@aws-sdk/credential-providers": "^3.495.0",
81
- "@smithy/config-resolver": "^2.1.0",
82
- "@smithy/node-config-provider": "^2.2.0",
83
- "@smithy/smithy-client": "^2.1.18",
84
- "@smithy/util-retry": "^2.0.8",
80
+ "@aws-sdk/client-ec2": "^3.696.0",
81
+ "@aws-sdk/credential-providers": "^3.696.0",
82
+ "@smithy/config-resolver": "^3.0.12",
83
+ "@smithy/node-config-provider": "^3.1.11",
84
+ "@smithy/smithy-client": "^3.4.4",
85
+ "@smithy/util-retry": "^3.0.10",
85
86
  "ts-md5": "^1.3.1"
86
87
  }
87
88
  }