Socket
Socket
Sign inDemoInstall

@jsenv/import-map

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/import-map - npm Package Compare versions

Comparing version 6.5.0 to 6.5.1

6

dist/commonjs/main.js

@@ -713,3 +713,3 @@ 'use strict';

if (hrefUseFileProtocol(importer)) {
if (hrefUseFileProtocol(importer) && !isOriginRelativeSpecifier(specifier)) {
const url = resolveUrl(specifier, importer);

@@ -771,2 +771,6 @@

const isOriginRelativeSpecifier = specifier => {
return specifier[0] === "/" && specifier[1] !== "/";
};
const hrefUseFileProtocol = specifier => specifier.startsWith("file://");

@@ -773,0 +777,0 @@

2

package.json
{
"name": "@jsenv/import-map",
"description": "Helpers to implement importMap",
"version": "6.5.0",
"version": "6.5.1",
"license": "MIT",

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

@@ -64,3 +64,3 @@ import { operatingSystemPathToPathname } from "@jsenv/operating-system-path"

if (hrefUseFileProtocol(importer)) {
if (hrefUseFileProtocol(importer) && !isOriginRelativeSpecifier(specifier)) {
const url = resolveUrl(specifier, importer)

@@ -133,2 +133,6 @@

const isOriginRelativeSpecifier = (specifier) => {
return specifier[0] === "/" && specifier[1] !== "/"
}
const hrefUseFileProtocol = (specifier) => specifier.startsWith("file://")

@@ -135,0 +139,0 @@

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