New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

http-i18n

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-i18n - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

index.js

@@ -8,6 +8,6 @@ // Generated by CoffeeScript 1.12.4

module.exports = function(req) {
var ref, ref1;
return ((ref = req.url.match(/lang=(.*?)(&|$)/)) != null ? ref[1] : void 0) || ((ref1 = req.headers["accept-language"]) != null ? ref1.split("-")[0].split(",")[0] : void 0) || "en";
var ref, ref1, ref2, ref3;
return ((ref = req.url.match(/lang=(.*?)(&|$)/)) != null ? (ref1 = ref[1]) != null ? ref1.toLowerCase() : void 0 : void 0) || ((ref2 = req.headers["accept-language"]) != null ? (ref3 = ref2.split("-")[0].split(",")[0]) != null ? ref3.toLowerCase() : void 0 : void 0) || "en";
};
}).call(this);
{
"name": "http-i18n",
"version": "0.0.4",
"version": "0.0.5",
"description": "parse language url param and http header",

@@ -5,0 +5,0 @@ "main": "index.js",

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