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

babel-plugin-formatjs

Package Overview
Dependencies
Maintainers
0
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-formatjs - npm Package Compare versions

Comparing version 10.5.27 to 10.5.28

4

index.d.ts

@@ -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": [

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