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

i18next-fs-backend

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-fs-backend - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

2

cjs/index.js

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

});
if (this.allOptions.initImmediate === false) {
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) {
try {

@@ -62,0 +62,0 @@ var _readFileSync = (0, _readFile.readFileSync)(filename, this.options),

@@ -53,3 +53,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

});
if (this.allOptions.initImmediate === false) {
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) {
try {

@@ -56,0 +56,0 @@ var _readFileSync = readFileSync(filename, this.options),

@@ -39,3 +39,3 @@ import { defaults, debounce, getPath, setPath, pushPath } from './utils.js'

const filename = this.services.interpolator.interpolate(loadPath, { lng: language, ns: namespace })
if (this.allOptions.initImmediate === false) {
if (this.allOptions.initAsync === false || this.allOptions.initImmediate === false) {
try {

@@ -42,0 +42,0 @@ const { data, stat } = readFileSync(filename, this.options)

{
"name": "i18next-fs-backend",
"version": "2.5.0",
"version": "2.6.0",
"private": false,

@@ -45,3 +45,3 @@ "type": "module",

"expect.js": "0.3.1",
"i18next": "23.16.6",
"i18next": "24.0.0",
"js-yaml": "4.1.0",

@@ -48,0 +48,0 @@ "jsonc-parser": "3.3.1",

@@ -112,3 +112,3 @@ # Introduction

# If set i18next initImmediate option to false it will load the files synchronously
# If set i18next initAsync option to false it will load the files synchronously

@@ -125,3 +125,3 @@ ```js

// debug: true,
initImmediate: false,
initAsync: false,
fallbackLng: 'en',

@@ -128,0 +128,0 @@ lng: 'en',

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