@jsenv/module-resolution
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186209
1085