@aws-sdk/credential-provider-cognito-identity 3.972.30 → 3.972.32

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,6 @@
1
1
  'use strict';
2
2
 
3
- var propertyProvider = require('@smithy/property-provider');
3
+ var config = require('@smithy/core/config');
4
4
 
5
5
  function resolveLogins(logins) {
6
6
  return Promise.all(Object.keys(logins).reduce((arr, name) => {
@@ -45,13 +45,13 @@ function fromCognitoIdentity(parameters) {
45
45
  };
46
46
  }
47
47
  function throwOnMissingAccessKeyId(logger) {
48
- throw new propertyProvider.CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger });
48
+ throw new config.CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger });
49
49
  }
50
50
  function throwOnMissingCredentials(logger) {
51
- throw new propertyProvider.CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger });
51
+ throw new config.CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger });
52
52
  }
53
53
  function throwOnMissingSecretKey(logger) {
54
- throw new propertyProvider.CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger });
54
+ throw new config.CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger });
55
55
  }
56
56
 
57
57
  const STORE_NAME = "IdentityIds";
@@ -197,7 +197,7 @@ function fromCognitoIdentityPool({ accountId, cache = localStorage(), client, cl
197
197
  });
198
198
  }
199
199
  function throwOnMissingId(logger) {
200
- throw new propertyProvider.CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger });
200
+ throw new config.CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger });
201
201
  }
202
202
 
203
203
  exports.fromCognitoIdentity = fromCognitoIdentity;
@@ -1,9 +1,9 @@
1
- import { CredentialsProviderError } from "@smithy/property-provider";
1
+ import { CredentialsProviderError } from "@smithy/core/config";
2
2
  import { resolveLogins } from "./resolveLogins";
3
3
  export function fromCognitoIdentity(parameters) {
4
4
  return async (awsIdentityProperties) => {
5
5
  parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
6
- const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity");
6
+ const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity.js");
7
7
  const fromConfigs = (property) => parameters.clientConfig?.[property] ??
8
8
  parameters.parentClientConfig?.[property] ??
9
9
  awsIdentityProperties?.callerClientConfig?.[property];
@@ -1,4 +1,4 @@
1
- import { CredentialsProviderError } from "@smithy/property-provider";
1
+ import { CredentialsProviderError } from "@smithy/core/config";
2
2
  import { fromCognitoIdentity } from "./fromCognitoIdentity";
3
3
  import { localStorage } from "./localStorage";
4
4
  import { resolveLogins } from "./resolveLogins";
@@ -8,7 +8,7 @@ export function fromCognitoIdentityPool({ accountId, cache = localStorage(), cli
8
8
  ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}`
9
9
  : undefined;
10
10
  let provider = async (awsIdentityProperties) => {
11
- const { GetIdCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity");
11
+ const { GetIdCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity.js");
12
12
  const fromConfigs = (property) => clientConfig?.[property] ??
13
13
  parentClientConfig?.[property] ??
14
14
  awsIdentityProperties?.callerClientConfig?.[property];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-cognito-identity",
3
- "version": "3.972.30",
3
+ "version": "3.972.32",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline credential-provider-cognito-identity",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/nested-clients": "^3.997.5",
27
+ "@aws-sdk/nested-clients": "^3.997.7",
28
28
  "@aws-sdk/types": "^3.973.8",
29
- "@smithy/property-provider": "^4.2.14",
29
+ "@smithy/core": "^3.24.1",
30
30
  "@smithy/types": "^4.14.1",
31
31
  "tslib": "^2.6.2"
32
32
  },