UNPKG

@analytics/core

Version:

Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.

102 lines (101 loc) 3.35 kB
{ "name": "@analytics/core", "version": "0.13.2", "type": "module", "description": "Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.", "author": "David Wells <hello@davidwells.io>", "license": "MIT", "homepage": "https://github.com/DavidWells/analytics/tree/master/packages/analytics-core#readme", "keywords": [ "analytics", "analytics-project", "metrics", "telemetry", "stats" ], "funding": [ { "type": "GitHub Sponsors", "url": "https://github.com/sponsors/davidwells" } ], "amdName": "_analytics", "source": "src/index.js", "main": "dist/server/analytics-core.cjs", "module": "dist/server/analytics-core.module.js", "unpkg": "dist/server/analytics-core.umd.js", "types": "dist/types.d.ts", "exports": { ".": { "types": "./dist/types.d.ts", "import": "./dist/server/analytics-core.module.js", "require": "./dist/server/analytics-core.cjs" }, "./client": { "types": "./dist/types.d.ts", "import": "./dist/client/core.module.js", "require": "./dist/client/core.js" } }, "browser": { "./dist/server/analytics-core.cjs": "./dist/client/core.js", "./dist/server/analytics-core.umd.js": "./dist/client/core.umd.js", "./dist/server/analytics-core.module.js": "./dist/client/core.module.js" }, "sideEffects": false, "scripts": { "test": "uvu tests '.test.([mc]js|[jt]sx?)$'", "test:watch": "watchlist tests -- npm test", "prebuild": "rimraf _temp-types && cd ../analytics-utils && npm run build", "build": "npm run build-client && npm run build-server && npm run types", "build-client": "cd client && npm run build", "build-server": "cd server && npm run build", "types": "../../node_modules/.bin/jsdoc -t ../../node_modules/tsd-jsdoc/dist -r ./src/ -d _temp-types && node scripts/types.cjs", "publish": "git push origin && git push origin --tags", "release:patch": "npm version patch && npm publish", "release:minor": "npm version minor && npm publish", "release:major": "npm version major && npm publish" }, "repository": { "type": "git", "url": "https://github.com/DavidWells/analytics" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", "dist/**/*.d.ts", "dist/**/package.json", "client/**/*.js", "client/**/*.js.map", "client/**/*.d.ts", "client/**/package.json", "!client/node_modules", "server/**/*.js", "server/**/*.js.map", "server/**/*.d.ts", "server/**/package.json", "!server/node_modules", "README.md" ], "dependencies": { "@analytics/global-storage-utils": "^0.1.9", "@analytics/type-utils": "^0.6.4", "analytics-utils": "^1.1.1" }, "devDependencies": { "@babel/core": "7.17.0", "@babel/plugin-proposal-class-properties": "7.16.7", "@babel/plugin-transform-runtime": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/register": "7.17.0", "@babel/runtime": "7.17.0", "gen-esm-wrapper": "^1.1.3", "microbundle": "^0.14.2", "mkdirp": "^0.5.1", "npm-run-all": "^4.1.5", "rimraf": "^2.6.3", "sinon": "7.2.3", "uvu": "^0.5.6" }, "gitHead": "1aaf396dcb3314d82b3a48b16e152c7899f3ee74" }