@aws-amplify/analytics 6.3.3-graphql-api-functional-options.2 → 6.3.3-unstable.ec57e85.2
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/utils/UserAgent.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AnalyticsAction } from '@aws-amplify/core';
|
|
2
|
-
|
|
2
|
+
import { UserAgent } from '@aws-sdk/types';
|
|
3
|
+
export declare function getAnalyticsUserAgent(action: AnalyticsAction): UserAgent;
|
|
3
4
|
export declare function getAnalyticsUserAgentString(action: AnalyticsAction): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.js","sourceRoot":"","sources":["../../src/utils/UserAgent.ts"],"names":[],"mappings":";;AAAA,0CAK2B;
|
|
1
|
+
{"version":3,"file":"UserAgent.js","sourceRoot":"","sources":["../../src/utils/UserAgent.ts"],"names":[],"mappings":";;AAAA,0CAK2B;AAG3B,SAAgB,qBAAqB,CAAC,MAAuB;IAC5D,OAAO,gCAAyB,CAAC;QAChC,QAAQ,EAAE,eAAQ,CAAC,SAAS;QAC5B,MAAM,QAAA;KACN,CAAC,CAAC;AACJ,CAAC;AALD,sDAKC;AAED,SAAgB,2BAA2B,CAAC,MAAuB;IAClE,OAAO,0BAAmB,CAAC;QAC1B,QAAQ,EAAE,eAAQ,CAAC,SAAS;QAC5B,MAAM,QAAA;KACN,CAAC,CAAC;AACJ,CAAC;AALD,kEAKC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AnalyticsAction } from '@aws-amplify/core';
|
|
2
|
-
|
|
2
|
+
import { UserAgent } from '@aws-sdk/types';
|
|
3
|
+
export declare function getAnalyticsUserAgent(action: AnalyticsAction): UserAgent;
|
|
3
4
|
export declare function getAnalyticsUserAgentString(action: AnalyticsAction): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.js","sourceRoot":"","sources":["../../src/utils/UserAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,QAAQ,EACR,yBAAyB,EACzB,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"UserAgent.js","sourceRoot":"","sources":["../../src/utils/UserAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,QAAQ,EACR,yBAAyB,EACzB,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,UAAU,qBAAqB,CAAC,MAAuB;IAC5D,OAAO,yBAAyB,CAAC;QAChC,QAAQ,EAAE,QAAQ,CAAC,SAAS;QAC5B,MAAM,QAAA;KACN,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,MAAuB;IAClE,OAAO,mBAAmB,CAAC;QAC1B,QAAQ,EAAE,QAAQ,CAAC,SAAS;QAC5B,MAAM,QAAA;KACN,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/analytics",
|
|
3
|
-
"version": "6.3.3-
|
|
3
|
+
"version": "6.3.3-unstable.ec57e85.2+ec57e855d",
|
|
4
4
|
"description": "Analytics category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"src"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-amplify/cache": "5.1.4-
|
|
52
|
-
"@aws-amplify/core": "5.5.3-
|
|
51
|
+
"@aws-amplify/cache": "5.1.4-unstable.ec57e85.2+ec57e855d",
|
|
52
|
+
"@aws-amplify/core": "5.5.3-unstable.ec57e85.2+ec57e855d",
|
|
53
53
|
"@aws-sdk/client-firehose": "3.6.1",
|
|
54
54
|
"@aws-sdk/client-kinesis": "3.6.1",
|
|
55
55
|
"@aws-sdk/client-personalize-events": "3.6.1",
|
|
@@ -58,18 +58,21 @@
|
|
|
58
58
|
"tslib": "^1.8.0",
|
|
59
59
|
"uuid": "^3.2.1"
|
|
60
60
|
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@aws-sdk/types": "3.6.1"
|
|
63
|
+
},
|
|
61
64
|
"size-limit": [
|
|
62
65
|
{
|
|
63
66
|
"name": "Analytics (Pinpoint)",
|
|
64
67
|
"path": "./lib-esm/index.js",
|
|
65
68
|
"import": "{ Amplify, Analytics, AWSPinpointProvider }",
|
|
66
|
-
"limit": "
|
|
69
|
+
"limit": "31.1 kB"
|
|
67
70
|
},
|
|
68
71
|
{
|
|
69
72
|
"name": "Analytics (Kinesis)",
|
|
70
73
|
"path": "./lib-esm/index.js",
|
|
71
74
|
"import": "{ Amplify, Analytics, AWSKinesisProvider }",
|
|
72
|
-
"limit": "
|
|
75
|
+
"limit": "60.4 kB"
|
|
73
76
|
}
|
|
74
77
|
],
|
|
75
78
|
"jest": {
|
|
@@ -120,5 +123,5 @@
|
|
|
120
123
|
"<rootDir>/src/setupTests.ts"
|
|
121
124
|
]
|
|
122
125
|
},
|
|
123
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "ec57e855d5409dbd5dc28050dc468376781a3c57"
|
|
124
127
|
}
|
package/src/types/Provider.ts
CHANGED
|
@@ -6,6 +6,9 @@ export interface PromiseHandlers {
|
|
|
6
6
|
reject: Function;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
// CAUTION: The AnalyticsProvider interface is publicly available and allows customers to implement their own custom
|
|
10
|
+
// analytics providers. Exercise caution when modifying this class as additive changes to this interface can break
|
|
11
|
+
// customers when not marked as optional.
|
|
9
12
|
export interface AnalyticsProvider {
|
|
10
13
|
// you need to implement those methods
|
|
11
14
|
|
package/src/utils/UserAgent.ts
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
getAmplifyUserAgentObject,
|
|
5
5
|
getAmplifyUserAgent,
|
|
6
6
|
} from '@aws-amplify/core';
|
|
7
|
+
import { UserAgent } from '@aws-sdk/types';
|
|
7
8
|
|
|
8
|
-
export function getAnalyticsUserAgent(action: AnalyticsAction) {
|
|
9
|
+
export function getAnalyticsUserAgent(action: AnalyticsAction): UserAgent {
|
|
9
10
|
return getAmplifyUserAgentObject({
|
|
10
11
|
category: Category.Analytics,
|
|
11
12
|
action,
|