posthog-js 1.29.2 → 1.29.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.29.2",
3
+ "version": "1.29.3",
4
4
  "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
5
5
  "repository": "https://github.com/PostHog/posthog-js",
6
6
  "author": "hey@posthog.com",
@@ -10,6 +10,7 @@
10
10
  "build": "yarn build-rollup && yarn build-react",
11
11
  "build-rollup": "yarn build:prepare-types && rollup -c",
12
12
  "build-react": "cd react; yarn; yarn build;",
13
+ "lint": "eslint src",
13
14
  "build:prepare-types": "yarn build:prepare-types:tsc && yarn build:prepare-types:copy && yarn build:prepare-types:fix && yarn build:prepare-types:rename-1 && yarn build:prepare-types:rename-2 && yarn build:prepare-types:rename-3 && yarn build:prepare-types:rename-4 && yarn build:prepare-types:rename-5 && yarn build:prepare-types:rename-6",
14
15
  "build:prepare-types:tsc": "rm -rf lib && tsc -b",
15
16
  "build:prepare-types:copy": "rm -rf lib/rrweb && rm -rf lib/rrweb-snapshot && cp -a node_modules/rrweb lib/rrweb; cp -a node_modules/rrweb-snapshot/typings lib/rrweb-snapshot",
@@ -20,13 +21,13 @@
20
21
  "build:prepare-types:rename-4": "cd lib/rrweb/typings && sed 's/rrweb-snapshot/..\\/..\\/rrweb-snapshot/g' utils.d.ts > x && mv x utils.d.ts",
21
22
  "build:prepare-types:rename-5": "cd lib/src/extensions && sed 's/rrweb\\/typings/..\\/..\\/rrweb\\/typings/g' sessionrecording.d.ts > x && mv x sessionrecording.d.ts",
22
23
  "build:prepare-types:rename-6": "cd lib/src && sed 's/rrweb-snapshot/..\\/rrweb-snapshot/g' types.d.ts > x && mv x types.d.ts",
23
- "lint": "eslint ./src/**/*.{ts,js}",
24
24
  "prettier": "prettier --write src/**/*",
25
25
  "prepublishOnly": "yarn lint && yarn test && yarn build && yarn test-react",
26
- "test": "jest",
26
+ "test": "jest src",
27
27
  "test-react": "cd react; yarn test",
28
- "test-watch": "jest --watch",
29
- "cypress": "cypress open"
28
+ "test-watch": "jest --watch src",
29
+ "cypress": "cypress open",
30
+ "prepare": "husky install"
30
31
  },
31
32
  "main": "dist/module.js",
32
33
  "module": "dist/es.js",
@@ -61,7 +62,7 @@
61
62
  "eslint-plugin-react-hooks": "^4.6.0",
62
63
  "fast-check": "^2.17.0",
63
64
  "given2": "^2.1.7",
64
- "husky": "^4.2.5",
65
+ "husky": "^8.0.1",
65
66
  "jest": "^27.5.1",
66
67
  "jsdom": "16.2.2",
67
68
  "jsdom-global": "3.0.2",
@@ -82,10 +83,9 @@
82
83
  },
83
84
  "lint-staged": {
84
85
  "*.{ts,tsx,js,json}": "prettier --write",
85
- "*.js": "eslint --fix",
86
+ "*.js": "eslint src --fix",
86
87
  "*.{ts,tsx}": [
87
- "eslint --fix",
88
- "tsc --noEmit --esModuleInterop --jsx react"
88
+ "eslint src --fix"
89
89
  ]
90
90
  }
91
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.29.2",
3
+ "version": "1.29.3",
4
4
  "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
5
5
  "repository": "https://github.com/PostHog/posthog-js",
6
6
  "author": "hey@posthog.com",
@@ -10,6 +10,7 @@
10
10
  "build": "yarn build-rollup && yarn build-react",
11
11
  "build-rollup": "yarn build:prepare-types && rollup -c",
12
12
  "build-react": "cd react; yarn; yarn build;",
13
+ "lint": "eslint src",
13
14
  "build:prepare-types": "yarn build:prepare-types:tsc && yarn build:prepare-types:copy && yarn build:prepare-types:fix && yarn build:prepare-types:rename-1 && yarn build:prepare-types:rename-2 && yarn build:prepare-types:rename-3 && yarn build:prepare-types:rename-4 && yarn build:prepare-types:rename-5 && yarn build:prepare-types:rename-6",
14
15
  "build:prepare-types:tsc": "rm -rf lib && tsc -b",
15
16
  "build:prepare-types:copy": "rm -rf lib/rrweb && rm -rf lib/rrweb-snapshot && cp -a node_modules/rrweb lib/rrweb; cp -a node_modules/rrweb-snapshot/typings lib/rrweb-snapshot",
@@ -20,13 +21,13 @@
20
21
  "build:prepare-types:rename-4": "cd lib/rrweb/typings && sed 's/rrweb-snapshot/..\\/..\\/rrweb-snapshot/g' utils.d.ts > x && mv x utils.d.ts",
21
22
  "build:prepare-types:rename-5": "cd lib/src/extensions && sed 's/rrweb\\/typings/..\\/..\\/rrweb\\/typings/g' sessionrecording.d.ts > x && mv x sessionrecording.d.ts",
22
23
  "build:prepare-types:rename-6": "cd lib/src && sed 's/rrweb-snapshot/..\\/rrweb-snapshot/g' types.d.ts > x && mv x types.d.ts",
23
- "lint": "eslint ./src/**/*.{ts,js}",
24
24
  "prettier": "prettier --write src/**/*",
25
25
  "prepublishOnly": "yarn lint && yarn test && yarn build && yarn test-react",
26
- "test": "jest",
26
+ "test": "jest src",
27
27
  "test-react": "cd react; yarn test",
28
- "test-watch": "jest --watch",
29
- "cypress": "cypress open"
28
+ "test-watch": "jest --watch src",
29
+ "cypress": "cypress open",
30
+ "prepare": "husky install"
30
31
  },
31
32
  "main": "dist/module.js",
32
33
  "module": "dist/es.js",
@@ -61,7 +62,7 @@
61
62
  "eslint-plugin-react-hooks": "^4.6.0",
62
63
  "fast-check": "^2.17.0",
63
64
  "given2": "^2.1.7",
64
- "husky": "^4.2.5",
65
+ "husky": "^8.0.1",
65
66
  "jest": "^27.5.1",
66
67
  "jsdom": "16.2.2",
67
68
  "jsdom-global": "3.0.2",
@@ -82,10 +83,9 @@
82
83
  },
83
84
  "lint-staged": {
84
85
  "*.{ts,tsx,js,json}": "prettier --write",
85
- "*.js": "eslint --fix",
86
+ "*.js": "eslint src --fix",
86
87
  "*.{ts,tsx}": [
87
- "eslint --fix",
88
- "tsc --noEmit --esModuleInterop --jsx react"
88
+ "eslint src --fix"
89
89
  ]
90
90
  }
91
91
  }