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

@adminforth/i18n

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adminforth/i18n - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

6

dist/index.js

@@ -401,2 +401,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
if (!key) {
throw new Error(`Faced an empty key in Fronted messages, file ${file}`);
}
const record = Object.assign({ [this.enFieldName]: key, [this.options.categoryFieldName]: category }, (this.options.sourceFieldName ? { [this.options.sourceFieldName]: file } : {}));

@@ -476,2 +479,5 @@ try {

if (!translation) {
if (!msg) {
throw Error(`Empty string passed to tr function during translation`);
}
yield resource.create({

@@ -478,0 +484,0 @@ [this.enFieldName]: msg,

@@ -478,2 +478,5 @@ import AdminForth, { AdminForthPlugin, Filters, suggestIfTypo, AdminForthDataTypes } from "adminforth";

}
if (!key) {
throw new Error(`Faced an empty key in Fronted messages, file ${file}`);
}
const record = {

@@ -564,2 +567,6 @@ [this.enFieldName]: key,

if (!translation) {
if (!msg) {
throw Error(`Empty string passed to tr function during translation`);
}
await resource.create({

@@ -566,0 +573,0 @@ [this.enFieldName]: msg,

2

package.json
{
"name": "@adminforth/i18n",
"version": "1.0.5",
"version": "1.0.6",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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