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

@opensea/i18n-dl

Package Overview
Dependencies
Maintainers
10
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensea/i18n-dl - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

14

dist/cli.js

@@ -110,2 +110,13 @@ #!/usr/bin/env node

// src/utils.ts
var TARGET_LOCALE_TO_PATH_MAPPING = {
"fr-FR": "fr",
"es-ES": "es",
"ko-KR": "kr",
"ja-JP": "ja"
};
var getTargetLocalePath = (targetLocaleId) => {
return TARGET_LOCALE_TO_PATH_MAPPING[targetLocaleId] || targetLocaleId;
};
// src/client.ts

@@ -139,3 +150,4 @@ var DownloadClient = class extends SmartlingClient {

const split = translatedFile.split(path2.sep);
const locale = split[split.length - (3 + path2.normalize(directory).split(path2.sep).length)];
const targetLocaleId = split[split.length - (3 + path2.normalize(directory).split(path2.sep).length)];
const locale = getTargetLocalePath(targetLocaleId);
const localeFolder = path2.join(directory, locale);

@@ -142,0 +154,0 @@ if (!await fileExists(localeFolder)) {

2

package.json
{
"name": "@opensea/i18n-dl",
"version": "0.0.25",
"version": "0.0.26",
"description": "Package for i18n key download",

@@ -5,0 +5,0 @@ "license": "MIT",

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