@aws-amplify/notifications 1.1.1 → 1.1.2-pn-init-test.6
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/lib/Notifications.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InAppMessagingInterface as InAppMessaging } from './InAppMessaging/types';
|
|
2
|
-
import
|
|
2
|
+
import PushNotification from './PushNotification';
|
|
3
3
|
import { NotificationsCategory, NotificationsConfig, UserInfo } from './types';
|
|
4
4
|
declare class NotificationsClass {
|
|
5
5
|
private config;
|
package/lib/Notifications.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
var core_1 = require("@aws-amplify/core");
|
|
7
7
|
var InAppMessaging_1 = tslib_1.__importDefault(require("./InAppMessaging"));
|
|
8
|
+
var PushNotification_1 = tslib_1.__importDefault(require("./PushNotification"));
|
|
8
9
|
var logger = new core_1.ConsoleLogger('Notifications');
|
|
9
10
|
var NotificationsClass = /** @class */ (function () {
|
|
10
11
|
function NotificationsClass() {
|
|
@@ -22,8 +23,7 @@ var NotificationsClass = /** @class */ (function () {
|
|
|
22
23
|
_this.inAppMessaging.configure(_this.config.InAppMessaging);
|
|
23
24
|
if (_this.config.Push) {
|
|
24
25
|
try {
|
|
25
|
-
|
|
26
|
-
_this.pushNotification = new PushNotification();
|
|
26
|
+
_this.pushNotification = new PushNotification_1.default();
|
|
27
27
|
_this.pushNotification.configure(_this.config.Push);
|
|
28
28
|
}
|
|
29
29
|
catch (err) {
|
package/lib/Notifications.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../src/Notifications.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,0CAAqE;AAErE,4EAAmD;
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRo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O,CAAC,GAAG,CACjB,iBAAiB,CAAC,GAAG,CAAC,UAAM,gBAAgB;;;;;;4BAE1C,qBAAM,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAA;;4BAAxC,SAAwC,CAAC;;;;4BAEzC,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAG,CAAC,CAAC;4BAC7C,MAAM,KAAG,CAAC;;;;iBAEX,CAAC,CACF,CAAC;QACH,CAAC,CAAC;QA7DD,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAmB,EAAE,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,0CAAa,GAAb;QACC,OAAO,eAAe,CAAC;IACxB,CAAC;IA0BD,sBAAI,8CAAc;aAAlB;YACC,OAAO,IAAI,CAAC,cAAc,CAAC;QAC5B,CAAC;;;OAAA;IAED,sBAAI,oCAAI;aAAR;;YACC,aAAO,IAAI,CAAC,gBAAgB,mCAAK,EAAuB,CAAC;QAC1D,CAAC;;;OAAA;IAqBF,yBAAC;AAAD,CAAC,AApED,IAoEC;AAED,IAAM,aAAa,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAE/C,kBAAe,aAAa,CAAC;AAC7B,cAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InAppMessagingInterface as InAppMessaging } from './InAppMessaging/types';
|
|
2
|
-
import
|
|
2
|
+
import PushNotification from './PushNotification';
|
|
3
3
|
import { NotificationsCategory, NotificationsConfig, UserInfo } from './types';
|
|
4
4
|
declare class NotificationsClass {
|
|
5
5
|
private config;
|
package/lib-esm/Notifications.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
4
4
|
import { Amplify, ConsoleLogger as Logger } from '@aws-amplify/core';
|
|
5
5
|
import InAppMessagingClass from './InAppMessaging';
|
|
6
|
+
import PushNotification from './PushNotification';
|
|
6
7
|
var logger = new Logger('Notifications');
|
|
7
8
|
var NotificationsClass = /** @class */ (function () {
|
|
8
9
|
function NotificationsClass() {
|
|
@@ -20,7 +21,6 @@ var NotificationsClass = /** @class */ (function () {
|
|
|
20
21
|
_this.inAppMessaging.configure(_this.config.InAppMessaging);
|
|
21
22
|
if (_this.config.Push) {
|
|
22
23
|
try {
|
|
23
|
-
var PushNotification = require('./PushNotification').default;
|
|
24
24
|
_this.pushNotification = new PushNotification();
|
|
25
25
|
_this.pushNotification.configure(_this.config.Push);
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../src/Notifications.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../src/Notifications.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;AAEnD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAGlD,IAAM,MAAM,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC;AAE3C;IAKC;QAAA,iBAEC;QANO,WAAM,GAAwB,EAAE,CAAC;QAgBzC;;;WAGG;QACH,cAAS,GAAG,UAAC,EAAmD;gBAAjD,gDAAqB;YACnC,KAAI,CAAC,MAAM,yBAAQ,KAAI,CAAC,MAAM,GAAK,MAAM,CAAE,CAAC;YAE5C,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;YAEhD,2BAA2B;YAC3B,KAAI,CAAC,cAAc,CAAC,SAAS,CAAC,KAAI,CAAC,MAAM,C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AED,sBAAI,oCAAI;aAAR;;YACC,aAAO,IAAI,CAAC,gBAAgB,mCAAK,EAAuB,CAAC;QAC1D,CAAC;;;OAAA;IAqBF,yBAAC;AAAD,CAAC,AApED,IAoEC;AAED,IAAM,aAAa,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAE/C,eAAe,aAAa,CAAC;AAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/notifications",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-pn-init-test.6+373d870a8",
|
|
4
4
|
"description": "Notifications category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -49,8 +49,9 @@
|
|
|
49
49
|
"src"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@aws-amplify/cache": "5.0.
|
|
53
|
-
"@aws-amplify/core": "5.1.
|
|
52
|
+
"@aws-amplify/cache": "5.0.28-pn-init-test.6+373d870a8",
|
|
53
|
+
"@aws-amplify/core": "5.1.11-pn-init-test.6+373d870a8",
|
|
54
|
+
"@aws-amplify/rtn-push-notification": "1.1.1-pn-init-test.9+373d870a8",
|
|
54
55
|
"@aws-sdk/client-pinpoint": "3.186.1",
|
|
55
56
|
"lodash": "^4.17.21",
|
|
56
57
|
"uuid": "^3.2.1"
|
|
@@ -69,8 +70,5 @@
|
|
|
69
70
|
"limit": "71 kB"
|
|
70
71
|
}
|
|
71
72
|
],
|
|
72
|
-
"
|
|
73
|
-
"@aws-amplify/rtn-push-notification": "1.1.0"
|
|
74
|
-
},
|
|
75
|
-
"gitHead": "a330d2fb37290c60a91e3acf07aea4fef9c8ef2b"
|
|
73
|
+
"gitHead": "373d870a8ed846135df671923aa2a12509a780f6"
|
|
76
74
|
}
|
package/src/Notifications.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Amplify, ConsoleLogger as Logger } from '@aws-amplify/core';
|
|
|
5
5
|
|
|
6
6
|
import InAppMessagingClass from './InAppMessaging';
|
|
7
7
|
import { InAppMessagingInterface as InAppMessaging } from './InAppMessaging/types';
|
|
8
|
-
import
|
|
8
|
+
import PushNotification from './PushNotification';
|
|
9
9
|
import { NotificationsCategory, NotificationsConfig, UserInfo } from './types';
|
|
10
10
|
|
|
11
11
|
const logger = new Logger('Notifications');
|
|
@@ -41,7 +41,6 @@ class NotificationsClass {
|
|
|
41
41
|
|
|
42
42
|
if (this.config.Push) {
|
|
43
43
|
try {
|
|
44
|
-
const PushNotification = require('./PushNotification').default;
|
|
45
44
|
this.pushNotification = new PushNotification();
|
|
46
45
|
this.pushNotification.configure(this.config.Push);
|
|
47
46
|
} catch (err) {
|