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

i18n

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

package-lock.json

4

i18n.js

@@ -641,2 +641,3 @@ /**

if (!filename) return false;
if (prefix && !filename.match(prefixRegex)) return false;

@@ -664,3 +665,4 @@ if (extension && !filename.match(extensionRegex)) return false;

if (queryParameter && request.url) {
var urlObj = url.parse(request.url, true);
var urlAsString = typeof request.url === 'string' ? request.url : request.url.toString();
var urlObj = url.parse(urlAsString, true);
if (urlObj.query[queryParameter]) {

@@ -667,0 +669,0 @@ logDebug('Overriding locale from query: ' + urlObj.query[queryParameter]);

{
"name": "i18n",
"description": "lightweight translation module with dynamic json storage",
"version": "0.8.4",
"version": "0.8.5",
"homepage": "http://github.com/mashpie/i18n-node",

@@ -33,3 +33,3 @@ "repository": {

"jshint": "*",
"mocha": "^6.2.2",
"mocha": "^7.0.1",
"should": "*",

@@ -36,0 +36,0 @@ "sinon": "*",

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