Socket
Socket
Sign inDemoInstall

@segment/snippet

Package Overview
Dependencies
Maintainers
129
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/snippet - npm Package Compare versions

Comparing version 4.13.1 to 4.13.2

4

dist/max.template.js

@@ -7,3 +7,5 @@ module.exports=function(settings) {

((__t = ( settings.ajsPath )) == null ? '' : __t) +
'";\n\n // Insert our script next to the first script element.\n var first = document.getElementsByTagName(\'script\')[0];\n first.parentNode.insertBefore(script, first);\n analytics._loadOptions = options;\n };\n\n // Add a version to keep track of what\'s in the wild.\n analytics.SNIPPET_VERSION = \'4.13.1\';\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 // Insert our script next to the first script element.\n var first = document.getElementsByTagName(\'script\')[0];\n first.parentNode.insertBefore(script, first);\n analytics._loadOptions = options;\n };\n analytics._writeKey = \'' +
((__t = ( settings.apiKey )) == null ? '' : __t) +
'\'\n\n // Add a version to keep track of what\'s in the wild.\n analytics.SNIPPET_VERSION = \'4.13.2\';\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) +

@@ -10,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 ' +

@@ -7,3 +7,5 @@ module.exports=function(settings) {

((__t = ( settings.ajsPath )) == null ? '' : __t) +
'";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.13.1";\n' +
'";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="' +
((__t = ( settings.apiKey )) == null ? '' : __t) +
'";analytics.SNIPPET_VERSION="4.13.2";\n' +
((__t = ( settings.load )) == null ? '' : __t) +

@@ -10,0 +12,0 @@ '\n' +

{
"name": "@segment/snippet",
"author": "Segment.io <friends@segment.com>",
"version": "4.13.1",
"version": "4.13.2",
"repository": "git://github.com/segmentio/snippet.git",

@@ -6,0 +6,0 @@ "description": "Templating methods for rendering the analytics.js snippet.",

@@ -78,2 +78,3 @@ (function(){

};
analytics._writeKey = '<%= settings.apiKey %>'

@@ -80,0 +81,0 @@ // Add a version to keep track of what's in the wild.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc