clarity-decode 0.8.42 → 0.8.43

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 CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "clarity-decode",
3
- "version": "0.8.42",
4
- "description": "An analytics library that uses web page interactions to generate aggregated insights",
5
- "author": "Microsoft Corp.",
6
- "license": "MIT",
7
- "main": "build/clarity.decode.js",
8
- "module": "build/clarity.decode.module.js",
9
- "unpkg": "build/clarity.decode.min.js",
10
- "types": "types/index.d.ts",
11
- "keywords": [
12
- "clarity",
13
- "Microsoft",
14
- "interactions",
15
- "cursor",
16
- "pointer",
17
- "instrumentation",
18
- "analytics"
19
- ],
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/microsoft/clarity.git",
23
- "directory": "packages/clarity-decode"
24
- },
25
- "bugs": {
26
- "url": "https://github.com/Microsoft/clarity/issues"
27
- },
28
- "dependencies": {
29
- "clarity-js": "^0.8.42"
30
- },
31
- "devDependencies": {
32
- "@rollup/plugin-commonjs": "^24.0.0",
33
- "@rollup/plugin-node-resolve": "^15.0.0",
34
- "@rollup/plugin-terser": "^0.4.0",
35
- "@rollup/plugin-typescript": "^11.0.0",
36
- "@types/chai": "^4.3.0",
37
- "chai": "^4.3.0",
38
- "del-cli": "^5.0.0",
39
- "husky": "^8.0.0",
40
- "lint-staged": "^13.1.0",
41
- "mocha": "^11.7.0",
42
- "rollup": "^3.0.0",
43
- "ts-node": "^10.1.0",
44
- "tslint": "^6.1.3",
45
- "typescript": "^4.3.5"
46
- },
47
- "scripts": {
48
- "build": "yarn build:clean && yarn build:main",
49
- "build:main": "rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
50
- "build:clean": "del-cli build/*",
51
- "pretest": "yarn build",
52
- "test": "mocha test/decode.test.js",
53
- "tslint": "tslint --project ./",
54
- "tslint:fix": "tslint --fix --project ./ --force"
55
- },
56
- "husky": {
57
- "hooks": {
58
- "pre-commit": "lint-staged"
59
- }
60
- },
61
- "lint-staged": {
62
- "*.ts": [
63
- "tslint --format codeFrame"
64
- ]
65
- }
1
+ {
2
+ "name": "clarity-decode",
3
+ "version": "0.8.43",
4
+ "description": "An analytics library that uses web page interactions to generate aggregated insights",
5
+ "author": "Microsoft Corp.",
6
+ "license": "MIT",
7
+ "main": "build/clarity.decode.js",
8
+ "module": "build/clarity.decode.module.js",
9
+ "unpkg": "build/clarity.decode.min.js",
10
+ "types": "types/index.d.ts",
11
+ "keywords": [
12
+ "clarity",
13
+ "Microsoft",
14
+ "interactions",
15
+ "cursor",
16
+ "pointer",
17
+ "instrumentation",
18
+ "analytics"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/microsoft/clarity.git",
23
+ "directory": "packages/clarity-decode"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/Microsoft/clarity/issues"
27
+ },
28
+ "dependencies": {
29
+ "clarity-js": "^0.8.43"
30
+ },
31
+ "devDependencies": {
32
+ "@rollup/plugin-commonjs": "^24.0.0",
33
+ "@rollup/plugin-node-resolve": "^15.0.0",
34
+ "@rollup/plugin-terser": "^0.4.0",
35
+ "@rollup/plugin-typescript": "^11.0.0",
36
+ "@types/chai": "^4.3.0",
37
+ "chai": "^4.3.0",
38
+ "del-cli": "^5.0.0",
39
+ "husky": "^8.0.0",
40
+ "lint-staged": "^13.1.0",
41
+ "mocha": "^11.7.0",
42
+ "rollup": "^3.0.0",
43
+ "ts-node": "^10.1.0",
44
+ "tslint": "^6.1.3",
45
+ "typescript": "^4.3.5"
46
+ },
47
+ "scripts": {
48
+ "build": "yarn build:clean && yarn build:main",
49
+ "build:main": "rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
50
+ "build:clean": "del-cli build/*",
51
+ "pretest": "yarn build",
52
+ "test": "mocha test/decode.test.js",
53
+ "tslint": "tslint --project ./",
54
+ "tslint:fix": "tslint --fix --project ./ --force"
55
+ },
56
+ "husky": {
57
+ "hooks": {
58
+ "pre-commit": "lint-staged"
59
+ }
60
+ },
61
+ "lint-staged": {
62
+ "*.ts": [
63
+ "tslint --format codeFrame"
64
+ ]
65
+ }
66
66
  }
package/rollup.config.ts CHANGED
@@ -1,32 +1,32 @@
1
- import commonjs from "@rollup/plugin-commonjs";
2
- import resolve from "@rollup/plugin-node-resolve";
3
- import terser from "@rollup/plugin-terser";
4
- import typescript from "@rollup/plugin-typescript";
5
- import { readFileSync } from "fs";
6
-
7
- const pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
8
-
9
- export default [
10
- {
11
- input: "src/index.ts",
12
- output: [
13
- { file: pkg.main, format: "cjs", exports: "named" },
14
- { file: pkg.module, format: "es", exports: "named" }
15
- ],
16
- plugins: [
17
- resolve(),
18
- typescript(),
19
- commonjs({ include: ["node_modules/**"] })
20
- ]
21
- },
22
- {
23
- input: "src/global.ts",
24
- output: [ { file: pkg.unpkg, format: "iife", exports: "named" } ],
25
- plugins: [
26
- resolve(),
27
- typescript(),
28
- terser({output: {comments: false}}),
29
- commonjs({ include: ["node_modules/**"] })
30
- ]
31
- }
32
- ];
1
+ import commonjs from "@rollup/plugin-commonjs";
2
+ import resolve from "@rollup/plugin-node-resolve";
3
+ import terser from "@rollup/plugin-terser";
4
+ import typescript from "@rollup/plugin-typescript";
5
+ import { readFileSync } from "fs";
6
+
7
+ const pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
8
+
9
+ export default [
10
+ {
11
+ input: "src/index.ts",
12
+ output: [
13
+ { file: pkg.main, format: "cjs", exports: "named" },
14
+ { file: pkg.module, format: "es", exports: "named" }
15
+ ],
16
+ plugins: [
17
+ resolve(),
18
+ typescript(),
19
+ commonjs({ include: ["node_modules/**"] })
20
+ ]
21
+ },
22
+ {
23
+ input: "src/global.ts",
24
+ output: [ { file: pkg.unpkg, format: "iife", exports: "named" } ],
25
+ plugins: [
26
+ resolve(),
27
+ typescript(),
28
+ terser({output: {comments: false}}),
29
+ commonjs({ include: ["node_modules/**"] })
30
+ ]
31
+ }
32
+ ];