Socket
Socket
Sign inDemoInstall

@atlaskit/analytics-next

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/analytics-next - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

CHANGELOG.md
# @atlaskit/analytics-next
## 1.1.1
- [patch] Remove min requirement of node 8 for analytics-next [c864671](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c864671)
## 1.1.0

@@ -4,0 +7,0 @@ - [minor] adds createAndFireEvent utility method and updates docs [24a93fc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24a93fc)

14

dist/cjs/AnalyticsEvent.js

@@ -17,2 +17,6 @@ 'use strict';

var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

@@ -44,6 +48,2 @@

var _cloneDeep = require('clone-deep');
var _cloneDeep2 = _interopRequireDefault(_cloneDeep);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -58,3 +58,7 @@

this.clone = function () {
var payload = (0, _cloneDeep2.default)(_this.payload);
// We stringify and parse here to get a hacky "deep clone" of the object.
// This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,
// but none of those need to be represented in our payload, so we consider this fine
var payload = JSON.parse((0, _stringify2.default)(_this.payload));
return new AnalyticsEvent({ payload: payload });

@@ -61,0 +65,0 @@ };

@@ -9,2 +9,6 @@ 'use strict';

var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');

@@ -56,6 +60,2 @@

var _cloneDeep = require('clone-deep');
var _cloneDeep2 = _interopRequireDefault(_cloneDeep);
var _AnalyticsEvent2 = require('./AnalyticsEvent');

@@ -85,3 +85,8 @@

var handlers = [].concat((0, _toConsumableArray3.default)(_this.handlers));
var payload = (0, _cloneDeep2.default)(_this.payload);
// We stringify and parse here to get a hacky "deep clone" of the object.
// This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,
// but none of those need to be represented in our payload, so we consider this fine
var payload = JSON.parse((0, _stringify2.default)(_this.payload));
return new UIAnalyticsEvent({ context: context, handlers: handlers, payload: payload });

@@ -88,0 +93,0 @@ };

@@ -5,2 +5,3 @@ import _Array$from from 'babel-runtime/core-js/array/from';

import _typeof from 'babel-runtime/helpers/typeof';
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

@@ -27,4 +28,2 @@ import _createClass from 'babel-runtime/helpers/createClass';

import cloneDeep from 'clone-deep';
var AnalyticsEvent = function () {

@@ -37,3 +36,7 @@ function AnalyticsEvent(props) {

this.clone = function () {
var payload = cloneDeep(_this.payload);
// We stringify and parse here to get a hacky "deep clone" of the object.
// This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,
// but none of those need to be represented in our payload, so we consider this fine
var payload = JSON.parse(_JSON$stringify(_this.payload));
return new AnalyticsEvent({ payload: payload });

@@ -40,0 +43,0 @@ };

import _Array$from from 'babel-runtime/core-js/array/from';
import _String$raw from 'babel-runtime/core-js/string/raw';
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';

@@ -29,4 +30,2 @@ import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';

import cloneDeep from 'clone-deep';
import AnalyticsEvent from './AnalyticsEvent';

@@ -51,3 +50,8 @@ var _console = console,

var handlers = [].concat(_toConsumableArray(_this.handlers));
var payload = cloneDeep(_this.payload);
// We stringify and parse here to get a hacky "deep clone" of the object.
// This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,
// but none of those need to be represented in our payload, so we consider this fine
var payload = JSON.parse(_JSON$stringify(_this.payload));
return new UIAnalyticsEvent({ context: context, handlers: handlers, payload: payload });

@@ -54,0 +58,0 @@ };

{
"name": "@atlaskit/analytics-next",
"version": "1.0.3"
"version": "1.1.0"
}
{
"name": "@atlaskit/analytics-next",
"version": "1.1.0",
"version": "1.1.1",
"description": "The 🆕 Atlaskit component analytics framework",

@@ -25,3 +25,2 @@ "license": "Apache-2.0",

"dependencies": {
"clone-deep": "^3.0.1",
"prop-types": "^15.5.10"

@@ -28,0 +27,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc