🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@edx/reactifex

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/reactifex - npm Package Compare versions

Comparing version

to
2.1.1

14

package.json
{
"name": "@edx/reactifex",
"version": "2.1.0",
"version": "2.1.1",
"description": "A helper for moving react-intl messages to transifex and back",

@@ -20,3 +20,3 @@ "bin": {

"type": "git",
"url": "git+https://github.com/edx/reactifex.git"
"url": "git+https://github.com/openedx/reactifex.git"
},

@@ -32,3 +32,3 @@ "keywords": [

"bugs": {
"url": "https://github.com/edx/reactifex/issues"
"url": "https://github.com/openedx/reactifex/issues"
},

@@ -38,10 +38,10 @@ "publishConfig": {

},
"homepage": "https://github.com/edx/reactifex#readme",
"homepage": "https://github.com/openedx/reactifex#readme",
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint": "^8.23.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^1.7.0"
"eslint-plugin-react-hooks": "^4.6.0"
},

@@ -48,0 +48,0 @@ "dependencies": {

@@ -8,3 +8,3 @@ # reactifex

[![npm_version](https://img.shields.io/npm/v/reactifex.svg)](reactifex)
[![Build Status](https://github.com/edx/reactifex/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/edx/reactifex/actions?query=workflow%3A%22Node+CI%22)
[![Build Status](https://github.com/openedx/reactifex/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/openedx/reactifex/actions?query=workflow%3A%22Node+CI%22)

@@ -11,0 +11,0 @@ There are two modes of usage - compilation and comment pushing.

@@ -18,34 +18,26 @@ /*

// Configure command line arguments with yargs
yargs.option(
"organization", {
yargs
.option("organization", {
alias: ["o", "org"],
default: "open-edx",
description: "Organization associated with Transifex account",
},
).option(
"project", {
})
.option("project", {
alias: ["p", "proj"],
default: "edx-platform",
description: "Project within a Transifex organization",
},
)
.option(
"outputJsonDirectory", {
description: "Directory where the hashmap json file will be created",
default: "./node_modules/@edx/reactifex/bash_scripts",
},
)
.option(
"resource", {
alias: ["r", "res"],
demandOption: true,
description: "Resource within a Transifex project whose translation strings are to be fetched",
},
)
.option(
"token", {
description: "Bearer token required for Authentication when making API calls to Transifex",
demandOption: true,
},
);
})
.option("outputJsonDirectory", {
description: "Directory where the hashmap json file will be created",
default: "./node_modules/@edx/reactifex/bash_scripts",
})
.option("resource", {
alias: ["r", "res"],
demandOption: true,
description: "Resource within a Transifex project whose translation strings are to be fetched",
})
.option("token", {
description: "Bearer token required for Authentication when making API calls to Transifex",
demandOption: true,
});

@@ -52,0 +44,0 @@ const API_BASE_URL = "https://rest.api.transifex.com/resource_strings";

@@ -23,34 +23,26 @@ /*

// Configure command line arguments with yargs
yargs.option(
"organization", {
yargs
.option("organization", {
alias: ["o", "org"],
default: "open-edx",
description: "Organization associated with Transifex account",
},
).option(
"project", {
})
.option("project", {
alias: ["p", "proj"],
default: "edx-platform",
description: "Project within a Transifex organization",
},
)
.option(
"resource", {
alias: ["r", "res"],
demandOption: true,
description: "Resource within a Transifex project whose translation strings instructions will be added",
},
)
.option(
"inputFileDirectory", {
description: "Directory where the input file hashed_data.txt will be read from",
default: "./node_modules/@edx/reactifex/bash_scripts",
},
)
.option(
"token", {
description: "Bearer token required for Authentication when making API calls to Transifex",
demandOption: true,
},
);
})
.option("resource", {
alias: ["r", "res"],
demandOption: true,
description: "Resource within a Transifex project whose translation strings instructions will be added",
})
.option("inputFileDirectory", {
description: "Directory where the input file hashed_data.txt will be read from",
default: "./node_modules/@edx/reactifex/bash_scripts",
})
.option("token", {
description: "Bearer token required for Authentication when making API calls to Transifex",
demandOption: true,
});

@@ -81,10 +73,8 @@ /*

process.stdout.write(`Attempting instructions addition for string Id ${stringId}\n`);
await axios.patch(
resourceUrl, payload, {
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/vnd.api+json",
},
await axios.patch(resourceUrl, payload, {
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/vnd.api+json",
},
);
});
process.stdout.write(`Instruction addition for string id ${stringId} has completed successfully\n`);

@@ -91,0 +81,0 @@ } catch (err) {