Socket
Socket
Sign inDemoInstall

@smithy/credential-provider-imds

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/credential-provider-imds - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

12

dist-cjs/index.js

@@ -28,2 +28,3 @@ var __defProp = Object.defineProperty;

ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,
Endpoint: () => Endpoint,
fromContainerMetadata: () => fromContainerMetadata,

@@ -201,2 +202,9 @@ fromInstanceMetadata: () => fromInstanceMetadata,

// src/config/Endpoint.ts
var Endpoint = /* @__PURE__ */ ((Endpoint2) => {
Endpoint2["IPv4"] = "http://169.254.169.254";
Endpoint2["IPv6"] = "http://[fd00:ec2::254]";
return Endpoint2;
})(Endpoint || {});
// src/config/EndpointConfigOptions.ts

@@ -250,3 +258,4 @@ var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";

logger.warn(
"Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + STATIC_STABILITY_DOC_URL
`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
For more information, please visit: ` + STATIC_STABILITY_DOC_URL
);

@@ -421,2 +430,3 @@ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;

getInstanceMetadataEndpoint,
Endpoint,
ENV_CMDS_FULL_URI,

@@ -423,0 +433,0 @@ ENV_CMDS_RELATIVE_URI,

@@ -7,1 +7,2 @@ export * from "./fromContainerMetadata";

export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint";
export { Endpoint } from "./config/Endpoint";

2

dist-es/utils/getExtendedInstanceMetadataCredentials.js

@@ -9,3 +9,3 @@ const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;

logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " +
`credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
STATIC_STABILITY_DOC_URL);

@@ -12,0 +12,0 @@ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;

@@ -25,1 +25,5 @@ /**

export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint";
/**
* @internal
*/
export { Endpoint } from "./config/Endpoint";

@@ -25,1 +25,5 @@ /**

export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint";
/**
* @internal
*/
export { Endpoint } from "./config/Endpoint";
{
"name": "@smithy/credential-provider-imds",
"version": "2.2.4",
"version": "2.2.5",
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",

@@ -5,0 +5,0 @@ "main": "./dist-cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc