Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

posthog-js

Package Overview
Dependencies
Maintainers
3
Versions
664
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthog-js - npm Package Compare versions

Comparing version 1.8.5 to 1.8.6

react/dist/esm/index.js

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 1.8.6 - 2021-02-05
- When logging in as another user, don't link those two identities (#174)
## 1.8.5 - 2021-01-18

@@ -2,0 +5,0 @@

13

package.json
{
"name": "posthog-js",
"version": "1.8.5",
"version": "1.8.6",
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",

@@ -15,9 +15,9 @@ "repository": "https://github.com/PostHog/posthog-js",

"build-es-module": "rollup -i src/loader-module.js -f es -o dist/es.js -c rollup.config.js",
"build-react": "cd react; yarn; cd ..; tsc -p react",
"build-react": "cd react; yarn; yarn build;",
"process-types": "mkdir -p dist; eslint src --ext .ts -c .eslintrc.ts.js --fix && tsc && cp -f src/*.d.ts dist/",
"lint": "eslint src --fix",
"prepublishOnly": "yarn lint && yarn test && yarn build && yarn test-react",
"test": "jest",
"test-react": "cd react; jest",
"test-watch": "jest --watch",
"test": "jest src",
"test-react": "cd react; yarn test",
"test-watch": "jest --watch src",
"cypress": "cypress open"

@@ -53,2 +53,3 @@ },

"localStorage": "1.0.4",
"node-fetch": "^2.6.1",
"parcel": "^1.12.4",

@@ -60,2 +61,4 @@ "posthog-js": "link:.",

"sinon": "9.0.2",
"testcafe": "^1.10.1",
"testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
"typescript": "^3.9.6"

@@ -62,0 +65,0 @@ },

@@ -14,11 +14,16 @@ {

"scripts": {
"clean": "rimraf -r dist",
"prebuild": "npm run clean",
"build": "tsc",
"start": "tsc-watch",
"test": "jest"
"clean": "rimraf -r dist",
"build": "yarn clean && cross-env NODE_ENV=production rollup -c rollup.config.ts",
"test": "jest",
"test:debug": "jest --runInBand",
"prepublishOnly": "yarn test && yarn build"
},
"main": "dist/index.js",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
"types": "dist/types",
"files": [
"dist/*"
"dist/*",
"README.md"
],

@@ -36,5 +41,10 @@ "peerDependencies": {

"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-inject": "^4.0.2",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-replace": "^2.3.4",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "^3.7.0",
"@types/react": "^17.0.0",
"cross-env": "^7.0.3",
"given2": "^2.1.7",

@@ -47,5 +57,7 @@ "jest": "^26.6.3",

"rimraf": "^3.0.2",
"rollup": "^2.35.1",
"rollup-plugin-typescript2": "^0.29.0",
"ts-jest": "^26.4.4",
"tsc-watch": "^4.2.9",
"typescript": "^4.1.2"
"typescript": "^4.1.3"
},

@@ -52,0 +64,0 @@ "jest": {

@@ -12,2 +12,12 @@ # PostHog.js

### Running testcafe E2E tests via browserstack
Testing on IE11 requires a bit more setup.
1. Run `posthog` locally on port 8000
2. Run `python manage.py setup_dev --no-data` on posthog repo, which sets up a demo account
3. Optional: rebuild array.js on changes: `nodemon -w src/ --exec bash -c "yarn build-array"`
4. Export browserstack credentials: `export BROWSERSTACK_USERNAME=xxx BROWSERSTACK_ACCESS_KEY=xxx`
5. Run tests: `npx testcafe "browserstack:ie" testcafe/e2e.spec.js`
## Developing together with another repo

@@ -14,0 +24,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc