@aws-sdk/ec2-metadata-service 3.750.0 → 3.768.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/dist-cjs/index.js CHANGED
@@ -19,11 +19,11 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  MetadataService: () => MetadataService
25
25
  });
26
- module.exports = __toCommonJS(src_exports);
26
+ module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // src/MetadataService.ts
29
29
  var import_node_config_provider = require("@smithy/node-config-provider");
@@ -35,22 +35,22 @@ var import_util_stream = require("@smithy/util-stream");
35
35
  var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
36
36
  var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
37
37
  var ENDPOINT_SELECTORS = {
38
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],
39
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
38
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
39
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
40
40
  default: "http://169.254.169.254" /* IPv4 */
41
41
  };
42
42
  var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
43
43
  var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
44
44
  var ENDPOINT_MODE_SELECTORS = {
45
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],
46
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
45
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
46
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
47
47
  default: "IPv4" /* IPv4 */
48
48
  };
49
49
  var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
50
50
  var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
51
51
  var IMDSv1_DISABLED_SELECTORS = {
52
- environmentVariableSelector: (env) => env[AWS_EC2_METADATA_V1_DISABLED] ? env[AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0,
53
- configFileSelector: (profile) => profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] ? profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0,
52
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[AWS_EC2_METADATA_V1_DISABLED] ? env[AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0, "environmentVariableSelector"),
53
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] ? profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0, "configFileSelector"),
54
54
  default: false
55
55
  };
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/ec2-metadata-service",
3
- "version": "3.750.0",
3
+ "version": "3.768.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline ec2-metadata-service",
@@ -25,14 +25,14 @@
25
25
  "dependencies": {
26
26
  "@aws-sdk/types": "3.734.0",
27
27
  "@smithy/node-config-provider": "^4.0.1",
28
- "@smithy/node-http-handler": "^4.0.2",
28
+ "@smithy/node-http-handler": "^4.0.3",
29
29
  "@smithy/protocol-http": "^5.0.1",
30
30
  "@smithy/types": "^4.1.0",
31
- "@smithy/util-stream": "^4.1.1",
31
+ "@smithy/util-stream": "^4.1.2",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@aws-sdk/credential-providers": "3.750.0",
35
+ "@aws-sdk/credential-providers": "3.768.0",
36
36
  "@tsconfig/recommended": "1.0.1",
37
37
  "@types/node": "^18.19.69",
38
38
  "concurrently": "7.0.0",