@transifex/cli
Advanced tools
Comparing version 0.0.8 to 0.1.0
@@ -1,1 +0,1 @@ | ||
{"version":"0.0.8","commands":{"push":{"id":"push","description":"Detect translatable strings and push content to Transifex\nParse .js or .jsx files and detect phrases marked for\ntranslation by Transifex Native toolkit for Javascript and\nupload them to Transifex for translation.\n\nTo push content some environment variables must be set:\nTRANSIFEX_TOKEN=<Transifex Native Project Token>\nTRANSIFEX_SECRET=<Transifex Native Project Secret>\n(optional) TRANSIFEX_CDS_HOST=<CDS HOST>\n\nor passed as --token=<TOKEN> --secret=<SECRET> parameters\n\nDefault CDS Host is https://cds.svc.transifex.net\n\nExamples:\ntxjs-cli push -v\ntxjs-cli push src/\ntxjs-cli push /home/repo/src\ntxjs-cli push \"*.js\"\ntxjs-cli push --dry-run\ntxjs-cli push --tags=\"master,release:2.5\"\ntxjs-cli push --token=mytoken --secret=mysecret\nTRANSIFEX_TOKEN=mytoken TRANSIFEX_SECRET=mysecret txjs-cli push\n","pluginName":"@transifex/cli","pluginType":"core","aliases":[],"flags":{"dry-run":{"name":"dry-run","type":"boolean","description":"Dry run, do not push to Transifex","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"purge":{"name":"purge","type":"boolean","description":"Purge content on Transifex","allowNo":false},"token":{"name":"token","type":"option","description":"Native project public token","default":""},"secret":{"name":"secret","type":"option","description":"Native project secret","default":""},"tags":{"name":"tags","type":"option","description":"Globally tag strings","default":""},"cds-host":{"name":"cds-host","type":"option","description":"CDS host URL","default":""}},"args":[{"name":"pattern","description":"file pattern to scan for strings","required":false,"default":"**/*.{js,jsx}"}]}}} | ||
{"version":"0.1.0","commands":{"push":{"id":"push","description":"Detect translatable strings and push content to Transifex\nParse .js or .jsx files and detect phrases marked for\ntranslation by Transifex Native toolkit for Javascript and\nupload them to Transifex for translation.\n\nTo push content some environment variables must be set:\nTRANSIFEX_TOKEN=<Transifex Native Project Token>\nTRANSIFEX_SECRET=<Transifex Native Project Secret>\n(optional) TRANSIFEX_CDS_HOST=<CDS HOST>\n\nor passed as --token=<TOKEN> --secret=<SECRET> parameters\n\nDefault CDS Host is https://cds.svc.transifex.net\n\nExamples:\ntxjs-cli push -v\ntxjs-cli push src/\ntxjs-cli push /home/repo/src\ntxjs-cli push \"*.js\"\ntxjs-cli push --dry-run\ntxjs-cli push --tags=\"master,release:2.5\"\ntxjs-cli push --token=mytoken --secret=mysecret\nTRANSIFEX_TOKEN=mytoken TRANSIFEX_SECRET=mysecret txjs-cli push\n","pluginName":"@transifex/cli","pluginType":"core","aliases":[],"flags":{"dry-run":{"name":"dry-run","type":"boolean","description":"Dry run, do not push to Transifex","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"purge":{"name":"purge","type":"boolean","description":"Purge content on Transifex","allowNo":false},"token":{"name":"token","type":"option","description":"Native project public token","default":""},"secret":{"name":"secret","type":"option","description":"Native project secret","default":""},"tags":{"name":"tags","type":"option","description":"Globally tag strings","default":""},"cds-host":{"name":"cds-host","type":"option","description":"CDS host URL","default":""}},"args":[{"name":"pattern","description":"file pattern to scan for strings","required":false,"default":"**/*.{js,jsx}"}]}}} |
{ | ||
"name": "@transifex/cli", | ||
"description": "Transifex Native CLI", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"author": "Transifex", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"@oclif/plugin-help": "^3.1.0", | ||
"@transifex/native": "^0.0.8", | ||
"@transifex/native": "^0.1.0", | ||
"acorn": "^7.3.1", | ||
@@ -29,0 +29,0 @@ "acorn-jsx": "^5.2.0", |
@@ -123,8 +123,11 @@ /* eslint no-underscore-dangle: 0 */ | ||
_.each(elem.attributes, (attr) => { | ||
if (attr.name.name === '_str') { | ||
string = attr.value.value; | ||
const property = attr.name && attr.name.name; | ||
const value = attr.value && attr.value.value; | ||
if (!property || !value) return; | ||
if (property === '_str') { | ||
string = value; | ||
return; | ||
} | ||
if (_.isString(attr.value.value) || _.isNumber(attr.value.value)) { | ||
params[attr.name.name] = attr.value.value; | ||
if (_.isString(value) || _.isNumber(value)) { | ||
params[property] = value; | ||
} | ||
@@ -131,0 +134,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20696
467
+ Added@transifex/native@0.1.0(transitive)
- Removed@transifex/native@0.0.8(transitive)
Updated@transifex/native@^0.1.0