react-metrics-service
Advanced tools
Comparing version 0.1.0 to 0.2.1
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.MetricsService=t(require("react")):e.MetricsService=t(e.react)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.tealium=t.googleTagManager=t.googleAnalyticsLegacy=t.googleAnalytics=t.debugLog=t.metricsServiceClick=t.withMetricsServiceClient=t.withMetricsServiceContext=t.MetricsServiceContext=t.Client=t.createClient=void 0;var o=n(3),i=n(10),c=n(11),a=n(9),u=n(4),l=r(u),s=n(6),f=r(s),p=n(5),d=r(p),y=n(7),v=r(y),h=n(8),g=r(h);t.createClient=o.createClient,t.Client=o.Client,t.MetricsServiceContext=i.MetricsServiceContext,t.withMetricsServiceContext=i.withMetricsServiceContext,t.withMetricsServiceClient=c.withMetricsServiceClient,t.metricsServiceClick=a.metricsServiceClick,t.debugLog=l.default,t.googleAnalytics=f.default,t.googleAnalyticsLegacy=d.default,t.googleTagManager=v.default,t.tealium=g.default},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(12),i=r(o),c=function(e,t){return t+"("+(0,i.default)(e)+")"};t.default=c},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=27e3,c=function(){function e(){var t=this,o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=o.dispatchers,c=o.dispatcher;n(this,e),this._dispatchers=[],i&&i.forEach&&i.forEach(function(e){t.addDispatcher(e)}),c&&"object"===("undefined"==typeof c?"undefined":r(c))&&this.addDispatcher(c)}return o(e,[{key:"addDispatcher",value:function(e){function t(){}return e._dispatcherId||(e._dispatcherId=++i),e.componentWillMount||(e.componentWillMount=t),e.componentDidMount||(e.componentDidMount=t),e.componentWillUnmount||(e.componentWillUnmount=t),this._dispatchers.push(e),this}},{key:"removeDispatcher",value:function(e){return this._dispatchers=this.dispatchers.filter(function(t){return t._dispatcherId!==e._dispatcherId}),this}},{key:"callDispatchers",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=!1,i=[];return this.dispatchers.forEach(function(t){var r=t[e];r&&r.constructor&&r.call&&r.apply&&(i.push(r.apply(t,n)),o=!0)}),o||console.warn("react-metrics-service: no dispatcher respond to "+e),i}},{key:"dispatchers",get:function(){return this._dispatchers}}]),e}(),a={get:function(e,t){return e[t]?e[t]:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.callDispatchers.apply(e,[t].concat(r))}}},u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0;try{r=new Proxy(new(Function.prototype.bind.apply(c,[null].concat(t))),a)}catch(o){console.error("react-metrics-service: your javascript implementation doesn't support Proxy! instead of using 'createClient()', use 'new Client()'"),r=new(Function.prototype.bind.apply(c,[null].concat(t)))}return r};t.createClient=u,t.Client=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e=void 0;try{e=new Proxy({},{get:function(e,t){return function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=console).warn.apply(e,["react-metrics-service: called "+t+" with:"].concat(r)),null}}})}catch(t){console.error("react-metrics-service: your javascript implementation doesn't support Proxy! debugLog will not work!"),e={}}return e}();t.debugLog=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.trackingID,n=void 0===t?"":t;return{componentWillMount:function(){"undefined"!=typeof window&&(window._gaq=window._gaq||[],window._gaq.push(["_setAccount",n]))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("script");e.type="text/javascript",e.innerHTML="\n (function() {\n var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n })();\n ",document.head.appendChild(e)}},gaPush:function(){if("undefined"!=typeof window){var e;(e=window._gaq).push.apply(e,arguments)}},gaPageView:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"undefined"!=typeof window&&window._gaq.push(["_trackPageview"].concat(t))}}};t.googleAnalyticsLegacy=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.trackingID,n=void 0===t?"":t;return{componentWillMount:function(){"undefined"!=typeof window&&(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga("create",n,"auto"))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("script");e.type="text/javascript",e.innerHTML="\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ",document.head.appendChild(e)}},gaSend:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if("undefined"!=typeof window){var r;(r=window).ga.apply(r,["send"].concat(t))}},gaPageView:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if("undefined"!=typeof window){var r;(r=window).ga.apply(r,["send","pageview"].concat(t))}}}};t.googleAnalytics=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e){var t=e.containerID,r=void 0===t?"":t,o=e.dataLayer,i=void 0===o?{}:o;return{componentWillMount:function(){"undefined"!=typeof window&&(window.dataLayer=n({},i))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("noscript");e.innerHTML='\n <iframe src="//www.googletagmanager.com/ns.html?id='+r+'"\n height="0" width="0" style="display:none;visibility:hidden">\n ',document.head.appendChild(e),e=document.createElement("script"),e.type="text/javascript",e.innerHTML="\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','"+r+"');\n ",document.head.appendChild(e)}},gtmPush:function(){if("undefined"!=typeof window){var e;(e=window.dataLayer).push.apply(e,arguments)}}}};t.googleTagManager=r,t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e){var t=e.account,r=void 0===t?"":t,o=e.profile,i=void 0===o?"":o,c=e.env,a=void 0===c?"":c,u=e.utag_data,l=void 0===u?{}:u,s=e.url;return{componentWillMount:function(){"undefined"!=typeof document&&(window.utag_data=n({},l))},componentDidMount:function(){if("undefined"!=typeof document){var e=s||"//tags.tiqcdn.com/utag/"+r+"/"+i+"/"+a+"/utag.js",t=document.createElement("script");t.type="text/javascript",t.innerHTML="\n (function(a,b,c,d){\n a='"+e+"';\n b=document;c='script';d=b.createElement(c);d.src=a;\n d.type='text/java'+c;d.async=true;\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a)\n })();\n ",document.head.appendChild(t)}},utagView:function(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof window.utag&&"undefined"!=typeof window.utag.view){var e;(e=window.utag).view.apply(e,arguments)}},utagLink:function(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof window.utag&&"undefined"!=typeof window.utag.link){var e;(e=window.utag).link.apply(e,arguments)}}}};t.tealium=r,t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.metricsServiceClick=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),l=r(u),s=n(2),f=r(s),p=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){var r,s;return s=r=function(r){function u(){return o(this,u),i(this,Object.getPrototypeOf(u).apply(this,arguments))}return c(u,r),a(u,[{key:"handleClick",value:function(){var t;(t=this.context.metricsServiceClient).callDispatchers.apply(t,[e].concat(n))}},{key:"render",value:function(){return l.default.createElement("div",{onClick:this.handleClick.bind(this)},l.default.createElement(t,this.props))}}]),u}(u.Component),r.displayName=(0,f.default)(t,"metricsServiceClick"),r.contextTypes={metricsServiceClient:u.PropTypes.object},s}};t.metricsServiceClick=p,t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsServiceContext=t.withMetricsServiceContext=void 0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),s=r(l),f=function(e){function t(){return i(this,t),c(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"getChildContext",value:function(){return{metricsServiceClient:this.props.client}}},{key:"componentWillMount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentWillMount"].concat(n))}},{key:"componentDidMount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentDidMount"].concat(n))}},{key:"componentWillUnmount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentWillUnmount"].concat(n))}},{key:"render",value:function(){return s.default.createElement("div",null,this.props.children)}}]),t}(l.Component);f.propTypes={client:l.PropTypes.object.isRequired,children:l.PropTypes.node},f.childContextTypes={metricsServiceClient:l.PropTypes.object};var p=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.client;return function(e){return function(n){var r=o(n,[]);return s.default.createElement(f,{client:t},s.default.createElement(e,r))}}};t.withMetricsServiceContext=p,t.MetricsServiceContext=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.withMetricsServiceClient=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),s=r(l),f=n(2),p=r(f),d=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.transform,n=void 0===t?function(e){return{metricsServiceClient:e}}:t;return function(e){var t,r;return r=t=function(t){function r(){return o(this,r),i(this,Object.getPrototypeOf(r).apply(this,arguments))}return c(r,t),u(r,[{key:"render",value:function(){return s.default.createElement(e,a({},n(this.context.metricsServiceClient),this.props))}}]),r}(l.Component),t.displayName=(0,p.default)(e,"withMetricsServiceClient"),t.contextTypes={metricsServiceClient:l.PropTypes.object},r}};t.withMetricsServiceClient=d,t.default=d},function(e,t){"use strict";t.__esModule=!0;var n=function(e){if("string"==typeof e)return e;if(e)return e.displayName||e.name||"Component"};t.default=n}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],t):"object"==typeof exports?exports.MetricsService=t(require("prop-types"),require("react")):e.MetricsService=t(e["prop-types"],e.react)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.tealium=t.googleTagManager=t.googleAnalyticsLegacy=t.googleAnalytics=t.debugLog=t.metricsServiceClick=t.withMetricsServiceClient=t.withMetricsServiceContext=t.MetricsServiceContext=t.Client=t.createClient=void 0;var o=n(4),i=n(11),c=n(12),a=n(10),u=n(5),l=r(u),s=n(7),f=r(s),p=n(6),d=r(p),y=n(8),v=r(y),h=n(9),m=r(h);t.createClient=o.createClient,t.Client=o.Client,t.MetricsServiceContext=i.MetricsServiceContext,t.withMetricsServiceContext=i.withMetricsServiceContext,t.withMetricsServiceClient=c.withMetricsServiceClient,t.metricsServiceClick=a.metricsServiceClick,t.debugLog=l.default,t.googleAnalytics=f.default,t.googleAnalyticsLegacy=d.default,t.googleTagManager=v.default,t.tealium=m.default},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(13),i=r(o),c=function(e,t){return t+"("+(0,i.default)(e)+")"};t.default=c},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=27e3,c=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=o.dispatchers,c=o.dispatcher;n(this,e),this._dispatchers=[],i&&i.forEach&&i.forEach(function(e){t.addDispatcher(e)}),c&&"object"===("undefined"==typeof c?"undefined":r(c))&&this.addDispatcher(c)}return o(e,[{key:"addDispatcher",value:function(e){function t(){}return e._dispatcherId||(e._dispatcherId=++i),e.componentWillMount||(e.componentWillMount=t),e.componentDidMount||(e.componentDidMount=t),e.componentWillUnmount||(e.componentWillUnmount=t),this._dispatchers.push(e),this}},{key:"removeDispatcher",value:function(e){return this._dispatchers=this.dispatchers.filter(function(t){return t._dispatcherId!==e._dispatcherId}),this}},{key:"callDispatchers",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=!1,i=[];return this.dispatchers.forEach(function(t){var r=t[e];r&&r.constructor&&r.call&&r.apply&&(i.push(r.apply(t,n)),o=!0)}),o||console.warn("react-metrics-service: no dispatcher respond to "+e),i}},{key:"dispatchers",get:function(){return this._dispatchers}}]),e}(),a={get:function(e,t){return e[t]?e[t]:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.callDispatchers.apply(e,[t].concat(r))}}},u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0;try{r=new Proxy(new(Function.prototype.bind.apply(c,[null].concat(t))),a)}catch(e){console.error("react-metrics-service: your javascript implementation doesn't support Proxy! instead of using 'createClient()', use 'new Client()'"),r=new(Function.prototype.bind.apply(c,[null].concat(t)))}return r};t.createClient=u,t.Client=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e=void 0;try{e=new Proxy({},{get:function(e,t){return function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=console).warn.apply(e,["react-metrics-service: called "+t+" with:"].concat(r)),null}}})}catch(t){console.error("react-metrics-service: your javascript implementation doesn't support Proxy! debugLog will not work!"),e={}}return e}();t.debugLog=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.trackingID,n=void 0===t?"":t;return{componentWillMount:function(){"undefined"!=typeof window&&(window._gaq=window._gaq||[],window._gaq.push(["_setAccount",n]))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("script");e.type="text/javascript",e.innerHTML="\n (function() {\n var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n })();\n ",document.head.appendChild(e)}},gaPush:function(){if("undefined"!=typeof window){var e;(e=window._gaq).push.apply(e,arguments)}},gaPageView:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"undefined"!=typeof window&&window._gaq.push(["_trackPageview"].concat(t))}}};t.googleAnalyticsLegacy=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.trackingID,n=void 0===t?"":t;return{componentWillMount:function(){"undefined"!=typeof window&&(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga("create",n,"auto"))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("script");e.type="text/javascript",e.innerHTML="\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ",document.head.appendChild(e)}},gaSend:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if("undefined"!=typeof window){var r;(r=window).ga.apply(r,["send"].concat(t))}},gaPageView:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if("undefined"!=typeof window){var r;(r=window).ga.apply(r,["send","pageview"].concat(t))}}}};t.googleAnalytics=n,t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e){var t=e.containerID,r=void 0===t?"":t,o=e.dataLayer,i=void 0===o?{}:o;return{componentWillMount:function(){"undefined"!=typeof window&&(window.dataLayer=n({},i))},componentDidMount:function(){if("undefined"!=typeof document){var e=document.createElement("noscript");e.innerHTML='\n <iframe src="//www.googletagmanager.com/ns.html?id='+r+'"\n height="0" width="0" style="display:none;visibility:hidden">\n ',document.head.appendChild(e),e=document.createElement("script"),e.type="text/javascript",e.innerHTML="\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','"+r+"');\n ",document.head.appendChild(e)}},gtmPush:function(){if("undefined"!=typeof window){var e;(e=window.dataLayer).push.apply(e,arguments)}}}};t.googleTagManager=r,t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e){var t=e.account,r=void 0===t?"":t,o=e.profile,i=void 0===o?"":o,c=e.env,a=void 0===c?"":c,u=e.utag_data,l=void 0===u?{}:u,s=e.url;return{componentWillMount:function(){"undefined"!=typeof document&&(window.utag_data=n({},l))},componentDidMount:function(){if("undefined"!=typeof document){var e=s||"//tags.tiqcdn.com/utag/"+r+"/"+i+"/"+a+"/utag.js",t=document.createElement("script");t.type="text/javascript",t.innerHTML="\n (function(a,b,c,d){\n a='"+e+"';\n b=document;c='script';d=b.createElement(c);d.src=a;\n d.type='text/java'+c;d.async=true;\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a)\n })();\n ",document.head.appendChild(t)}},utagView:function(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof window.utag&&"undefined"!=typeof window.utag.view){var e;(e=window.utag).view.apply(e,arguments)}},utagLink:function(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof window.utag&&"undefined"!=typeof window.utag.link){var e;(e=window.utag).link.apply(e,arguments)}}}};t.tealium=r,t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.metricsServiceClick=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(2),l=r(u),s=n(1),f=r(s),p=n(3),d=r(p),y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){var r,s;return s=r=function(r){function u(){return o(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return c(u,r),a(u,[{key:"handleClick",value:function(){var t;(t=this.context.metricsServiceClient).callDispatchers.apply(t,[e].concat(n))}},{key:"render",value:function(){return l.default.createElement("div",{onClick:this.handleClick.bind(this)},l.default.createElement(t,this.props))}}]),u}(u.Component),r.displayName=(0,d.default)(t,"metricsServiceClick"),r.contextTypes={metricsServiceClient:f.default.object},s}};t.metricsServiceClick=y,t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsServiceContext=t.withMetricsServiceContext=void 0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(2),s=r(l),f=n(1),p=r(f),d=function(e){function t(){return i(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"getChildContext",value:function(){return{metricsServiceClient:this.props.client}}},{key:"componentWillMount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentWillMount"].concat(n))}},{key:"componentDidMount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentDidMount"].concat(n))}},{key:"componentWillUnmount",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this.props.client).callDispatchers.apply(e,["componentWillUnmount"].concat(n))}},{key:"render",value:function(){return s.default.createElement("div",null,this.props.children)}}]),t}(l.Component);d.propTypes={client:p.default.object.isRequired,children:p.default.node},d.childContextTypes={metricsServiceClient:p.default.object};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.client;return function(e){return function(n){var r=o(n,[]);return s.default.createElement(d,{client:t},s.default.createElement(e,r))}}};t.withMetricsServiceContext=y,t.MetricsServiceContext=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.withMetricsServiceClient=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(2),s=r(l),f=n(1),p=r(f),d=n(3),y=r(d),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.transform,n=void 0===t?function(e){return{metricsServiceClient:e}}:t;return function(e){var t,r;return r=t=function(t){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return c(r,t),u(r,[{key:"render",value:function(){return s.default.createElement(e,a({},n(this.context.metricsServiceClient),this.props))}}]),r}(l.Component),t.displayName=(0,y.default)(e,"withMetricsServiceClient"),t.contextTypes={metricsServiceClient:p.default.object},r}};t.withMetricsServiceClient=v,t.default=v},function(e,t){"use strict";t.__esModule=!0;var n=function(e){if("string"==typeof e)return e;if(e)return e.displayName||e.name||"Component"};t.default=n}])}); |
@@ -7,3 +7,3 @@ "use strict"; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -20,7 +20,6 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
dispatchers = _ref.dispatchers, | ||
dispatcher = _ref.dispatcher; | ||
var dispatchers = _ref.dispatchers; | ||
var dispatcher = _ref.dispatcher; | ||
_classCallCheck(this, Client); | ||
@@ -27,0 +26,0 @@ |
@@ -7,4 +7,4 @@ 'use strict'; | ||
var googleAnalyticsLegacy = function googleAnalyticsLegacy(_ref) { | ||
var _ref$trackingID = _ref.trackingID; | ||
var trackingID = _ref$trackingID === undefined ? '' : _ref$trackingID; | ||
var _ref$trackingID = _ref.trackingID, | ||
trackingID = _ref$trackingID === undefined ? '' : _ref$trackingID; | ||
return { | ||
@@ -11,0 +11,0 @@ componentWillMount: function componentWillMount() { |
@@ -7,4 +7,4 @@ 'use strict'; | ||
var googleAnalytics = function googleAnalytics(_ref) { | ||
var _ref$trackingID = _ref.trackingID; | ||
var trackingID = _ref$trackingID === undefined ? '' : _ref$trackingID; | ||
var _ref$trackingID = _ref.trackingID, | ||
trackingID = _ref$trackingID === undefined ? '' : _ref$trackingID; | ||
return { | ||
@@ -11,0 +11,0 @@ componentWillMount: function componentWillMount() { |
@@ -12,6 +12,6 @@ 'use strict'; | ||
var googleTagManager = function googleTagManager(_ref) { | ||
var _ref$containerID = _ref.containerID; | ||
var containerID = _ref$containerID === undefined ? '' : _ref$containerID; | ||
var _ref$dataLayer = _ref.dataLayer; | ||
var dataLayer = _ref$dataLayer === undefined ? {} : _ref$dataLayer; | ||
var _ref$containerID = _ref.containerID, | ||
containerID = _ref$containerID === undefined ? '' : _ref$containerID, | ||
_ref$dataLayer = _ref.dataLayer, | ||
dataLayer = _ref$dataLayer === undefined ? {} : _ref$dataLayer; | ||
return { | ||
@@ -18,0 +18,0 @@ componentWillMount: function componentWillMount() { |
@@ -12,11 +12,11 @@ 'use strict'; | ||
var tealium = function tealium(_ref) { | ||
var _ref$account = _ref.account; | ||
var account = _ref$account === undefined ? '' : _ref$account; | ||
var _ref$profile = _ref.profile; | ||
var profile = _ref$profile === undefined ? '' : _ref$profile; | ||
var _ref$env = _ref.env; | ||
var env = _ref$env === undefined ? '' : _ref$env; | ||
var _ref$utag_data = _ref.utag_data; | ||
var utag_data = _ref$utag_data === undefined ? {} : _ref$utag_data; | ||
var url = _ref.url; | ||
var _ref$account = _ref.account, | ||
account = _ref$account === undefined ? '' : _ref$account, | ||
_ref$profile = _ref.profile, | ||
profile = _ref$profile === undefined ? '' : _ref$profile, | ||
_ref$env = _ref.env, | ||
env = _ref$env === undefined ? '' : _ref$env, | ||
_ref$utag_data = _ref.utag_data, | ||
utag_data = _ref$utag_data === undefined ? {} : _ref$utag_data, | ||
url = _ref.url; | ||
return { | ||
@@ -23,0 +23,0 @@ componentWillMount: function componentWillMount() { |
@@ -14,2 +14,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _wrapDisplayName = require('recompose/wrapDisplayName'); | ||
@@ -41,3 +45,3 @@ | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments)); | ||
} | ||
@@ -66,3 +70,3 @@ | ||
}(_react.Component), _class.displayName = (0, _wrapDisplayName2.default)(BaseComponent, 'metricsServiceClick'), _class.contextTypes = { | ||
metricsServiceClient: _react.PropTypes.object | ||
metricsServiceClient: _propTypes2.default.object | ||
}, _temp; | ||
@@ -69,0 +73,0 @@ }; |
@@ -14,2 +14,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -31,3 +35,3 @@ | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(MetricsServiceContext).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (MetricsServiceContext.__proto__ || Object.getPrototypeOf(MetricsServiceContext)).apply(this, arguments)); | ||
} | ||
@@ -90,7 +94,7 @@ | ||
MetricsServiceContext.propTypes = { | ||
client: _react.PropTypes.object.isRequired, | ||
children: _react.PropTypes.node | ||
client: _propTypes2.default.object.isRequired, | ||
children: _propTypes2.default.node | ||
}; | ||
MetricsServiceContext.childContextTypes = { | ||
metricsServiceClient: _react.PropTypes.object | ||
metricsServiceClient: _propTypes2.default.object | ||
}; | ||
@@ -100,5 +104,5 @@ | ||
var withMetricsServiceContext = function withMetricsServiceContext() { | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
client = _ref.client; | ||
var client = _ref.client; | ||
return function (BaseComponent) { | ||
@@ -105,0 +109,0 @@ return function (_ref2) { |
@@ -16,2 +16,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _wrapDisplayName = require('recompose/wrapDisplayName'); | ||
@@ -30,8 +34,8 @@ | ||
var withMetricsServiceClient = function withMetricsServiceClient() { | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var _ref$transform = _ref.transform; | ||
var transform = _ref$transform === undefined ? function (metricsServiceClient) { | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
_ref$transform = _ref.transform, | ||
transform = _ref$transform === undefined ? function (metricsServiceClient) { | ||
return { metricsServiceClient: metricsServiceClient }; | ||
} : _ref$transform; | ||
return function (BaseComponent) { | ||
@@ -46,3 +50,3 @@ var _class, _temp; | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments)); | ||
} | ||
@@ -60,3 +64,3 @@ | ||
}(_react.Component), _class.displayName = (0, _wrapDisplayName2.default)(BaseComponent, 'withMetricsServiceClient'), _class.contextTypes = { | ||
metricsServiceClient: _react.PropTypes.object | ||
metricsServiceClient: _propTypes2.default.object | ||
}, _temp; | ||
@@ -63,0 +67,0 @@ }; |
{ | ||
"name": "react-metrics-service", | ||
"version": "0.1.0", | ||
"version": "0.2.1", | ||
"description": "React adapter for metrics services like Google Analytics, Tealium or Comcast.", | ||
@@ -37,5 +37,8 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"react": ">= 0.14", | ||
"recompose": ">= 0.19.0 < 1.0" | ||
"recompose": ">= 0.19.0 < 1.0", | ||
"prop-types": "^15.5.10" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.5.0" | ||
}, | ||
"devDependencies": { | ||
@@ -52,3 +55,3 @@ "babel-cli": "^6.6.5", | ||
"budo": "^8.3.0", | ||
"enzyme": "^2.2.0", | ||
"enzyme": "^2.8.2", | ||
"eslint": "^2.9.0", | ||
@@ -61,3 +64,3 @@ "eslint-config-airbnb": "^9.0.1", | ||
"react": "^15.0.0", | ||
"react-addons-test-utils": "^15.0.0", | ||
"react-test-renderer": "^15.0.0", | ||
"react-dom": "^15.0.0", | ||
@@ -70,3 +73,2 @@ "webpack": "^1.13.0" | ||
"react-dom", | ||
"react-addons-test-utils", | ||
"fbjs", | ||
@@ -73,0 +75,0 @@ "enzyme" |
# react-metrics-service | ||
[![npm version](https://img.shields.io/npm/v/react-metrics-service.svg?style=flat-square)](https://www.npmjs.com/package/react-metrics-service) | ||
[![dependency status](https://img.shields.io/david/team-767/react-metrics-service.svg?style=flat-square)](https://david-dm.org/team-767/react-metrics-service) | ||
[![build status](https://img.shields.io/travis/team-767/react-metrics-service.svg?style=flat-square)](https://travis-ci.org/team-767/react-metrics-service) | ||
[![dependency status](https://img.shields.io/david/aitherios/react-metrics-service.svg?style=flat-square)](https://david-dm.org/aitherios/react-metrics-service) | ||
[![build status](https://img.shields.io/travis/aitherios/react-metrics-service.svg?style=flat-square)](https://travis-ci.org/aitherios/react-metrics-service) | ||
@@ -10,4 +10,2 @@ React adapter for metrics services like Google Analytics, Tealium or Comcast. | ||
**WIP** | ||
First create your metrics-service module (eg. using google analytics) in the file `my-metrics.js`: | ||
@@ -14,0 +12,0 @@ |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react' | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import wrapDisplayName from 'recompose/wrapDisplayName' | ||
@@ -3,0 +4,0 @@ |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react' | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
@@ -3,0 +4,0 @@ class MetricsServiceContext extends Component { |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react' | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import wrapDisplayName from 'recompose/wrapDisplayName' | ||
@@ -3,0 +4,0 @@ |
@@ -12,6 +12,7 @@ 'use strict' | ||
library: 'MetricsService', | ||
libraryTarget: 'umd' | ||
libraryTarget: 'umd', | ||
}, | ||
externals: { | ||
'react': 'react' | ||
react: 'react', | ||
'prop-types': 'prop-types', | ||
}, | ||
@@ -23,8 +24,8 @@ module: { | ||
exclude: /node_modules/, | ||
loader: 'babel' | ||
} | ||
] | ||
loader: 'babel', | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: ['', '.js', '.jsx'] | ||
extensions: ['', '.js', '.jsx'], | ||
}, | ||
@@ -36,6 +37,6 @@ plugins: [ | ||
screw_ie8: true, | ||
warnings: false | ||
} | ||
}) | ||
] | ||
warnings: false, | ||
}, | ||
}), | ||
], | ||
} |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
264084
40
1425
0
3
74
+ Addedprop-types@^15.5.10
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedreact@15.7.0(transitive)
+ Addedua-parser-js@0.7.39(transitive)
- Removedreact@>= 0.14
- Removedreact@16.14.019.0.0(transitive)
- Removedua-parser-js@0.7.40(transitive)