@aws-sdk/credential-provider-cognito-identity 3.169.0 → 3.170.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/credential-provider-cognito-identity
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/credential-provider-cognito-identity
@@ -1,10 +1,9 @@
1
- import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
2
- import { Logins } from "./Logins";
3
- export interface CognitoProviderParameters {
4
-
5
- client: CognitoIdentityClient;
6
-
7
- customRoleArn?: string;
8
-
9
- logins?: Logins;
10
- }
1
+ import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
2
+ import { Logins } from "./Logins";
3
+ export interface CognitoProviderParameters {
4
+ client: CognitoIdentityClient;
5
+
6
+ customRoleArn?: string;
7
+
8
+ logins?: Logins;
9
+ }
@@ -1,8 +1,8 @@
1
- import { Storage } from "./Storage";
2
- export declare class InMemoryStorage implements Storage {
3
- private store;
4
- constructor(store?: Record<string, string>);
5
- getItem(key: string): string | null;
6
- removeItem(key: string): void;
7
- setItem(key: string, value: string): void;
8
- }
1
+ import { Storage } from "./Storage";
2
+ export declare class InMemoryStorage implements Storage {
3
+ private store;
4
+ constructor(store?: Record<string, string>);
5
+ getItem(key: string): string | null;
6
+ removeItem(key: string): void;
7
+ setItem(key: string, value: string): void;
8
+ }
@@ -1,10 +1,10 @@
1
- import { Storage } from "./Storage";
2
- export declare class IndexedDbStorage implements Storage {
3
- private readonly dbName;
4
- constructor(dbName?: string);
5
- getItem(key: string): Promise<string | null>;
6
- removeItem(key: string): Promise<void>;
7
- setItem(id: string, value: string): Promise<void>;
8
- private getDb;
9
- private withObjectStore;
10
- }
1
+ import { Storage } from "./Storage";
2
+ export declare class IndexedDbStorage implements Storage {
3
+ private readonly dbName;
4
+ constructor(dbName?: string);
5
+ getItem(key: string): Promise<string | null>;
6
+ removeItem(key: string): Promise<void>;
7
+ setItem(id: string, value: string): Promise<void>;
8
+ private getDb;
9
+ private withObjectStore;
10
+ }
@@ -1,3 +1,3 @@
1
- import { Provider } from "@aws-sdk/types";
2
- export declare type Logins = Record<string, string | Provider<string>>;
3
- export declare type ResolvedLogins = Record<string, string>;
1
+ import { Provider } from "@aws-sdk/types";
2
+ export declare type Logins = Record<string, string | Provider<string>>;
3
+ export declare type ResolvedLogins = Record<string, string>;
@@ -1,6 +1,5 @@
1
-
2
- export interface Storage {
3
- getItem(key: string): string | null | Promise<string | null>;
4
- removeItem(key: string): void | Promise<void>;
5
- setItem(key: string, data: string): void | Promise<void>;
6
- }
1
+ export interface Storage {
2
+ getItem(key: string): string | null | Promise<string | null>;
3
+ removeItem(key: string): void | Promise<void>;
4
+ setItem(key: string, data: string): void | Promise<void>;
5
+ }
@@ -1,13 +1,15 @@
1
- import { Credentials, Provider } from "@aws-sdk/types";
2
- import { CognitoProviderParameters } from "./CognitoProviderParameters";
3
- export interface CognitoIdentityCredentials extends Credentials {
4
-
5
- identityId: string;
6
- }
7
- export declare type CognitoIdentityCredentialProvider = Provider<CognitoIdentityCredentials>;
8
-
9
- export declare function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider;
10
- export interface FromCognitoIdentityParameters extends CognitoProviderParameters {
11
-
12
- identityId: string;
13
- }
1
+ import { Credentials, Provider } from "@aws-sdk/types";
2
+ import { CognitoProviderParameters } from "./CognitoProviderParameters";
3
+ export interface CognitoIdentityCredentials extends Credentials {
4
+ identityId: string;
5
+ }
6
+ export declare type CognitoIdentityCredentialProvider =
7
+ Provider<CognitoIdentityCredentials>;
8
+
9
+ export declare function fromCognitoIdentity(
10
+ parameters: FromCognitoIdentityParameters
11
+ ): CognitoIdentityCredentialProvider;
12
+ export interface FromCognitoIdentityParameters
13
+ extends CognitoProviderParameters {
14
+ identityId: string;
15
+ }
@@ -1,15 +1,23 @@
1
- import { CognitoProviderParameters } from "./CognitoProviderParameters";
2
- import { CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
3
- import { Storage } from "./Storage";
4
-
5
- export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier, }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider;
6
- export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters {
7
-
8
- accountId?: string;
9
-
10
- cache?: Storage;
11
-
12
- identityPoolId: string;
13
-
14
- userIdentifier?: string;
15
- }
1
+ import { CognitoProviderParameters } from "./CognitoProviderParameters";
2
+ import { CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
3
+ import { Storage } from "./Storage";
4
+
5
+ export declare function fromCognitoIdentityPool({
6
+ accountId,
7
+ cache,
8
+ client,
9
+ customRoleArn,
10
+ identityPoolId,
11
+ logins,
12
+ userIdentifier,
13
+ }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider;
14
+ export interface FromCognitoIdentityPoolParameters
15
+ extends CognitoProviderParameters {
16
+ accountId?: string;
17
+
18
+ cache?: Storage;
19
+
20
+ identityPoolId: string;
21
+
22
+ userIdentifier?: string;
23
+ }
@@ -1,5 +1,5 @@
1
- export * from "./CognitoProviderParameters";
2
- export * from "./Logins";
3
- export * from "./Storage";
4
- export * from "./fromCognitoIdentity";
5
- export * from "./fromCognitoIdentityPool";
1
+ export * from "./CognitoProviderParameters";
2
+ export * from "./Logins";
3
+ export * from "./Storage";
4
+ export * from "./fromCognitoIdentity";
5
+ export * from "./fromCognitoIdentityPool";
@@ -1,2 +1,2 @@
1
- import { Storage } from "./Storage";
2
- export declare function localStorage(): Storage;
1
+ import { Storage } from "./Storage";
2
+ export declare function localStorage(): Storage;
@@ -1,3 +1,3 @@
1
- import { Logins, ResolvedLogins } from "./Logins";
2
-
3
- export declare function resolveLogins(logins: Logins): Promise<ResolvedLogins>;
1
+ import { Logins, ResolvedLogins } from "./Logins";
2
+
3
+ export declare function resolveLogins(logins: Logins): Promise<ResolvedLogins>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-cognito-identity",
3
- "version": "3.169.0",
3
+ "version": "3.170.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/client-cognito-identity": "3.169.0",
25
- "@aws-sdk/property-provider": "3.168.0",
26
- "@aws-sdk/types": "3.168.0",
24
+ "@aws-sdk/client-cognito-identity": "3.170.0",
25
+ "@aws-sdk/property-provider": "3.170.0",
26
+ "@aws-sdk/types": "3.170.0",
27
27
  "tslib": "^2.3.1"
28
28
  },
29
29
  "engines": {
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@tsconfig/recommended": "1.0.1",
50
50
  "concurrently": "7.0.0",
51
- "downlevel-dts": "0.7.0",
51
+ "downlevel-dts": "0.10.1",
52
52
  "rimraf": "3.0.2",
53
53
  "typedoc": "0.19.2",
54
54
  "typescript": "~4.6.2"