Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-amplify

Package Overview
Dependencies
Maintainers
0
Versions
2398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-amplify - npm Package Compare versions

Comparing version 6.10.4-unstable.ec2ff53.0 to 6.11.0

6

dist/cjs/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc