@aws-sdk/token-providers 3.997.0 → 3.999.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
@@ -4,7 +4,7 @@ var client = require('@aws-sdk/core/client');
4
4
  var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
5
5
  var propertyProvider = require('@smithy/property-provider');
6
6
  var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
7
- var fs = require('fs');
7
+ var node_fs = require('node:fs');
8
8
 
9
9
  const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
10
10
  logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
@@ -57,7 +57,7 @@ const validateTokenKey = (key, value, forRefresh = false) => {
57
57
  }
58
58
  };
59
59
 
60
- const { writeFile } = fs.promises;
60
+ const { writeFile } = node_fs.promises;
61
61
  const writeSSOTokenToFile = (id, ssoToken) => {
62
62
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
63
63
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -1,5 +1,5 @@
1
1
  import { getSSOTokenFilepath } from "@smithy/shared-ini-file-loader";
2
- import { promises as fsPromises } from "fs";
2
+ import { promises as fsPromises } from "node:fs";
3
3
  const { writeFile } = fsPromises;
4
4
  export const writeSSOTokenToFile = (id, ssoToken) => {
5
5
  const tokenFilepath = getSSOTokenFilepath(id);
@@ -1,5 +1,5 @@
1
- import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
2
- import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
1
+ import type { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
2
+ import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
3
  export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {
4
4
  /**
5
5
  * @see SSOOIDCClientConfig in \@aws-sdk/client-sso-oidc.
@@ -1,4 +1,4 @@
1
- import { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
1
+ import type { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
2
2
  export interface FromStaticInit extends CredentialProviderOptions {
3
3
  token?: TokenIdentity;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import type { AwsIdentityProperties } from "@aws-sdk/types";
2
- import { SSOToken } from "@smithy/shared-ini-file-loader";
3
- import { FromSsoInit } from "./fromSso";
2
+ import type { SSOToken } from "@smithy/shared-ini-file-loader";
3
+ import type { FromSsoInit } from "./fromSso";
4
4
  /**
5
5
  * Returns a new SSO OIDC token from SSOOIDC::createToken() API call.
6
6
  * @internal
@@ -1,5 +1,5 @@
1
1
  import type { AwsIdentityProperties } from "@aws-sdk/types";
2
- import { FromSsoInit } from "./fromSso";
2
+ import type { FromSsoInit } from "./fromSso";
3
3
  /**
4
4
  * Returns a SSOOIDC client for the given region.
5
5
  * @internal
@@ -1,5 +1,5 @@
1
- import { TokenIdentityProvider } from "@aws-sdk/types";
2
- import { FromSsoInit } from "./fromSso";
1
+ import type { TokenIdentityProvider } from "@aws-sdk/types";
2
+ import type { FromSsoInit } from "./fromSso";
3
3
  /**
4
4
  * Creates a token provider that will attempt to find token from the
5
5
  * following sources (listed in order of precedence):
@@ -1,4 +1,4 @@
1
- import { TokenIdentity } from "@aws-sdk/types";
1
+ import type { TokenIdentity } from "@aws-sdk/types";
2
2
  /**
3
3
  * Throws TokenProviderError is token is expired.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { SSOToken } from "@smithy/shared-ini-file-loader";
1
+ import type { SSOToken } from "@smithy/shared-ini-file-loader";
2
2
  /**
3
3
  * Writes SSO token to file based on filepath computed from ssoStartUrl or session name.
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.997.0",
3
+ "version": "3.999.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "^3.973.13",
33
- "@aws-sdk/nested-clients": "^3.996.1",
34
- "@aws-sdk/types": "^3.973.2",
35
- "@smithy/property-provider": "^4.2.9",
36
- "@smithy/shared-ini-file-loader": "^4.4.4",
37
- "@smithy/types": "^4.12.1",
32
+ "@aws-sdk/core": "^3.973.15",
33
+ "@aws-sdk/nested-clients": "^3.996.3",
34
+ "@aws-sdk/types": "^3.973.4",
35
+ "@smithy/property-provider": "^4.2.10",
36
+ "@smithy/shared-ini-file-loader": "^4.4.5",
37
+ "@smithy/types": "^4.13.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {