Socket
Socket
Sign inDemoInstall

ember-metrics

Package Overview
Dependencies
191
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

8

addon/metrics-adapters/google-analytics.js

@@ -10,3 +10,2 @@ import Ember from 'ember';

assert,
merge,
get,

@@ -17,2 +16,3 @@ $,

const { compact } = objectTransforms;
const assign = Ember.assign || Ember.merge;

@@ -41,3 +41,3 @@ export default BaseAdapter.extend({

/* jshint ignore:end */
if (hasOptions) {

@@ -73,3 +73,3 @@ window.ga('create', id, config);

const event = merge(sendEvent, gaEvent);
const event = assign(sendEvent, gaEvent);
window.ga('send', event);

@@ -84,3 +84,3 @@

const event = merge(sendEvent, compactedOptions);
const event = assign(sendEvent, compactedOptions);
window.ga('send', event);

@@ -87,0 +87,0 @@

@@ -9,3 +9,2 @@ import Ember from 'ember';

get,
merge,
set,

@@ -16,2 +15,3 @@ $,

} = Ember;
const assign = Ember.assign || Ember.merge;
const {

@@ -72,3 +72,3 @@ compact

const pageEvent = merge(sendEvent, compactedOptions);
const pageEvent = assign(sendEvent, compactedOptions);

@@ -75,0 +75,0 @@ window[dataLayer].push(pageEvent);

@@ -10,3 +10,2 @@ import Ember from 'ember';

get,
merge
} = Ember;

@@ -18,2 +17,3 @@ const {

} = objectTransforms;
const assign = Ember.assign || Ember.merge;

@@ -66,3 +66,3 @@ export default BaseAdapter.extend({

const event = { event: 'page viewed' };
const mergedOptions = merge(event, options);
const mergedOptions = assign(event, options);

@@ -69,0 +69,0 @@ this.trackEvent(mergedOptions);

@@ -10,3 +10,2 @@ import Ember from 'ember';

set,
merge,
copy,

@@ -17,2 +16,3 @@ A: emberArray,

const { keys } = Object;
const assign = Ember.assign || Ember.merge;

@@ -114,3 +114,3 @@ export default Service.extend({

/**
* Invokes a method across all activated adapters.
* Invokes a method on the passed adapter, or across all activated adapters if not passed.
*

@@ -129,3 +129,3 @@ * @method invoke

const context = copy(get(this, 'context'));
const mergedOptions = merge(context, options);
const mergedOptions = assign(context, options);

@@ -132,0 +132,0 @@ selectedAdapterNames

{
"name": "ember-metrics",
"version": "0.6.0",
"version": "0.6.1",
"description": "Send data to multiple analytics integrations without re-implementing new API",

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

@@ -229,2 +229,13 @@ # ember-metrics

If an adapter implements specific methods you wish to call, then you can use `invoke`
- `invoke(method, [analyticsName], options)`
```js
metrics.invoke('trackLink', 'Piwik', { url: 'my_favorite_link' , linkType: 'download' });
```
### Lazy Initialization

@@ -231,0 +242,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc