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

locize-cli

Package Overview
Dependencies
Maintainers
2
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locize-cli - npm Package Compare versions

Comparing version 8.3.0 to 8.3.1

4

CHANGELOG.md

@@ -8,2 +8,6 @@ # locize-cli change log

## [8.3.1](https://github.com/locize/locize-cli/compare/v8.3.0...v8.3.1) - 2024-12-23
- special check for CVS (does not cleanup local language folders)
## [8.3.0](https://github.com/locize/locize-cli/compare/v8.2.0...v8.3.0) - 2024-11-25

@@ -10,0 +14,0 @@

2

package.json
{
"name": "locize-cli",
"version": "8.3.0",
"version": "8.3.1",
"description": "locize cli to import locales",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -321,2 +321,10 @@ const fs = require('fs');

const doesDirectoryExist = (p) => {
var directoryExists = false;
try {
directoryExists = fs.statSync(p).isDirectory();
} catch (e) {}
return directoryExists;
};
const cleanupLanguages = (opt, remoteLanguages) => {

@@ -342,2 +350,3 @@ if (opt.pathMask.lastIndexOf(path.sep) < 0) return;

}
if (doesDirectoryExist(path.join(opt.path, lngPath, 'CVS'))) return; // special hack for CVS
rimraf.sync(path.join(opt.path, lngPath));

@@ -586,7 +595,3 @@ });

if (opt.autoCreatePath === false) {
var directoryExists = false;
try {
directoryExists = fs.statSync(opt.path).isDirectory();
} catch (e) {}
if (!directoryExists) {
if (!doesDirectoryExist(opt.path)) {
return handleError(new Error(`${opt.path} does not exist!`), cb);

@@ -593,0 +598,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