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

@vocab/cli

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vocab/cli - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

17

CHANGELOG.md
# @vocab/cli
## 1.2.0
### Minor Changes
- [`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382) [#93](https://github.com/seek-oss/vocab/pull/93) Thanks [@askoufis](https://github.com/askoufis)! - Add an optional `delete-unused-keys` flag to the `push` command. If set to `true`, unused keys will be deleted from Phrase after translations are pushed.
**EXAMPLE USAGE**:
```bash
vocab push --delete-unused-keys
```
### Patch Changes
- Updated dependencies [[`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382), [`159d559`](https://github.com/seek-oss/vocab/commit/159d559c87c66c3e91c707fb45a1f67ebec07b4d)]:
- @vocab/phrase@1.1.0
## 1.1.0

@@ -4,0 +21,0 @@

7

dist/vocab-cli.cjs.dev.js

@@ -35,3 +35,8 @@ 'use strict';

builder: () => yargs__default['default'].options({
branch: branchDefinition
branch: branchDefinition,
'delete-unused-keys': {
type: 'boolean',
describe: 'Whether or not to delete unused keys after pushing',
default: false
}
}),

@@ -38,0 +43,0 @@ handler: async options => {

@@ -35,3 +35,8 @@ 'use strict';

builder: () => yargs__default['default'].options({
branch: branchDefinition
branch: branchDefinition,
'delete-unused-keys': {
type: 'boolean',
describe: 'Whether or not to delete unused keys after pushing',
default: false
}
}),

@@ -38,0 +43,0 @@ handler: async options => {

@@ -28,3 +28,8 @@ import { push, pull } from '@vocab/phrase';

builder: () => yargs.options({
branch: branchDefinition
branch: branchDefinition,
'delete-unused-keys': {
type: 'boolean',
describe: 'Whether or not to delete unused keys after pushing',
default: false
}
}),

@@ -31,0 +36,0 @@ handler: async options => {

4

package.json
{
"name": "@vocab/cli",
"version": "1.1.0",
"version": "1.2.0",
"main": "dist/vocab-cli.cjs.js",

@@ -14,3 +14,3 @@ "module": "dist/vocab-cli.esm.js",

"@vocab/core": "^1.1.0",
"@vocab/phrase": "^1.0.0",
"@vocab/phrase": "^1.1.0",
"env-ci": "^5.0.2",

@@ -17,0 +17,0 @@ "fast-glob": "^3.2.4",

@@ -435,2 +435,3 @@ # Vocab

$ vocab push --branch my-branch
$ vocab push --branch my-branch --delete-unused-keys
$ vocab pull --branch my-branch

@@ -437,0 +438,0 @@ ```

@@ -32,3 +32,11 @@ /* eslint-disable no-console */

command: 'push',
builder: () => yargs.options({ branch: branchDefinition }),
builder: () =>
yargs.options({
branch: branchDefinition,
'delete-unused-keys': {
type: 'boolean',
describe: 'Whether or not to delete unused keys after pushing',
default: false,
},
}),
handler: async (options) => {

@@ -35,0 +43,0 @@ await push(options, config!);

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