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

messages-modules

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

messages-modules - npm Package Compare versions

Comparing version 1.1.16 to 1.1.17

4

lib/index.js

@@ -224,3 +224,3 @@ "use strict";

var binding = nodePath.scope.getBinding(currentName);
if (!binding) {
if (!binding || binding.referencePaths.length === 0) {
return; // If the function is unused (no binding), no need to hijack.

@@ -303,4 +303,2 @@ }

if (isMatchingNamedImport(bodyNodePath, hijackTarget)) {
// console.log('----------')
// console.dir(bodyNodePath)
hijackNamedImport(bodyNodePath, hijackTarget, messages);

@@ -307,0 +305,0 @@ }

{
"name": "messages-modules",
"version": "1.1.16",
"version": "1.1.17",
"description": "Messages (localized strings) that are scoped locally.",

@@ -51,3 +51,3 @@ "author": "Avansai (https://avansai.com)",

"@types/jest": "^29.2.0",
"@types/node": "^18.11.7",
"@types/node": "^18.11.8",
"@typescript-eslint/eslint-plugin": "^5.41.0",

@@ -54,0 +54,0 @@ "@typescript-eslint/parser": "^5.41.0",

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