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

i18n-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-core - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

lookup/fs.js

@@ -31,3 +31,3 @@ "use strict";

get: function get(key) {
var keyParts = /^([^\.]*)(\.(.*))?$/.exec(key),
var keyParts = /^([^\.]*)(\.(.*))?$/m.exec(key),
prefix = keyParts[1],

@@ -34,0 +34,0 @@ property = keyParts[3] || "",

{
"name": "i18n-core",
"version": "2.1.0",
"version": "2.1.1",
"description": "Basic i18n translation.",

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

@@ -57,2 +57,12 @@ "use strict";

test("load a problematic string", function (done) {
var strategy = require("../../lookup/folder/json"),
lookup = fs(folder, strategy),
problemString = ".\n";
strategy.load = function () { return null; };
expect(lookup.get(problemString)).to.equal(undefined);
done();
});
lab.experiment("fs errors", function () {

@@ -59,0 +69,0 @@ var mockery = require("mockery"),

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