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

@opensea/i18n-extract

Package Overview
Dependencies
Maintainers
10
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensea/i18n-extract - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

21

dist/cli.js

@@ -54,5 +54,5 @@ #!/usr/bin/env node

var extract = function () { return __awaiter(void 0, void 0, void 0, function () {
var options, directory, out, check, spinner, files, allTranslations, checkFailure;
return __generator(this, function (_a) {
switch (_a.label) {
var _a, directory, out, check, spinner, files, allTranslations, checkFailure;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:

@@ -65,18 +65,17 @@ commander_1.program

.option('-C, --check', 'Check if extracted translations keys are up to date.', false);
options = commander_1.program.parse().opts();
directory = options.directory, out = options.out, check = options.check;
_a = commander_1.program.parse().opts(), directory = _a.directory, out = _a.out, check = _a.check;
spinner = (0, ora_1.default)('Processing files for translations...').start();
return [4 /*yield*/, (0, glob_1.glob)("".concat(directory, "/**/*.{ts,tsx}"))];
case 1:
files = _a.sent();
files = _b.sent();
return [4 /*yield*/, (0, extract_1.extractTranslationKeys)(files)];
case 2:
allTranslations = _a.sent();
allTranslations = _b.sent();
return [4 /*yield*/, (0, file_1.fileExists)(out)];
case 3:
if (!!(_a.sent())) return [3 /*break*/, 5];
if (!!(_b.sent())) return [3 /*break*/, 5];
return [4 /*yield*/, promises_1.default.mkdir(out, { recursive: true })];
case 4:
_a.sent();
_a.label = 5;
_b.sent();
_b.label = 5;
case 5:

@@ -118,3 +117,3 @@ checkFailure = false;

case 6:
_a.sent();
_b.sent();
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition

@@ -121,0 +120,0 @@ if (checkFailure) {

{
"name": "@opensea/i18n-extract",
"version": "0.0.12",
"version": "0.0.13",
"description": "Package for i18n key extractions",

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

"dependencies": {
"@babel/traverse": "7.22.10",
"@babel/traverse": "7.22.11",
"commander": "11.0.0",

@@ -31,3 +31,3 @@ "glob": "10.3.3",

"devDependencies": {
"@babel/types": "7.22.10",
"@babel/types": "7.22.11",
"@types/babel__traverse": "7.20.1",

@@ -40,5 +40,7 @@ "@types/lodash.get": "4.4.7",

"next-translate": "2.5.3",
"react": "18.2.0",
"ts-node": "10.9.1"
"react": "18.2.0"
},
"publishConfig": {
"access": "public"
}
}

Sorry, the diff of this file is not supported yet

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