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

@aws-amplify/notifications

Package Overview
Dependencies
Maintainers
10
Versions
802
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/notifications - npm Package Compare versions

Comparing version 0.2.2-in-app-messaging.7140 to 0.2.3-in-app-messaging.7241

2

lib-esm/InAppMessaging/eventListeners.js
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

@@ -7,3 +7,3 @@ "use strict";

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -10,0 +10,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

"use strict";
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

{
"name": "@aws-amplify/notifications",
"version": "0.2.2-in-app-messaging.7140+ca74edb09",
"version": "0.2.3-in-app-messaging.7241+3322097b2",
"description": "Notifications category of aws-amplify",

@@ -45,4 +45,4 @@ "main": "./lib/index.js",

"dependencies": {
"@aws-amplify/cache": "4.0.23-in-app-messaging.62+ca74edb09",
"@aws-amplify/core": "4.3.3-in-app-messaging.62+ca74edb09",
"@aws-amplify/cache": "4.0.23-in-app-messaging.66+3322097b2",
"@aws-amplify/core": "4.3.3-in-app-messaging.66+3322097b2",
"@aws-sdk/client-pinpoint": "^3.33.0",

@@ -96,3 +96,3 @@ "lodash": "^4.17.21",

},
"gitHead": "ca74edb09c4226aca2972a8b6b5449701fe08dd4"
"gitHead": "3322097b2d0bf3a3b76863fa5d85b6829d32f57c"
}
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -35,3 +35,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

): void => {
onMessageActionListeners[event].forEach((listener) => {
onMessageActionListeners[event].forEach(listener => {
listener.handleEvent(message);

@@ -38,0 +38,0 @@ });

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -70,3 +70,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

this.pluggables.forEach((pluggable) => {
this.pluggables.forEach(pluggable => {
pluggable.configure(this.config[pluggable.getProviderName()]);

@@ -102,3 +102,3 @@ });

this.pluggables.find(
(pluggable) => pluggable.getProviderName() === providerName
pluggable => pluggable.getProviderName() === providerName
) ?? null;

@@ -139,3 +139,3 @@

const index = this.pluggables.findIndex(
(pluggable) => pluggable.getProviderName() === providerName
pluggable => pluggable.getProviderName() === providerName
);

@@ -156,3 +156,3 @@ if (index === -1) {

Promise.all<void>(
this.pluggables.map(async (pluggable) => {
this.pluggables.map(async pluggable => {
try {

@@ -171,3 +171,3 @@ const messages = await pluggable.getInAppMessages();

Promise.all<void>(
this.pluggables.map(async (pluggable) => {
this.pluggables.map(async pluggable => {
const key = `${pluggable.getProviderName()}${STORAGE_KEY_SUFFIX}`;

@@ -180,3 +180,3 @@ await this.removeMessages(key);

const messages: InAppMessage[][] = await Promise.all<InAppMessage[]>(
this.pluggables.map(async (pluggable) => {
this.pluggables.map(async pluggable => {
const key = `${pluggable.getProviderName()}${STORAGE_KEY_SUFFIX}`;

@@ -200,3 +200,3 @@ const messages = await this.getMessages(key);

Promise.all<void>(
this.pluggables.map(async (pluggable) => {
this.pluggables.map(async pluggable => {
try {

@@ -203,0 +203,0 @@ await pluggable.identifyUser(userId, userInfo);

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -314,3 +314,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

Object.keys(currentCredentials).some(
(key) => currentCredentials[key] !== credentials[key]
key => currentCredentials[key] !== credentials[key]
);

@@ -510,3 +510,3 @@ // If endpoint is already initialized, and nothing else is changing, just early return

): InAppMessage[] => {
return messages.map((message) => {
return messages.map(message => {
const { CampaignId, InAppMessage } = message;

@@ -513,0 +513,0 @@ return {

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -256,3 +256,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

return (
message?.Content?.map((content) => {
message?.Content?.map(content => {
const {

@@ -259,0 +259,0 @@ BackgroundColor,

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -23,4 +23,4 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

const isActive = (appState) => appState === 'active';
const isInactive = (appState) =>
const isActive = appState => appState === 'active';
const isInactive = appState =>
appState === 'inactive' || appState === 'background';

@@ -57,3 +57,3 @@

private appStateChangeHandler = (nextAppState) => {
private appStateChangeHandler = nextAppState => {
// if going from active to inactive

@@ -60,0 +60,0 @@ if (isActive(this.currentAppState) && isInactive(nextAppState)) {

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with

Sorry, the diff of this file is too big to display

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

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

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

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

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