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.26 to 0.0.27

dist/cli.d.ts

18

dist/cli.js

@@ -123,3 +123,3 @@ #!/usr/bin/env node

var DownloadClient = class extends SmartlingClient {
async download(directory, files) {
async download(directory, files, normalize = true) {
if (!await fileExists(directory)) {

@@ -150,3 +150,3 @@ await createDirectory(directory);

const split = translatedFile.split(path2.sep);
const targetLocaleId = split[split.length - (3 + path2.normalize(directory).split(path2.sep).length)];
const targetLocaleId = split[split.length - (normalize ? 3 + path2.normalize(directory).split(path2.sep).length : 4 + directory.split(path2.sep).length)];
const locale = getTargetLocalePath(targetLocaleId);

@@ -176,3 +176,4 @@ const localeFolder = path2.join(directory, locale);

projectId,
directory
directory,
normalize = true
}) => {

@@ -188,3 +189,3 @@ const client = new DownloadClient({

const files = await glob2(`${directory}/${sourceLocaleId}/**/*.json`);
await client.download(directory, files);
await client.download(directory, files, normalize);
};

@@ -214,4 +215,8 @@

process.env.DIRECTORY
).option(
"-n, --normalize <normalize>",
"If path to the locale file should be normalized before being sent to Smartling",
"false"
);
const { userSecret, userIdentifier, ref, projectId, directory } = program.parse().opts();
const { userSecret, userIdentifier, ref, projectId, directory, normalize } = program.parse().opts();
const spinner = ora("Processing files for translations...").start();

@@ -223,3 +228,4 @@ await download({

projectId,
directory
directory,
normalize: normalize !== "false"
});

@@ -226,0 +232,0 @@ spinner.succeed("Files for translation downloaded!");

{
"name": "@opensea/i18n-dl",
"version": "0.0.26",
"version": "0.0.27",
"description": "Package for i18n key download",

@@ -22,3 +22,3 @@ "license": "MIT",

"commander": "11.0.0",
"glob": "10.3.3",
"glob": "10.3.4",
"ky": "0.33.3",

@@ -25,0 +25,0 @@ "ora": "7.0.1"

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