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

babel-plugin-formatjs

Package Overview
Dependencies
Maintainers
1
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 9.1.4 to 9.2.0

10

index.js

@@ -144,12 +144,4 @@ "use strict";

}
var object = callee.get('object');
var property = callee.get('property');
return (property.isIdentifier() &&
property.node.name === 'formatMessage' &&
!Array.isArray(object) &&
// things like `intl.formatMessage`
((object.isIdentifier() && object.node.name === 'intl') ||
// things like `this.props.intl.formatMessage`
(object.isMemberExpression() &&
object.get('property').node.name === 'intl')));
return fnNames.has(property.node.name);
}

@@ -156,0 +148,0 @@ function assertObjectExpression(path, callee) {

2

package.json
{
"name": "babel-plugin-formatjs",
"version": "9.1.4",
"version": "9.2.0",
"description": "Extracts string messages for translation from modules that use formatjs.",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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