snowplow-tracker-core
Advanced tools
Comparing version 0.9.0-beta.4 to 0.9.0
{ | ||
"name": "snowplow-tracker-core", | ||
"version": "0.9.0-beta.4", | ||
"version": "0.9.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
@@ -9,3 +9,4 @@ # Snowplow JavaScript Tracker Core | ||
Can be built, tested and packed locally directly with [Node](https://nodejs.org/en/) (10+) and `npm`. | ||
Can be built, tested and packed locally directly with [Node](https://nodejs.org/en/) (10+) and `npm`. | ||
Use `npm install`, `npm run build`, `npm run test` and `npm pack` | ||
@@ -58,6 +59,6 @@ | ||
```js | ||
const trackerCore = require('snowplow-tracker-core'); | ||
const trackerCore = require('snowplow-tracker-core').trackerCore; | ||
// Create an instance with base 64 encoding set to false (it defaults to true) | ||
const core = new trackerCore.TrackerCore(false); | ||
const core = trackerCore(false); | ||
``` | ||
@@ -68,6 +69,6 @@ | ||
```js | ||
import { TrackerCore } from 'snowplow-tracker-core'; | ||
import { trackerCore } from 'snowplow-tracker-core'; | ||
// Create an instance with base 64 encoding set to false (it defaults to true) | ||
const core = new TrackerCore(false) | ||
const core = trackerCore(false) | ||
``` | ||
@@ -155,3 +156,3 @@ | ||
```js | ||
const core = new TrackerCore(true, console.log); | ||
const core = trackerCore(true, console.log); | ||
``` | ||
@@ -164,3 +165,3 @@ | ||
```js | ||
const core = new TrackerCore(); // Base 64 encoding on by default | ||
const core = trackerCore(); // Base 64 encoding on by default | ||
@@ -167,0 +168,0 @@ core.setBase64Encoding(false); // Base 64 encoding is now off |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189
366452
1