@aws-amplify/analytics 5.2.16-next.32 → 5.2.16-next.36
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/Analytics.d.ts +87 -0
- package/lib/Providers/AWSKinesisFirehoseProvider.d.ts +12 -0
- package/lib/Providers/AWSKinesisFirehoseProvider.js +1 -1
- package/lib/Providers/AWSKinesisProvider.d.ts +43 -0
- package/lib/Providers/AWSKinesisProvider.js +1 -1
- package/lib/Providers/AWSPinpointProvider.d.ts +70 -0
- package/lib/Providers/AWSPinpointProvider.js +3 -3
- package/lib/Providers/AWSPinpointProvider.js.map +1 -1
- package/lib/Providers/AmazonPersonalizeHelper/DataType.d.ts +40 -0
- package/lib/Providers/AmazonPersonalizeHelper/MediaAutoTrack.d.ts +20 -0
- package/lib/Providers/AmazonPersonalizeHelper/SessionInfoManager.d.ts +17 -0
- package/lib/Providers/AmazonPersonalizeHelper/SessionInfoManager.js +2 -2
- package/lib/Providers/AmazonPersonalizeHelper/SessionInfoManager.js.map +1 -1
- package/lib/Providers/AmazonPersonalizeHelper/index.d.ts +3 -0
- package/lib/Providers/AmazonPersonalizeHelper/index.js +4 -3
- package/lib/Providers/AmazonPersonalizeHelper/index.js.map +1 -1
- package/lib/Providers/AmazonPersonalizeProvider.d.ts +76 -0
- package/lib/Providers/AmazonPersonalizeProvider.js +1 -1
- package/lib/Providers/EventBuffer.d.ts +30 -0
- package/lib/Providers/index.d.ts +4 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/lib/setupTests.d.ts +1 -0
- package/lib/trackers/EventTracker.d.ts +9 -0
- package/lib/trackers/EventTracker.js +1 -1
- package/lib/trackers/PageViewTracker.d.ts +12 -0
- package/lib/trackers/PageViewTracker.js +1 -1
- package/lib/trackers/SessionTracker-rn.d.ts +12 -0
- package/lib/trackers/SessionTracker-rn.js +1 -1
- package/lib/trackers/SessionTracker.d.ts +14 -0
- package/lib/trackers/SessionTracker.js +1 -1
- package/lib/trackers/index.d.ts +3 -0
- package/lib/trackers/reactnative.d.ts +8 -0
- package/lib/types/Analytics.d.ts +66 -0
- package/lib/types/Provider.d.ts +10 -0
- package/lib/types/Provider.js +1 -1
- package/lib/types/Providers/AWSKinesisProvider.d.ts +5 -0
- package/lib/types/Providers/AWSPinpointProvider.d.ts +50 -0
- package/lib/types/Providers/AmazonPersonalizeProvider.d.ts +7 -0
- package/lib/types/Providers/index.d.ts +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +1 -1
- package/lib/utils/AppUtils.d.ts +2 -0
- package/lib/utils/AppUtils.native.d.ts +2 -0
- package/lib/utils/MethodEmbed.d.ts +11 -0
- package/lib/utils/MethodEmbed.js +1 -1
- package/lib/vendor/dom-utils/closest.d.ts +12 -0
- package/lib/vendor/dom-utils/delegate.d.ts +18 -0
- package/lib/vendor/dom-utils/dispatch.d.ts +17 -0
- package/lib/vendor/dom-utils/get-attributes.d.ts +11 -0
- package/lib/vendor/dom-utils/index.d.ts +7 -0
- package/lib/vendor/dom-utils/matches.d.ts +11 -0
- package/lib/vendor/dom-utils/parents.d.ts +10 -0
- package/lib/vendor/dom-utils/parse-url.d.ts +9 -0
- package/lib-esm/Providers/AWSKinesisFirehoseProvider.js +1 -1
- package/lib-esm/Providers/AWSKinesisProvider.js +1 -1
- package/lib-esm/Providers/AWSPinpointProvider.js +2 -2
- package/lib-esm/Providers/AWSPinpointProvider.js.map +1 -1
- package/lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js +1 -1
- package/lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js.map +1 -1
- package/lib-esm/Providers/AmazonPersonalizeHelper/index.d.ts +3 -3
- package/lib-esm/Providers/AmazonPersonalizeHelper/index.js +2 -2
- package/lib-esm/Providers/AmazonPersonalizeHelper/index.js.map +1 -1
- package/lib-esm/Providers/AmazonPersonalizeProvider.js +1 -1
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/trackers/EventTracker.js +1 -1
- package/lib-esm/trackers/PageViewTracker.js +1 -1
- package/lib-esm/trackers/SessionTracker-rn.js +1 -1
- package/lib-esm/trackers/SessionTracker.js +1 -1
- package/lib-esm/types/Provider.js +1 -1
- package/lib-esm/types/index.js +1 -1
- package/lib-esm/utils/MethodEmbed.js +1 -1
- package/package.json +6 -5
- package/src/Providers/AWSKinesisFirehoseProvider.ts +1 -1
- package/src/Providers/AWSKinesisProvider.ts +1 -1
- package/src/Providers/AWSPinpointProvider.ts +2 -2
- package/src/Providers/AmazonPersonalizeHelper/DataType.ts +1 -1
- package/src/Providers/AmazonPersonalizeHelper/MediaAutoTrack.ts +1 -1
- package/src/Providers/AmazonPersonalizeHelper/SessionInfoManager.ts +2 -3
- package/src/Providers/AmazonPersonalizeHelper/index.ts +10 -4
- package/src/Providers/AmazonPersonalizeProvider.ts +1 -1
- package/src/index.ts +6 -1
- package/src/trackers/EventTracker.ts +1 -1
- package/src/trackers/PageViewTracker.ts +1 -1
- package/src/trackers/SessionTracker-rn.ts +1 -1
- package/src/trackers/SessionTracker.ts +1 -1
- package/src/types/Analytics.ts +1 -1
- package/src/types/Provider.ts +1 -1
- package/src/types/index.ts +1 -1
- package/src/utils/MethodEmbed.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/lib-esm/types/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/analytics",
|
|
3
|
-
"version": "5.2.16-next.
|
|
3
|
+
"version": "5.2.16-next.36+580cda186",
|
|
4
4
|
"description": "Analytics category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"build": "npm run clean && npm run build:esm && npm run build:cjs",
|
|
27
27
|
"clean": "rimraf lib-esm lib dist",
|
|
28
28
|
"format": "echo \"Not implemented\"",
|
|
29
|
-
"lint": "tslint 'src/**/*.ts'"
|
|
29
|
+
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
|
|
30
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 69.26"
|
|
30
31
|
},
|
|
31
32
|
"react-native": {
|
|
32
33
|
"./lib/index": "./lib-esm/index.js",
|
|
@@ -48,8 +49,8 @@
|
|
|
48
49
|
"src"
|
|
49
50
|
],
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@aws-amplify/cache": "4.0.51-next.
|
|
52
|
-
"@aws-amplify/core": "4.6.2-next.
|
|
52
|
+
"@aws-amplify/cache": "4.0.51-next.36+580cda186",
|
|
53
|
+
"@aws-amplify/core": "4.6.2-next.36+580cda186",
|
|
53
54
|
"@aws-sdk/client-firehose": "3.6.1",
|
|
54
55
|
"@aws-sdk/client-kinesis": "3.6.1",
|
|
55
56
|
"@aws-sdk/client-personalize-events": "3.6.1",
|
|
@@ -107,5 +108,5 @@
|
|
|
107
108
|
"<rootDir>/src/setupTests.ts"
|
|
108
109
|
]
|
|
109
110
|
},
|
|
110
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "580cda186f10ead3bb99acb7a4825c435c657d33"
|
|
111
112
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
PutEventsCommandInput,
|
|
29
29
|
UpdateEndpointCommand,
|
|
30
30
|
} from '@aws-sdk/client-pinpoint';
|
|
31
|
-
import {
|
|
31
|
+
import { Cache } from '@aws-amplify/cache';
|
|
32
32
|
|
|
33
33
|
import {
|
|
34
34
|
AnalyticsProvider,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2019-
|
|
2
|
+
* Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2019-
|
|
2
|
+
* Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2019-
|
|
2
|
+
* Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -15,8 +15,7 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
15
15
|
import isEqual from 'lodash/isEqual';
|
|
16
16
|
import { v1 as uuid } from 'uuid';
|
|
17
17
|
import { ConsoleLogger as Logger, browserOrNode } from '@aws-amplify/core';
|
|
18
|
-
|
|
19
|
-
import { BrowserStorageCache as Cache } from '@aws-amplify/cache';
|
|
18
|
+
import { Cache } from '@aws-amplify/cache';
|
|
20
19
|
|
|
21
20
|
const PERSONALIZE_CACHE = '_awsct';
|
|
22
21
|
const PERSONALIZE_CACHE_USERID = '_awsct_uid';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2019-
|
|
2
|
+
* Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export {
|
|
14
|
+
EventData,
|
|
15
|
+
RecordEventListPayload,
|
|
16
|
+
RecordEventPayload,
|
|
17
|
+
RequestParams,
|
|
18
|
+
SessionInfo,
|
|
19
|
+
} from './DataType';
|
|
20
|
+
export { SessionInfoManager } from './SessionInfoManager';
|
|
21
|
+
export { MediaAutoTrack } from './MediaAutoTrack';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2019-
|
|
2
|
+
* Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/index.ts
CHANGED
|
@@ -13,4 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
export { Analytics } from './Analytics';
|
|
15
15
|
export { AnalyticsProvider } from './types';
|
|
16
|
-
export
|
|
16
|
+
export {
|
|
17
|
+
AWSPinpointProvider,
|
|
18
|
+
AWSKinesisProvider,
|
|
19
|
+
AWSKinesisFirehoseProvider,
|
|
20
|
+
AmazonPersonalizeProvider,
|
|
21
|
+
} from './Providers';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/types/Analytics.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/types/Provider.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/utils/MethodEmbed.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|