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

text-localizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-localizer - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

lib/localizer/helpers/parse-translations.js

@@ -14,5 +14,9 @@ "use strict";

const parseTranslations = (param) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
if (typeof param == 'function') {
const functionParam = param;
return (yield functionParam());
const result = yield functionParam();
if ((_a = result) === null || _a === void 0 ? void 0 : _a['default'])
return (_b = result) === null || _b === void 0 ? void 0 : _b['default'];
return result;
}

@@ -19,0 +23,0 @@ let translations = (yield param);

5

package.json
{
"name": "text-localizer",
"version": "0.1.3",
"version": "0.1.4",
"main": "lib/index.js",

@@ -60,4 +60,3 @@ "types": "lib/index.d.ts",

"release-it": "^14.11.6"
},
"gitHead": "9834af647c4dc0753e2f757ed109c94e52d27a0f"
}
}

@@ -18,3 +18,3 @@ <h1 align="center">

us: import('./l10n/us.json'),
uk: import('./l10n/uk'),
gb: import('./l10n/gb'),
it: fetchItTranslations,

@@ -24,3 +24,3 @@ });

await localizer.setOptions({
language: 'uk',
language: 'gb',
});

@@ -27,0 +27,0 @@

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