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

@vocab/cli

Package Overview
Dependencies
Maintainers
0
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 0.0.0-delete-unused-keys-20228144520 to 0.0.0-feature-ignore-flag-push-20241014224750

LICENSE

0

dist/declarations/src/index.d.ts
export {};
export * from "./declarations/src/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9jYWItY2xpLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==

36

dist/vocab-cli.cjs.dev.js

@@ -5,3 +5,3 @@ 'use strict';

var core = require('@vocab/core');
var yargs = require('yargs');
var yargsCli = require('yargs');
var envCi = require('env-ci');

@@ -11,3 +11,3 @@

var yargs__default = /*#__PURE__*/_interopDefault(yargs);
var yargsCli__default = /*#__PURE__*/_interopDefault(yargsCli);
var envCi__default = /*#__PURE__*/_interopDefault(envCi);

@@ -18,3 +18,3 @@

branch
} = envCi__default['default']();
} = envCi__default["default"]();
const branchDefinition = {

@@ -25,5 +25,12 @@ type: 'string',

};
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
const ignorePathDefinition = {
type: 'string',
array: true,
describe: 'list of paths to ignore from the command',
default: []
};
let config = null;
yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', {
type: 'string',

@@ -38,9 +45,10 @@ describe: 'Path to config file'

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

@@ -52,4 +60,9 @@ handler: async options => {

command: 'pull',
builder: () => yargs__default['default'].options({
branch: branchDefinition
builder: yargs => yargs.options({
branch: branchDefinition,
'error-on-no-global-key-translation': {
type: 'boolean',
describe: 'Throw an error when there is no translation for a global key',
default: false
}
}),

@@ -61,3 +74,3 @@ handler: async options => {

command: 'compile',
builder: () => yargs__default['default'].options({
builder: yargs => yargs.options({
watch: {

@@ -79,3 +92,2 @@ type: 'boolean',

const valid = await core.validate(config);
if (!valid) {

@@ -82,0 +94,0 @@ throw new Error('Project invalid');

@@ -5,3 +5,3 @@ 'use strict';

var core = require('@vocab/core');
var yargs = require('yargs');
var yargsCli = require('yargs');
var envCi = require('env-ci');

@@ -11,3 +11,3 @@

var yargs__default = /*#__PURE__*/_interopDefault(yargs);
var yargsCli__default = /*#__PURE__*/_interopDefault(yargsCli);
var envCi__default = /*#__PURE__*/_interopDefault(envCi);

@@ -18,3 +18,3 @@

branch
} = envCi__default['default']();
} = envCi__default["default"]();
const branchDefinition = {

@@ -25,5 +25,12 @@ type: 'string',

};
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
const ignorePathDefinition = {
type: 'string',
array: true,
describe: 'list of paths to ignore from the command',
default: []
};
let config = null;
yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', {
type: 'string',

@@ -38,9 +45,10 @@ describe: 'Path to config file'

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

@@ -52,4 +60,9 @@ handler: async options => {

command: 'pull',
builder: () => yargs__default['default'].options({
branch: branchDefinition
builder: yargs => yargs.options({
branch: branchDefinition,
'error-on-no-global-key-translation': {
type: 'boolean',
describe: 'Throw an error when there is no translation for a global key',
default: false
}
}),

@@ -61,3 +74,3 @@ handler: async options => {

command: 'compile',
builder: () => yargs__default['default'].options({
builder: yargs => yargs.options({
watch: {

@@ -79,3 +92,2 @@ type: 'boolean',

const valid = await core.validate(config);
if (!valid) {

@@ -82,0 +94,0 @@ throw new Error('Project invalid');

import { push, pull } from '@vocab/phrase';
import { resolveConfig, compile, validate } from '@vocab/core';
import yargs from 'yargs';
import yargsCli from 'yargs';
import envCi from 'env-ci';

@@ -15,5 +15,12 @@

};
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
const ignorePathDefinition = {
type: 'string',
array: true,
describe: 'list of paths to ignore from the command',
default: []
};
let config = null;
yargs(process.argv.slice(2)).scriptName('vocab').option('config', {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargsCli(process.argv.slice(2)).scriptName('vocab').option('config', {
type: 'string',

@@ -28,9 +35,10 @@ describe: 'Path to config file'

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

@@ -42,4 +50,9 @@ handler: async options => {

command: 'pull',
builder: () => yargs.options({
branch: branchDefinition
builder: yargs => yargs.options({
branch: branchDefinition,
'error-on-no-global-key-translation': {
type: 'boolean',
describe: 'Throw an error when there is no translation for a global key',
default: false
}
}),

@@ -51,3 +64,3 @@ handler: async options => {

command: 'compile',
builder: () => yargs.options({
builder: yargs => yargs.options({
watch: {

@@ -69,3 +82,2 @@ type: 'boolean',

const valid = await validate(config);
if (!valid) {

@@ -72,0 +84,0 @@ throw new Error('Project invalid');

{
"name": "@vocab/cli",
"version": "0.0.0-delete-unused-keys-20228144520",
"version": "0.0.0-feature-ignore-flag-push-20241014224750",
"repository": {
"type": "git",
"url": "https://github.com/seek-oss/vocab.git",
"directory": "packages/cli"
},
"main": "dist/vocab-cli.cjs.js",

@@ -9,20 +14,22 @@ "module": "dist/vocab-cli.esm.js",

},
"files": [
"dist",
"bin.js"
],
"engines": {
"node": ">=18"
},
"author": "SEEK",
"license": "MIT",
"dependencies": {
"@types/env-ci": "^3.1.0",
"@vocab/core": "^1.1.0",
"@vocab/phrase": "^0.0.0-delete-unused-keys-20228144520",
"env-ci": "^5.0.2",
"env-ci": "^7.3.0",
"fast-glob": "^3.2.4",
"form-data": "^3.0.0",
"node-fetch": "^2.6.1",
"prettier": "^2.1.2",
"yargs": "^16.1.0"
"yargs": "^17.7.2",
"@vocab/core": "^1.6.2",
"@vocab/phrase": "^0.0.0-feature-ignore-flag-push-20241014224750"
},
"devDependencies": {
"@types/node-fetch": "^2.5.7",
"@types/prettier": "^2.1.5",
"@types/yargs": "^15.0.9"
"@types/env-ci": "^3.1.0",
"@types/yargs": "^17.0.32"
}
}
}
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