{
  "name": "@snowplow/browser-tracker-core",
  "version": "3.23.1",
  "description": "Core functionality for Snowplow Browser trackers",
  "homepage": "http://bit.ly/sp-js",
  "bugs": "https://github.com/snowplow/snowplow-javascript-tracker/issues",
  "repository": {
    "type": "git",
    "url": "https://github.com/snowplow/snowplow-javascript-tracker.git"
  },
  "license": "BSD-3-Clause",
  "author": "Paul Boocock",
  "sideEffects": false,
  "main": "./dist/index.umd.js",
  "module": "./dist/index.module.js",
  "types": "./dist/index.module.d.ts",
  "files": [
    "dist"
  ],
  "dependencies": {
    "@snowplow/tracker-core": "3.23.1",
    "sha1": "^1.1.1",
    "tslib": "^2.3.1",
    "uuid": "^3.4.0"
  },
  "devDependencies": {
    "@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
    "@rollup/plugin-commonjs": "~21.0.2",
    "@rollup/plugin-node-resolve": "~13.1.3",
    "@types/jest": "~27.4.1",
    "@types/jsdom": "~16.2.14",
    "@types/sha1": "~1.1.3",
    "@types/uuid": "~3.4.6",
    "@typescript-eslint/eslint-plugin": "~5.15.0",
    "@typescript-eslint/parser": "~5.15.0",
    "eslint": "~8.11.0",
    "jest": "~27.5.1",
    "jest-environment-jsdom": "~27.5.1",
    "jest-environment-jsdom-global": "~3.0.0",
    "jest-standard-reporter": "~2.0.0",
    "rollup": "~2.70.1",
    "rollup-plugin-cleanup": "~3.2.1",
    "rollup-plugin-license": "~2.6.1",
    "rollup-plugin-terser": "~7.0.2",
    "rollup-plugin-ts": "~2.0.5",
    "ts-jest": "~27.1.3",
    "typescript": "~4.6.2",
    "@testing-library/dom": "~9.3.1"
  },
  "scripts": {
    "build": "rollup -c --silent --failAfterWarnings",
    "test": "jest"
  },
  "readme": "# Snowplow Browser Tracker Core\n\n[![npm version][npm-image]][npm-url]\n[![License][license-image]](LICENSE)\n\nBrowser Core module to be used by Snowplow Browser based trackers.\n\nIt should rarely be used alone, you probably want `@snowplow/browser-tracker`.\n\n## Maintainer quick start\n\nPart of the Snowplow JavaScript Tracker monorepo.  \nBuild with [Node.js](https://nodejs.org/en/) (14 or 16) and [Rush](https://rushjs.io/).\n\n### Setup repository\n\n```bash\nnpm install -g @microsoft/rush \ngit clone https://github.com/snowplow/snowplow-javascript-tracker.git\nrush update\n```\n\n### Building Browser Tracker Core\n\n```bash\ncd libraries/browser-tracker-core\nrushx build\n```\n\n### Running tests\n\n```bash\nrushx test\n```\n\n## Package Installation\n\nWith npm:\n\n```bash\nnpm install @snowplow/browser-tracker-core\n```\n\n## Usage\n\n```js\nimport { addTracker, createSharedState, getTracker } from '@snowplow/browser-tracker-core';\n\nconst sharedState = createSharedState();\nconst tracker = addTracker('snowplow_sp1', 'sp1', 'js-3.0.0', '{{collector}}', sharedState, {}); // Also stores reference at module level\nconst sameTracker = getTracker('snowplow_sp1');\n```\n\n### Example\n\n```js\nconst domainUserId = tracker.getDomainUserId();\n```\n\n## Other features\n\nThis package contains a number of helper functions for tracking events in the browser as well as the core functionality of the Snowplow JavaScript Tracker.\n\n## Copyright and license\n\nLicensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).\n\nCopyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang.\n\nAll rights reserved.\n\n[npm-url]: https://www.npmjs.com/package/@snowplow/tracker-core\n[npm-image]: https://img.shields.io/npm/v/@snowplow/tracker-core\n[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/\n[osi]: https://opensource.org/licenses/BSD-3-Clause\n[license-image]: https://img.shields.io/npm/l/@snowplow/browser-tracker-core\n"
}