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

@jsenv/module-resolution

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/module-resolution - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

6

dist/commonjs/main.js

@@ -113,2 +113,6 @@ 'use strict';

var hrefToPathname = function hrefToPathname(href) {
return ressourceToPathname(hrefToRessource(href));
};
var hrefToRessource = function hrefToRessource(href) {
var scheme = hrefToScheme(href);

@@ -124,3 +128,3 @@

var pathnameSlashIndex = afterProtocol.indexOf("/", "://".length);
return ressourceToPathname(afterProtocol.slice(pathnameSlashIndex));
return afterProtocol.slice(pathnameSlashIndex);
}

@@ -127,0 +131,0 @@

@@ -114,2 +114,6 @@ var __dmail_assert__ = function (exports) {

var hrefToPathname = function hrefToPathname(href) {
return ressourceToPathname(hrefToRessource(href));
};
var hrefToRessource = function hrefToRessource(href) {
var scheme = hrefToScheme(href);

@@ -125,3 +129,3 @@

var pathnameSlashIndex = afterProtocol.indexOf("/", "://".length);
return ressourceToPathname(afterProtocol.slice(pathnameSlashIndex));
return afterProtocol.slice(pathnameSlashIndex);
}

@@ -128,0 +132,0 @@

36

package.json
{
"name": "@jsenv/module-resolution",
"version": "3.2.0",
"version": "3.3.0",
"license": "MIT",

@@ -16,6 +16,21 @@ "repository": {

"files": [
"/index.js",
"/dist/",
"/src/",
"/dist/"
"/index.js"
],
"scripts": {
"generate-import-map": "node ./script/generate-import-map/generate-import-map.js",
"start-exploring-server": "node ./script/start-exploring-server/start-exploring-server.js",
"test": "node ./script/test/test.js",
"eslint-check": "eslint .",
"prettier-check": "node ./script/prettier-check/prettier-check.js",
"generate-coverage": "node ./script/generate-coverage/generate-coverage.js",
"upload-coverage": "node ./script/upload-coverage/upload-coverage.js",
"generate-global-bundle": "node ./script/generate-global-bundle/generate-global-bundle.js",
"generate-commonjs-bundle": "node ./script/generate-commonjs-bundle/generate-commonjs-bundle.js",
"dist": "npm run clean && npm run generate-global-bundle && npm run generate-commonjs-bundle",
"clean": "rimraf dist && rimraf coverage",
"reinstall": "npm run clean && rimraf node_modules && npm install",
"prepublishOnly": "npm run dist"
},
"dependencies": {},

@@ -43,18 +58,3 @@ "devDependencies": {

"rimraf": "2.6.2"
},
"scripts": {
"generate-import-map": "node ./script/generate-import-map/generate-import-map.js",
"start-exploring-server": "node ./script/start-exploring-server/start-exploring-server.js",
"test": "node ./script/test/test.js",
"eslint-check": "eslint .",
"prettier-check": "node ./script/prettier-check/prettier-check.js",
"generate-coverage": "node ./script/generate-coverage/generate-coverage.js",
"upload-coverage": "node ./script/upload-coverage/upload-coverage.js",
"generate-global-bundle": "node ./script/generate-global-bundle/generate-global-bundle.js",
"generate-commonjs-bundle": "node ./script/generate-commonjs-bundle/generate-commonjs-bundle.js",
"dist": "npm run clean && npm run generate-global-bundle && npm run generate-commonjs-bundle",
"clean": "rimraf dist && rimraf coverage",
"reinstall": "npm run clean && rimraf node_modules && npm install",
"prepublishOnly": "npm run dist"
}
}
import { hrefToScheme } from "./hrefToScheme.js"
export const hrefToPathname = (href) => {
return ressourceToPathname(hrefToRessource(href))
}
const hrefToRessource = (href) => {
const scheme = hrefToScheme(href)

@@ -14,3 +18,3 @@

const pathnameSlashIndex = afterProtocol.indexOf("/", "://".length)
return ressourceToPathname(afterProtocol.slice(pathnameSlashIndex))
return afterProtocol.slice(pathnameSlashIndex)
}

@@ -17,0 +21,0 @@

Sorry, the diff of this file is not supported yet

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