Socket
Socket
Sign inDemoInstall

esm-resolve

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm-resolve - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

lib/helper.js

@@ -52,3 +52,10 @@ /*

export function splitImport(importee) {
const name = importee.split('/', 1)[0];
const split = importee.split('/', 2);
let name = '';
if (!split[0].startsWith('@')) {
name = split[0];
} else if (split[0] && split[1]) {
name = split.join('/');
}
if (!name || name.startsWith('.')) {

@@ -55,0 +62,0 @@ return {rest: importee};

2

package.json
{
"name": "esm-resolve",
"version": "1.0.2",
"version": "1.0.3",
"description": "Resolves ESM imports in JS",

@@ -5,0 +5,0 @@ "main": "index.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