@segment/snippet
Advanced tools
Comparing version 4.14.1 to 4.14.2
@@ -9,3 +9,3 @@ module.exports=function(settings) { | ||
((__t = ( settings.apiKey )) == null ? '' : __t) + | ||
'\'\n\n // Add a version to keep track of what\'s in the wild.\n analytics.SNIPPET_VERSION = \'4.14.0\';\n\n // Load Analytics.js with your key, which will automatically\n // load the tools you\'ve enabled for your account. Boosh!\n ' + | ||
'\'\n\n // Add a version to keep track of what\'s in the wild.\n analytics.SNIPPET_VERSION = \'4.14.1\';\n\n // Load Analytics.js with your key, which will automatically\n // load the tools you\'ve enabled for your account. Boosh!\n ' + | ||
((__t = ( settings.load )) == null ? '' : __t) + | ||
@@ -12,0 +12,0 @@ '\n\n // Make the first page call to load the integrations. If\n // you\'d like to manually name or tag the page, edit or\n // move this call however you\'d like.\n ' + |
@@ -9,3 +9,3 @@ module.exports=function(settings) { | ||
((__t = ( settings.apiKey )) == null ? '' : __t) + | ||
'";analytics.SNIPPET_VERSION="4.14.0";\n' + | ||
'";analytics.SNIPPET_VERSION="4.14.1";\n' + | ||
((__t = ( settings.load )) == null ? '' : __t) + | ||
@@ -12,0 +12,0 @@ '\n' + |
@@ -90,3 +90,9 @@ 'use strict'; | ||
if (typeof settings.load !== 'boolean') { | ||
// eslint-disable-next-line no-restricted-globals | ||
var loadOptions = JSON.stringify(settings.load); | ||
return 'analytics.load("' + settings.apiKey + '", ' + loadOptions + ');'; | ||
} | ||
return 'analytics.load("' + settings.apiKey + '");'; | ||
} |
{ | ||
"name": "@segment/snippet", | ||
"author": "Segment.io <friends@segment.com>", | ||
"version": "4.14.1", | ||
"version": "4.14.2", | ||
"repository": "git://github.com/segmentio/snippet.git", | ||
@@ -6,0 +6,0 @@ "description": "Templating methods for rendering the analytics.js snippet.", |
@@ -10,2 +10,9 @@ declare module '@segment/snippet' { | ||
interface LoadOptions { | ||
integrations?: { | ||
All?: boolean | ||
[key: string]: boolean | ||
} | ||
} | ||
interface Options { | ||
@@ -27,3 +34,3 @@ /** The domain name where the analytics.js script is hosted. */ | ||
*/ | ||
load?: boolean | ||
load?: boolean | LoadOptions | ||
} | ||
@@ -30,0 +37,0 @@ |
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
24916
383