aws-amplify
Advanced tools
Comparing version 6.10.4-unstable.ec2ff53.0 to 6.11.0
@@ -20,3 +20,3 @@ 'use strict'; | ||
*/ | ||
const createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validatorMap) => { | ||
const createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validator) => { | ||
return { | ||
@@ -38,4 +38,4 @@ setItem(key, value) { | ||
const value = cookie?.value ?? null; | ||
if (value && validatorMap?.getItem) { | ||
const isValid = await validatorMap.getItem(key, value); | ||
if (value && validator?.getItem) { | ||
const isValid = await validator.getItem(key, value); | ||
if (!isValid) | ||
@@ -42,0 +42,0 @@ return null; |
@@ -10,2 +10,2 @@ import { KeyValueStorageInterface } from '@aws-amplify/core'; | ||
*/ | ||
export declare const createKeyValueStorageFromCookieStorageAdapter: (cookieStorageAdapter: CookieStorage.Adapter, validatorMap?: KeyValueStorageMethodValidator) => KeyValueStorageInterface; | ||
export declare const createKeyValueStorageFromCookieStorageAdapter: (cookieStorageAdapter: CookieStorage.Adapter, validator?: KeyValueStorageMethodValidator) => KeyValueStorageInterface; |
{ | ||
"name": "aws-amplify", | ||
"version": "6.10.4-unstable.ec2ff53.0+ec2ff53", | ||
"version": "6.11.0", | ||
"description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", | ||
@@ -279,9 +279,9 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@aws-amplify/analytics": "7.0.64-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/api": "6.1.9-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/auth": "6.8.4-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/core": "6.7.4-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/datastore": "5.0.66-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/notifications": "2.0.64-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/storage": "6.7.5-unstable.ec2ff53.0+ec2ff53", | ||
"@aws-amplify/analytics": "7.0.64", | ||
"@aws-amplify/api": "6.1.9", | ||
"@aws-amplify/auth": "6.9.0", | ||
"@aws-amplify/core": "6.8.0", | ||
"@aws-amplify/datastore": "5.0.66", | ||
"@aws-amplify/notifications": "2.0.64", | ||
"@aws-amplify/storage": "6.7.5", | ||
"tslib": "^2.5.0" | ||
@@ -387,3 +387,3 @@ }, | ||
"import": "{ confirmSignIn }", | ||
"limit": "28.46 kB" | ||
"limit": "28.60 kB" | ||
}, | ||
@@ -454,3 +454,3 @@ { | ||
"import": "{ signIn, signOut, fetchAuthSession, confirmSignIn }", | ||
"limit": "30.56 kB" | ||
"limit": "30.87 kB" | ||
}, | ||
@@ -521,6 +521,6 @@ { | ||
"import": "{ uploadData }", | ||
"limit": "22.81 kB" | ||
"limit": "22.84 kB" | ||
} | ||
], | ||
"gitHead": "ec2ff53f2c5e0857d89e5e0272c2fb9fad57c1c7" | ||
"gitHead": "71558b702db117a4deba51cd23a5a9c455e88bf3" | ||
} |
@@ -26,3 +26,3 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
cookieStorageAdapter: CookieStorage.Adapter, | ||
validatorMap?: KeyValueStorageMethodValidator, | ||
validator?: KeyValueStorageMethodValidator, | ||
): KeyValueStorageInterface => { | ||
@@ -48,4 +48,4 @@ return { | ||
if (value && validatorMap?.getItem) { | ||
const isValid = await validatorMap.getItem(key, value); | ||
if (value && validator?.getItem) { | ||
const isValid = await validator.getItem(key, value); | ||
if (!isValid) return null; | ||
@@ -52,0 +52,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
151524
+ Added@aws-amplify/analytics@7.0.64(transitive)
+ Added@aws-amplify/api@6.1.9(transitive)
+ Added@aws-amplify/api-graphql@4.6.7(transitive)
+ Added@aws-amplify/api-rest@4.0.64(transitive)
+ Added@aws-amplify/auth@6.9.0(transitive)
+ Added@aws-amplify/core@6.8.0(transitive)
+ Added@aws-amplify/data-schema@1.17.2(transitive)
+ Added@aws-amplify/data-schema-types@1.2.0(transitive)
+ Added@aws-amplify/datastore@5.0.66(transitive)
+ Added@aws-amplify/notifications@2.0.64(transitive)
+ Added@aws-amplify/storage@6.7.5(transitive)
+ Added@aws-crypto/crc32@5.2.0(transitive)
+ Added@aws-crypto/sha256-browser@5.2.0(transitive)
+ Added@aws-crypto/sha256-js@5.2.0(transitive)
+ Added@aws-crypto/supports-web-crypto@5.2.0(transitive)
+ Added@aws-crypto/util@5.2.0(transitive)
+ Added@aws-sdk/client-firehose@3.621.0(transitive)
+ Added@aws-sdk/client-kinesis@3.621.0(transitive)
+ Added@aws-sdk/client-personalize-events@3.621.0(transitive)
+ Added@aws-sdk/client-sso@3.621.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.621.0(transitive)
+ Added@aws-sdk/client-sts@3.621.0(transitive)
+ Added@aws-sdk/core@3.621.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.620.1(transitive)
+ Added@aws-sdk/credential-provider-http@3.621.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.621.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.621.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.620.1(transitive)
+ Added@aws-sdk/credential-provider-sso@3.621.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.621.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.620.0(transitive)
+ Added@aws-sdk/middleware-logger@3.609.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.620.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.620.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.614.0(transitive)
+ Added@aws-sdk/token-providers@3.614.0(transitive)
+ Added@aws-sdk/types@3.387.03.398.03.609.0(transitive)
+ Added@aws-sdk/util-endpoints@3.614.0(transitive)
+ Added@aws-sdk/util-locate-window@3.693.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.609.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.614.0(transitive)
+ Added@smithy/abort-controller@3.1.9(transitive)
+ Added@smithy/config-resolver@3.0.13(transitive)
+ Added@smithy/core@2.5.5(transitive)
+ Added@smithy/credential-provider-imds@3.2.8(transitive)
+ Added@smithy/eventstream-codec@3.1.10(transitive)
+ Added@smithy/eventstream-serde-browser@3.0.14(transitive)
+ Added@smithy/eventstream-serde-config-resolver@3.0.11(transitive)
+ Added@smithy/eventstream-serde-node@3.0.13(transitive)
+ Added@smithy/eventstream-serde-universal@3.0.13(transitive)
+ Added@smithy/fetch-http-handler@3.2.94.1.2(transitive)
+ Added@smithy/hash-node@3.0.11(transitive)
+ Added@smithy/invalid-dependency@3.0.11(transitive)
+ Added@smithy/is-array-buffer@2.2.03.0.0(transitive)
+ Added@smithy/md5-js@2.0.7(transitive)
+ Added@smithy/middleware-content-length@3.0.13(transitive)
+ Added@smithy/middleware-endpoint@3.2.6(transitive)
+ Added@smithy/middleware-retry@3.0.31(transitive)
+ Added@smithy/middleware-serde@3.0.11(transitive)
+ Added@smithy/middleware-stack@3.0.11(transitive)
+ Added@smithy/node-config-provider@3.1.12(transitive)
+ Added@smithy/node-http-handler@3.3.2(transitive)
+ Added@smithy/property-provider@3.1.11(transitive)
+ Added@smithy/protocol-http@4.1.8(transitive)
+ Added@smithy/querystring-builder@3.0.11(transitive)
+ Added@smithy/querystring-parser@3.0.11(transitive)
+ Added@smithy/service-error-classification@3.0.11(transitive)
+ Added@smithy/shared-ini-file-loader@3.1.12(transitive)
+ Added@smithy/signature-v4@4.2.4(transitive)
+ Added@smithy/smithy-client@3.5.1(transitive)
+ Added@smithy/types@2.12.03.7.2(transitive)
+ Added@smithy/url-parser@3.0.11(transitive)
+ Added@smithy/util-base64@3.0.0(transitive)
+ Added@smithy/util-body-length-browser@3.0.0(transitive)
+ Added@smithy/util-body-length-node@3.0.0(transitive)
+ Added@smithy/util-buffer-from@2.2.03.0.0(transitive)
+ Added@smithy/util-config-provider@3.0.0(transitive)
+ Added@smithy/util-defaults-mode-browser@3.0.31(transitive)
+ Added@smithy/util-defaults-mode-node@3.0.31(transitive)
+ Added@smithy/util-endpoints@2.1.7(transitive)
+ Added@smithy/util-hex-encoding@2.0.03.0.0(transitive)
+ Added@smithy/util-middleware@3.0.11(transitive)
+ Added@smithy/util-retry@3.0.11(transitive)
+ Added@smithy/util-stream@3.3.2(transitive)
+ Added@smithy/util-uri-escape@3.0.0(transitive)
+ Added@smithy/util-utf8@2.0.03.0.0(transitive)
+ Added@smithy/util-waiter@3.2.0(transitive)
+ Added@types/aws-lambda@8.10.146(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Added@types/uuid@9.0.8(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbowser@2.11.0(transitive)
+ Addedbuffer@4.9.2(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedfast-xml-parser@4.4.14.5.1(transitive)
+ Addedgraphql@15.8.0(transitive)
+ Addedidb@5.0.6(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedimmer@9.0.6(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjs-cookie@3.0.5(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedstrnum@1.0.5(transitive)
+ Addedulid@2.3.0(transitive)
+ Addeduuid@9.0.1(transitive)
Updated@aws-amplify/api@6.1.9
Updated@aws-amplify/auth@6.9.0
Updated@aws-amplify/core@6.8.0
Updated@aws-amplify/storage@6.7.5