Socket
Socket
Sign inDemoInstall

@formatjs/cli

Package Overview
Dependencies
Maintainers
3
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/cli - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

6

package.json
{
"name": "@formatjs/cli",
"version": "4.3.1",
"version": "4.3.2",
"description": "A CLI for formatjs.",

@@ -34,4 +34,4 @@ "keywords": [

"dependencies": {
"@formatjs/icu-messageformat-parser": "2.0.12",
"@formatjs/ts-transformer": "3.5.0",
"@formatjs/icu-messageformat-parser": "2.0.13",
"@formatjs/ts-transformer": "3.5.1",
"@types/estree": "^0.0.50",

@@ -38,0 +38,0 @@ "@types/fs-extra": "^9.0.1",

@@ -41,4 +41,4 @@ "use strict";

.option('--remove-default-message', 'Remove `defaultMessage` field in generated js after extraction', false)
.option('--additional-component-names <comma-separated-names>', "Additional component names to extract messages from, e.g: `['FormattedFooBarMessage']`. \n**NOTE**: By default we check for the fact that `FormattedMessage` \nis imported from `moduleSourceName` to make sure variable alias \nworks. This option does not do that so it's less safe.", function (val) { return val.split(','); })
.option('--additional-function-names <comma-separated-names>', "Additional function names to extract messages from, e.g: `['$t']`.", function (val) { return val.split(','); })
.option('--additional-component-names <comma-separated-names>', "Additional component names to extract messages from, e.g: `'FormattedFooBarMessage'`. \n**NOTE**: By default we check for the fact that `FormattedMessage` \nis imported from `moduleSourceName` to make sure variable alias \nworks. This option does not do that so it's less safe.", function (val) { return val.split(','); })
.option('--additional-function-names <comma-separated-names>', "Additional function names to extract messages from, e.g: `'$t'`.", function (val) { return val.split(','); })
.option('--ignore <files...>', 'List of glob paths to **not** extract translations from.')

@@ -45,0 +45,0 @@ .option('--throws', 'Whether to throw an exception when we fail to process any file in the batch.')

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