Socket
Socket
Sign inDemoInstall

@segment/snippet

Package Overview
Dependencies
1
Maintainers
167
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.14.1 to 4.14.2

2

dist/max.template.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc