@amplitude/unified 1.0.0-beta.27 → 1.0.0-beta.28
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/cjs/index.d.ts +1 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/version.d.ts +1 -1
- package/lib/cjs/version.js +2 -2
- package/lib/cjs/version.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/version.d.ts +1 -1
- package/lib/esm/version.js +2 -2
- package/lib/esm/version.js.map +1 -1
- package/lib/scripts/amplitude-min.umd.js +1 -1
- package/lib/scripts/amplitude-min.umd.js.gz +0 -0
- package/lib/scripts/index.d.ts +1 -1
- package/lib/scripts/index.d.ts.map +1 -1
- package/lib/scripts/library.d.ts.map +1 -1
- package/lib/scripts/version.d.ts +1 -1
- package/package.json +18 -19
|
Binary file
|
package/lib/scripts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createInstance } from './unified-client-factory';
|
|
2
|
-
export declare const _setDiagnosticsSampleRate: (sampleRate: number) => void, initAll: (apiKey: string, unifiedOptions?: import("./unified").UnifiedOptions
|
|
2
|
+
export declare const _setDiagnosticsSampleRate: (sampleRate: number) => void, initAll: (apiKey: string, unifiedOptions?: import("./unified").UnifiedOptions) => Promise<void>, experiment: () => import("@amplitude/plugin-experiment-browser").IExperimentClient | undefined, sessionReplay: () => import("@amplitude/plugin-session-replay-browser").AmplitudeSessionReplay, add: (plugin: import("@amplitude/analytics-core").Plugin<import("@amplitude/analytics-core").BrowserClient, import("@amplitude/analytics-core").BrowserConfig>) => import("@amplitude/analytics-core").AmplitudeReturn<void>, extendSession: () => void, flush: () => import("@amplitude/analytics-core").AmplitudeReturn<void>, getDeviceId: () => string | undefined, getSessionId: () => number | undefined, getUserId: () => string | undefined, groupIdentify: (groupType: string, groupName: string | string[], identify: import("@amplitude/analytics-core").IIdentify, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, identify: (identify: import("@amplitude/analytics-core").IIdentify, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, logEvent: (eventInput: import("@amplitude/analytics-core").BaseEvent | string, eventProperties?: Record<string, any>, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, remove: (pluginName: string) => import("@amplitude/analytics-core").AmplitudeReturn<void>, reset: () => void, revenue: (revenue: import("@amplitude/analytics-core").IRevenue, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, setDeviceId: (deviceId: string) => void, setGroup: (groupType: string, groupName: string | string[], eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, setOptOut: (optOut: boolean) => void, setSessionId: (sessionId: number) => void, setTransport: (transport: import("@amplitude/analytics-core").TransportTypeOrOptions) => void, setUserId: (userId: string | undefined) => void, track: (eventInput: import("@amplitude/analytics-core").BaseEvent | string, eventProperties?: Record<string, any>, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>;
|
|
3
3
|
export { Types, Revenue, Identify } from '@amplitude/analytics-browser';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,yBAAyB,gCACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,yBAAyB,gCACzB,OAAO,0FACP,UAAU,sFACV,aAAa,mFACb,GAAG,2NACH,aAAa,cACb,KAAK,mEACL,WAAW,4BACX,YAAY,4BACZ,SAAS,4BACT,aAAa,kRACb,QAAQ,iOACR,QAAQ,mRACR,MAAM,qFACN,KAAK,cACL,OAAO,+NACP,WAAW,8BACX,QAAQ,yNACR,SAAS,6BACT,YAAY,+BACZ,YAAY,mFACZ,SAAS,wCACT,KAAK,iRACG,CAAC;AACX,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAKrD,eAAO,MAAM,aAAa,QAAO,
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAKrD,eAAO,MAAM,aAAa,QAAO,KAAK,CAAC,gBAStC,CAAC"}
|
package/lib/scripts/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-beta.
|
|
1
|
+
export declare const VERSION = "1.0.0-beta.28";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/unified",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.28",
|
|
4
4
|
"description": "Official Amplitude SDK for Web analytics, experiment, session replay, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"amplitude",
|
|
@@ -28,33 +28,32 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"lib"
|
|
30
30
|
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@amplitude/engagement-browser": "^1.0.3",
|
|
33
|
+
"@amplitude/analytics-browser": "2.33.2",
|
|
34
|
+
"@amplitude/plugin-experiment-browser": "1.0.0-beta.1",
|
|
35
|
+
"@amplitude/plugin-session-replay-browser": "1.25.6",
|
|
36
|
+
"@amplitude/analytics-core": "2.35.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"rollup": "^2.79.1"
|
|
40
|
+
},
|
|
31
41
|
"scripts": {
|
|
32
|
-
"build": "
|
|
42
|
+
"build": "pnpm bundle && pnpm build:es5 && pnpm build:esm",
|
|
33
43
|
"bundle": "rollup --config rollup.config.js",
|
|
34
44
|
"build:es5": "tsc -p ./tsconfig.es5.json",
|
|
35
45
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
36
46
|
"watch": "tsc -p ./tsconfig.esm.json --watch",
|
|
37
47
|
"clean": "rimraf node_modules lib coverage",
|
|
38
|
-
"fix": "
|
|
48
|
+
"fix": "pnpm fix:eslint & pnpm fix:prettier",
|
|
39
49
|
"fix:eslint": "eslint '{src,test}/**/*.ts' --fix",
|
|
40
50
|
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
|
|
41
|
-
"lint": "
|
|
51
|
+
"lint": "pnpm lint:eslint & pnpm lint:prettier",
|
|
42
52
|
"lint:eslint": "eslint '{src,test}/**/*.ts'",
|
|
43
53
|
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
|
|
44
54
|
"test": "jest",
|
|
45
55
|
"typecheck": "tsc -p ./tsconfig.json",
|
|
46
|
-
"version": "
|
|
47
|
-
"version-file": "echo '// Autogenerated by `
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
"@amplitude/analytics-browser": "2.33.1",
|
|
51
|
-
"@amplitude/analytics-core": "2.35.0",
|
|
52
|
-
"@amplitude/engagement-browser": "^1.0.3",
|
|
53
|
-
"@amplitude/plugin-experiment-browser": "^1.0.0-beta.0",
|
|
54
|
-
"@amplitude/plugin-session-replay-browser": "1.25.5"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"rollup": "^2.79.1"
|
|
58
|
-
},
|
|
59
|
-
"gitHead": "0e39b54dfef0a955236270365327e472d5e8b353"
|
|
60
|
-
}
|
|
56
|
+
"version": "pnpm version-file && GENERATE_SNIPPET=true pnpm build",
|
|
57
|
+
"version-file": "echo '// Autogenerated by `pnpm version-file`. DO NOT EDIT' > src/version.ts && node -p \"'export const VERSION = \\'' + require('./package.json').version + '\\';'\" >> src/version.ts"
|
|
58
|
+
}
|
|
59
|
+
}
|