New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

analytics-client

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics-client - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4-roman-config-003b813e4db08c81d1be96283b61fb7798b33f26

dist/index.js.map

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Change Log

# v0.4.4
## (2020-03-31)
* Adjust compiler settings [Roman Mazur]
# v0.4.3

@@ -9,0 +14,0 @@ ## (2020-03-31)

1

dist/index.js

@@ -9,1 +9,2 @@ "use strict";

exports.LocalExperiment = experiment_1.LocalExperiment;
//# sourceMappingURL=index.js.map

2

dist/package.json
{
"name": "analytics-client",
"version": "0.4.3",
"version": "0.4.4-roman-config-003b813e4db08c81d1be96283b61fb7798b33f26",
"description": "Convenient builders to compose analytics tools",

@@ -5,0 +5,0 @@ "repository": {

@@ -1,2 +0,2 @@

import amplitude from 'amplitude-js';
import * as amplitude from 'amplitude-js';
import { Mixpanel } from 'mixpanel-browser';

@@ -3,0 +3,0 @@ export interface Client {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var amplitude_js_1 = __importDefault(require("amplitude-js"));
var js_cookie_1 = __importDefault(require("js-cookie"));
var amplitude = require("amplitude-js");
var Cookies = require("js-cookie");
var mixpanel = require("mixpanel-browser");

@@ -12,3 +9,3 @@ var package_json_1 = require("../package.json");

var identifyObject = function () {
return new amplitude_js_1.default.Identify().set('AnalyticsClientVersion', package_json_1.version);
return new amplitude.Identify().set('AnalyticsClientVersion', package_json_1.version);
};

@@ -18,3 +15,3 @@ var DefaultClient = (function () {

this.config = config;
this.amplitudeInstance = amplitude_js_1.default.getInstance(config.projectName);
this.amplitudeInstance = amplitude.getInstance(config.projectName);
var amplConfig = Object.assign({}, config.amplitude);

@@ -32,3 +29,3 @@ if (config.endpoint) {

var mixpanelDataPresent = false;
for (var key in js_cookie_1.default.get()) {
for (var key in Cookies.get()) {
if (key.startsWith('mp_' + this.config.projectName)) {

@@ -75,1 +72,2 @@ mixpanelDataPresent = true;

exports.createClient = createClient;
//# sourceMappingURL=client.js.map

@@ -6,1 +6,2 @@ "use strict";

exports.COOKIES_TTL_DAYS = 300;
//# sourceMappingURL=config.js.map

@@ -80,1 +80,2 @@ "use strict";

exports.LocalExperiment = LocalExperiment;
//# sourceMappingURL=experiment.js.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var js_cookie_1 = __importDefault(require("js-cookie"));
var Cookies = require("js-cookie");
var config_1 = require("./config");

@@ -13,3 +10,3 @@ var deviceIdSeparator = /\s*,\s*/;

this.deviceIds = new Set();
var storedValue = js_cookie_1.default.get(config_1.COOKIES_DEVICE_IDS);
var storedValue = Cookies.get(config_1.COOKIES_DEVICE_IDS);
this.setDeviceIds(storedValue, null);

@@ -23,3 +20,3 @@ }

this.deviceIds = new Set(list.concat(Array.from(this.deviceIds)));
js_cookie_1.default.set(config_1.COOKIES_DEVICE_IDS, Array.from(this.deviceIds).join(','), {
Cookies.set(config_1.COOKIES_DEVICE_IDS, Array.from(this.deviceIds).join(','), {
expires: config_1.COOKIES_TTL_DAYS,

@@ -31,3 +28,3 @@ path: '/',

AnalyticsUrlParams.prototype.clearCookies = function () {
js_cookie_1.default.remove(config_1.COOKIES_DEVICE_IDS);
Cookies.remove(config_1.COOKIES_DEVICE_IDS);
};

@@ -72,1 +69,2 @@ AnalyticsUrlParams.prototype.consumeUrlParameters = function (queryString) {

exports.AnalyticsUrlParams = AnalyticsUrlParams;
//# sourceMappingURL=url-params.js.map

@@ -29,1 +29,2 @@ "use strict";

});
//# sourceMappingURL=client.test.js.map

@@ -78,1 +78,2 @@ "use strict";

});
//# sourceMappingURL=experiment.test.js.map

@@ -104,1 +104,2 @@ "use strict";

});
//# sourceMappingURL=url-params.test.js.map
{
"name": "analytics-client",
"version": "0.4.3",
"version": "0.4.4-roman-config-003b813e4db08c81d1be96283b61fb7798b33f26",
"description": "Convenient builders to compose analytics tools",

@@ -5,0 +5,0 @@ "repository": {

@@ -1,3 +0,3 @@

import amplitude from 'amplitude-js';
import Cookies from 'js-cookie';
import * as amplitude from 'amplitude-js';
import * as Cookies from 'js-cookie';
import { Mixpanel } from 'mixpanel-browser';

@@ -4,0 +4,0 @@ import mixpanel = require('mixpanel-browser');

@@ -1,2 +0,2 @@

import Cookies from 'js-cookie';
import * as Cookies from 'js-cookie';
import { Mixpanel } from 'mixpanel-browser';

@@ -3,0 +3,0 @@ import {

@@ -13,7 +13,6 @@ {

"resolveJsonModule": true,
"sourceMap": false,
"sourceMap": true,
"strictNullChecks": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"esModuleInterop": false,
"baseUrl": ".",

@@ -20,0 +19,0 @@ "keyofStringsOnly": true

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