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

eshost

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eshost - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

coverage/clover.xml

12

lib/dependencies.js

@@ -14,5 +14,7 @@ 'use strict';

function hasModuleSpecifier(source) {
const realmImportValue = /importValue\((\s*)(('(.+)'|"(.*)"))(\s*),/g.exec(source);
const dynamicImport = /import\((\s*)('(.+)'|"(.*)")(\s*)\)/g.exec(source);
const moduleImport = /(import|from)(?:\s*)('(\.\/.*)'|"(\.\/.*)")/g.exec(source);
if ((dynamicImport && dynamicImport.length) ||
if ((realmImportValue && realmImportValue.length) ||
(dynamicImport && dynamicImport.length) ||
(moduleImport && moduleImport.length)) {

@@ -32,3 +34,9 @@ return true;

if (dependencySuffixes.test(line)) {
let parsed = /(import|import\(|from)(\s*)('(.*?)'|"(.*?)")/g.exec(line);
let parsedDynamicOrStaticImport = /(import|import\(|from)(\s*)('(.*?)'|"(.*?)")/g.exec(line);
let parsedRealmImportValue = /importValue\((\s*)(('(.+)'|"(.*)"))(\s*),/g.exec(line);
let parsed = parsedDynamicOrStaticImport && parsedDynamicOrStaticImport.length
? parsedDynamicOrStaticImport
: parsedRealmImportValue;
if (parsed && parsed.length) {

@@ -35,0 +43,0 @@ for (let entry of parsed) {

2

package.json
{
"name": "eshost",
"version": "8.1.0",
"version": "8.2.0",
"description": "Invoke ECMAScript scripts in any command line JS engine.",

@@ -5,0 +5,0 @@ "main": "lib/eshost.js",

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