UNPKG

mixpanel-browser

Version:

The official Mixpanel JavaScript browser client library

99 lines (98 loc) 3.86 kB
{ "name": "mixpanel-browser", "version": "2.75.0", "description": "The official Mixpanel JavaScript browser client library", "main": "dist/mixpanel.cjs.js", "module": "dist/mixpanel.module.js", "directories": { "test": "tests" }, "scripts": { "build": "./build.sh", "build-watch": "npx rollup -c rollup.config.mjs -w", "build-watch:full": "FULL=1 npx rollup -c rollup.config.mjs -w", "build-dist": "DIST=1 ./build.sh", "build-full": "FULL=1 ./build.sh", "build-test-polyfill": "webpack tests/vendor/core-js-polyfills.src.js tests/vendor/core-js-polyfills.js", "build-browser-tests": "npx rollup -c tests/browser/client/rollup.config.mjs -w", "dox": "node doc/build-docs.js", "dox-publish": "rdme docs:single doc/readme.io/javascript-full-api-reference.md --key=$RDME_API_KEY --version=$RDME_DOC_VERSION", "test-server": "echo 'Browse to localhost:3001/tests' && node testServer.js", "test-server:background": "screen -S testServer -X stuff $^C; screen -X -S testServer quit; screen -d -m -S testServer bash -c 'npm run test-server; exec bash' && wait-on --timeout 10000 http://localhost:3001/tests", "lint": "eslint ./src", "lint-fix": "eslint --fix ./src && eslint --fix ./tests/browser", "prepublishOnly": "npm run build-dist", "start": "pushd examples; python -m SimpleHTTPServer; popd", "test": "npm run lint && npm run unit-test", "test:ci": "npm run lint && npm run unit-test:ci", "unit-test": "BABEL_ENV=test mocha --require babel-core/register tests/unit/*.js", "unit-test:ci": "BABEL_ENV=test mocha --require babel-core/register tests/unit/*.js --reporter json --reporter-option output=tests/unit/results/results.json", "integration-test:local": "wdio run tests/browser/wdio.local.mjs", "integration-test:local:watch": "wdio run tests/browser/wdio.local.mjs --watch", "integration-test:sauce": "wdio run tests/browser/wdio.sauce.mjs", "integration-test": "DEV=1 npm run integration-test:local:watch", "integration-test:full": "npm run integration-test:local:watch", "validate": "npm ls" }, "types": "./src/index.d.ts", "repository": { "type": "git", "url": "https://github.com/mixpanel/mixpanel-js.git" }, "author": "", "license": "Apache-2.0", "bugs": { "url": "https://github.com/mixpanel/mixpanel-js/issues" }, "homepage": "https://github.com/mixpanel/mixpanel-js", "engines": { "node": ">=20 <26" }, "devDependencies": { "@ampproject/rollup-plugin-closure-compiler": "0.27.0", "@rollup/plugin-alias": "5.1.1", "@rollup/plugin-commonjs": "28.0.3", "@rollup/plugin-node-resolve": "15.2.3", "@rollup/plugin-swc": "0.4.0", "@swc/core": "1.11.7", "@wdio/cli": "9.12.0", "@wdio/junit-reporter": "9.12.2", "@wdio/local-runner": "9.12.0", "@wdio/mocha-framework": "9.11.0", "@wdio/sauce-service": "9.21.0", "@wdio/spec-reporter": "9.11.0", "babel-core": "6.7.2", "babel-preset-es2015": "6.6.0", "babelify": "6.1.2", "browserify": "10.2.4", "chai": "4.0.0", "chromedriver": "134.0.3", "cookie-parser": "1.3.4", "core-js": "3.6.5", "dox": "0.9.0", "eslint": "4.18.2", "express": "5.2.1", "fake-indexeddb": "6.0.0", "jsdom": "16.5.0", "jsdom-global": "3.0.2", "localStorage": "1.0.4", "lodash": "4.17.21", "mocha": "11.1.0", "morgan": "1.9.1", "pug": "3.0.3", "rdme": "7.5.0", "request": "2.88.0", "rollup": "4.34.9", "rollup-plugin-esbuild": "6.2.1", "sinon": "8.1.1", "sinon-chai": "3.5.0", "wait-on": "8.0.3", "wdio-ctrf-json-reporter": "0.0.13", "webpack": "1.12.2" }, "dependencies": { "@mixpanel/rrweb": "2.0.0-alpha.18.3", "@mixpanel/rrweb-plugin-console-record": "2.0.0-alpha.18.3", "json-logic-js": "2.0.5" } }