@aws-sdk/credential-provider-env 3.972.46 → 3.972.47

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
@@ -1,7 +1,5 @@
1
- 'use strict';
2
-
3
- var client = require('@aws-sdk/core/client');
4
- var config = require('@smithy/core/config');
1
+ const { setCredentialFeature } = require("@aws-sdk/core/client");
2
+ const { CredentialsProviderError } = require("@smithy/core/config");
5
3
 
6
4
  const ENV_KEY = "AWS_ACCESS_KEY_ID";
7
5
  const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
@@ -26,10 +24,10 @@ const fromEnv = (init) => async () => {
26
24
  ...(credentialScope && { credentialScope }),
27
25
  ...(accountId && { accountId }),
28
26
  };
29
- client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
27
+ setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
30
28
  return credentials;
31
29
  }
32
- throw new config.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
30
+ throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
33
31
  };
34
32
 
35
33
  exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.46",
3
+ "version": "3.972.47",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
9
  "build:cjs": "node ../../scripts/compilation/inline",
10
- "build:es": "tsc -p tsconfig.es.json",
10
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
- "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.20",
30
- "@aws-sdk/types": "^3.973.12",
29
+ "@aws-sdk/core": "^3.974.21",
30
+ "@aws-sdk/types": "^3.973.13",
31
31
  "@smithy/core": "^3.24.6",
32
32
  "@smithy/types": "^4.14.3",
33
33
  "tslib": "^2.6.2"