babel-plugin-formatjs
Advanced tools
Comparing version 10.5.27 to 10.5.28
@@ -8,3 +8,3 @@ import { PluginObj, PluginPass } from '@babel/core'; | ||
export declare const DEFAULT_ID_INTERPOLATION_PATTERN = "[sha512:contenthash:base64:6]"; | ||
declare const _default: (api: object, options: Options | null | undefined, dirname: string) => PluginObj<PluginPass>; | ||
export default _default; | ||
declare const plugin: (api: object, options: Options | null | undefined, dirname: string) => PluginObj<PluginPass>; | ||
export default plugin; |
@@ -7,7 +7,8 @@ "use strict"; | ||
const plugin_syntax_jsx_1 = tslib_1.__importDefault(require("@babel/plugin-syntax-jsx")); | ||
const call_expression_1 = require("./visitors/call-expression"); | ||
const jsx_opening_element_1 = require("./visitors/jsx-opening-element"); | ||
const call_expression_1 = require("./visitors/call-expression"); | ||
exports.DEFAULT_ID_INTERPOLATION_PATTERN = '[sha512:contenthash:base64:6]'; | ||
const plugin = | ||
// @ts-expect-error PluginPass doesn't allow custom state but it actually does | ||
exports.default = (0, helper_plugin_utils_1.declare)((api, options) => { | ||
(0, helper_plugin_utils_1.declare)((api, options) => { | ||
api.assertVersion(7); | ||
@@ -73,1 +74,2 @@ if (!options.idInterpolationPattern) { | ||
}); | ||
exports.default = plugin; |
@@ -8,3 +8,3 @@ import { PluginObj, PluginPass } from '@babel/core'; | ||
export declare const DEFAULT_ID_INTERPOLATION_PATTERN = "[sha512:contenthash:base64:6]"; | ||
declare const _default: (api: object, options: Options | null | undefined, dirname: string) => PluginObj<PluginPass>; | ||
export default _default; | ||
declare const plugin: (api: object, options: Options | null | undefined, dirname: string) => PluginObj<PluginPass>; | ||
export default plugin; |
import { declare } from '@babel/helper-plugin-utils'; | ||
import babelPluginSyntaxJsx from '@babel/plugin-syntax-jsx'; | ||
import { visitor as CallExpression } from './visitors/call-expression'; | ||
import { visitor as JSXOpeningElement } from './visitors/jsx-opening-element'; | ||
import { visitor as CallExpression } from './visitors/call-expression'; | ||
export const DEFAULT_ID_INTERPOLATION_PATTERN = '[sha512:contenthash:base64:6]'; | ||
const plugin = | ||
// @ts-expect-error PluginPass doesn't allow custom state but it actually does | ||
export default declare((api, options) => { | ||
declare((api, options) => { | ||
api.assertVersion(7); | ||
@@ -68,1 +69,2 @@ if (!options.idInterpolationPattern) { | ||
}); | ||
export default plugin; |
{ | ||
"name": "babel-plugin-formatjs", | ||
"version": "10.5.27", | ||
"version": "10.5.28", | ||
"description": "Extracts string messages for translation from modules that use formatjs.", | ||
@@ -23,4 +23,4 @@ "repository": { | ||
"tslib": "2", | ||
"@formatjs/icu-messageformat-parser": "2.9.5", | ||
"@formatjs/ts-transformer": "3.13.24" | ||
"@formatjs/icu-messageformat-parser": "2.9.6", | ||
"@formatjs/ts-transformer": "3.13.25" | ||
}, | ||
@@ -27,0 +27,0 @@ "keywords": [ |
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
43462
1018
+ Added@formatjs/ecma402-abstract@2.3.0(transitive)
+ Added@formatjs/fast-memoize@2.2.5(transitive)
+ Added@formatjs/icu-messageformat-parser@2.9.6(transitive)
+ Added@formatjs/icu-skeleton-parser@1.8.10(transitive)
+ Added@formatjs/intl-localematcher@0.5.9(transitive)
+ Added@formatjs/ts-transformer@3.13.25(transitive)
+ Addeddecimal.js@10.4.3(transitive)
- Removed@formatjs/ecma402-abstract@2.2.5(transitive)
- Removed@formatjs/fast-memoize@2.2.4(transitive)
- Removed@formatjs/icu-messageformat-parser@2.9.5(transitive)
- Removed@formatjs/icu-skeleton-parser@1.8.9(transitive)
- Removed@formatjs/intl-localematcher@0.5.8(transitive)
- Removed@formatjs/ts-transformer@3.13.24(transitive)