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

i18next-sync-fs-backend

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-sync-fs-backend - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

lib/index.js

@@ -122,4 +122,7 @@ 'use strict';

value: function read(language, namespace, callback) {
var filename = this.services.interpolator.interpolate(this.options.loadPath, { lng: language, ns: namespace });
var loadPath = this.options.loadPath;
var filePath = typeof loadPath === 'function' ? loadPath(language, namespace) : loadPath;
var filename = this.services.interpolator.interpolate(filePath, { lng: language, ns: namespace });
readFile(filename, function (err, resources) {

@@ -126,0 +129,0 @@ if (err) return callback(err, false); // no retry

4

package.json
{
"name": "i18next-sync-fs-backend",
"version": "1.0.0",
"version": "1.1.0",
"description": "node.js backend layer for i18next using fs module to load resources synchronously from filesystem",

@@ -13,3 +13,2 @@ "main": "./index.js",

"dependencies": {
"codecov": "^2.2.0",
"js-yaml": "3.5.4",

@@ -25,2 +24,3 @@ "json5": "0.5.0"

"chai": "^3.4.1",
"codecov": "^2.2.0",
"eslint": "2.4.0",

@@ -27,0 +27,0 @@ "i18next": "2.3.5",

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