@edgeplus/sdk 0.0.1 → 0.0.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/package.json +18 -13
- package/dist/index.d.mts +0 -11
- package/dist/index.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgeplus/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "EdgePlus browser SDK - Prescriptive web analytics",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"browser": "dist/index.global.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": ["dist"],
|
|
12
17
|
"keywords": [
|
|
13
18
|
"analytics",
|
|
14
19
|
"web-vitals",
|
|
@@ -25,19 +30,19 @@
|
|
|
25
30
|
"publishConfig": {
|
|
26
31
|
"access": "public"
|
|
27
32
|
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsup src/index.ts --format cjs,esm,iife --global-name EdgePlus --dts --minify",
|
|
35
|
+
"dev": "tsup src/index.ts --format cjs,esm,iife --global-name EdgePlus --dts --watch",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "vitest run"
|
|
38
|
+
},
|
|
28
39
|
"dependencies": {
|
|
29
40
|
"web-vitals": "^4.0.0"
|
|
30
41
|
},
|
|
31
42
|
"devDependencies": {
|
|
43
|
+
"@edgeplus/shared": "workspace:*",
|
|
32
44
|
"tsup": "^8.0.0",
|
|
33
45
|
"typescript": "^5.5.0",
|
|
34
|
-
"vitest": "^2.0.0"
|
|
35
|
-
"@edgeplus/shared": "0.0.1"
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "tsup src/index.ts --format cjs,esm,iife --global-name EdgePlus --dts --minify",
|
|
39
|
-
"dev": "tsup src/index.ts --format cjs,esm,iife --global-name EdgePlus --dts --watch",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
-
"test": "vitest run"
|
|
46
|
+
"vitest": "^2.0.0"
|
|
42
47
|
}
|
|
43
|
-
}
|
|
48
|
+
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface InitOptions {
|
|
2
|
-
siteKey: string;
|
|
3
|
-
endpoint?: string;
|
|
4
|
-
batchSize?: number;
|
|
5
|
-
batchIntervalMs?: number;
|
|
6
|
-
debug?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function init(opts: InitOptions): void;
|
|
9
|
-
declare function track(_eventName: string, _properties?: Record<string, unknown>): void;
|
|
10
|
-
|
|
11
|
-
export { init, track };
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface InitOptions {
|
|
2
|
-
siteKey: string;
|
|
3
|
-
endpoint?: string;
|
|
4
|
-
batchSize?: number;
|
|
5
|
-
batchIntervalMs?: number;
|
|
6
|
-
debug?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function init(opts: InitOptions): void;
|
|
9
|
-
declare function track(_eventName: string, _properties?: Record<string, unknown>): void;
|
|
10
|
-
|
|
11
|
-
export { init, track };
|