@aws-sdk/credential-provider-cognito-identity 3.972.45 → 3.972.46

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,6 +1,4 @@
1
- 'use strict';
2
-
3
- var config = require('@smithy/core/config');
1
+ const { CredentialsProviderError } = require("@smithy/core/config");
4
2
 
5
3
  function resolveLogins(logins) {
6
4
  return Promise.all(Object.keys(logins).reduce((arr, name) => {
@@ -21,7 +19,7 @@ function resolveLogins(logins) {
21
19
  function fromCognitoIdentity(parameters) {
22
20
  return async (awsIdentityProperties) => {
23
21
  parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
24
- const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = await Promise.resolve().then(function () { return require('./loadCognitoIdentity-C-kPrLZ4.js'); });
22
+ const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = require('./loadCognitoIdentity-v413cIIq.js');
25
23
  const fromConfigs = (property) => parameters.clientConfig?.[property] ??
26
24
  parameters.parentClientConfig?.[property] ??
27
25
  awsIdentityProperties?.callerClientConfig?.[property];
@@ -45,13 +43,13 @@ function fromCognitoIdentity(parameters) {
45
43
  };
46
44
  }
47
45
  function throwOnMissingAccessKeyId(logger) {
48
- throw new config.CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger });
46
+ throw new CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger });
49
47
  }
50
48
  function throwOnMissingCredentials(logger) {
51
- throw new config.CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger });
49
+ throw new CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger });
52
50
  }
53
51
  function throwOnMissingSecretKey(logger) {
54
- throw new config.CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger });
52
+ throw new CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger });
55
53
  }
56
54
 
57
55
  const STORE_NAME = "IdentityIds";
@@ -159,7 +157,7 @@ function fromCognitoIdentityPool({ accountId, cache = localStorage(), client, cl
159
157
  ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}`
160
158
  : undefined;
161
159
  let provider = async (awsIdentityProperties) => {
162
- const { GetIdCommand, CognitoIdentityClient } = await Promise.resolve().then(function () { return require('./loadCognitoIdentity-C-kPrLZ4.js'); });
160
+ const { GetIdCommand, CognitoIdentityClient } = require('./loadCognitoIdentity-v413cIIq.js');
163
161
  const fromConfigs = (property) => clientConfig?.[property] ??
164
162
  parentClientConfig?.[property] ??
165
163
  awsIdentityProperties?.callerClientConfig?.[property];
@@ -197,7 +195,7 @@ function fromCognitoIdentityPool({ accountId, cache = localStorage(), client, cl
197
195
  });
198
196
  }
199
197
  function throwOnMissingId(logger) {
200
- throw new config.CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger });
198
+ throw new CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger });
201
199
  }
202
200
 
203
201
  exports.fromCognitoIdentity = fromCognitoIdentity;
@@ -0,0 +1,4 @@
1
+ const { CognitoIdentityClient, GetCredentialsForIdentityCommand, GetIdCommand } = require("@aws-sdk/nested-clients/cognito-identity");
2
+ exports.CognitoIdentityClient = CognitoIdentityClient;
3
+ exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
4
+ exports.GetIdCommand = GetIdCommand;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-cognito-identity",
3
- "version": "3.972.45",
3
+ "version": "3.972.46",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "yarn g:vitest run && yarn test:browser",
13
13
  "test:watch": "yarn g:vitest watch",
14
14
  "test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/nested-clients": "^3.997.20",
28
- "@aws-sdk/types": "^3.973.12",
27
+ "@aws-sdk/nested-clients": "^3.997.21",
28
+ "@aws-sdk/types": "^3.973.13",
29
29
  "@smithy/core": "^3.24.6",
30
30
  "@smithy/types": "^4.14.3",
31
31
  "tslib": "^2.6.2"
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var cognitoIdentity = require('@aws-sdk/nested-clients/cognito-identity');
4
-
5
-
6
-
7
- exports.CognitoIdentityClient = cognitoIdentity.CognitoIdentityClient;
8
- exports.GetCredentialsForIdentityCommand = cognitoIdentity.GetCredentialsForIdentityCommand;
9
- exports.GetIdCommand = cognitoIdentity.GetIdCommand;