Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

analytics.js-loader

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics.js-loader - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

6

HISTORY.md

@@ -0,1 +1,6 @@

# 2.1.1 (2016-01-01)
* use https: protocol by default
- segment script is loaded from a secure request if current protocol is not http: (for chrome-extension: for example)
# 2.1.0 (2015-10-27)

@@ -21,2 +26,1 @@

* initial

6

index.js

@@ -66,4 +66,4 @@ module.exports = load;

script.async = true;
script.src = ('https:' === document.location.protocol
? 'https://' : 'http://')
script.src = ('http:' === document.location.protocol
? 'http://' : 'https://')
+ 'cdn.segment.com/analytics.js/v1/'

@@ -90,4 +90,4 @@ + key + '/analytics.min.js';

}
return analytics;
}
{
"name": "analytics.js-loader",
"version": "2.1.0",
"version": "2.1.1",
"description": "Asynchronously load segment.com analytics.js with an npm module",

@@ -25,2 +25,2 @@ "main": "index.js",

"homepage": "https://github.com/vvo/analytics.js-loader"
}
}
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