@vxrn/resolve
Advanced tools
Comparing version 1.1.438 to 1.1.439
@@ -29,3 +29,3 @@ var __create = Object.create; | ||
var import_node_module = __toESM(require("node:module"), 1), import_node_url = require("node:url"); | ||
const import_meta = {}, resolver = "resolve" in import_meta ? (path, from) => (0, import_node_url.fileURLToPath)(import_meta.resolve(path, from)) : "url" in import_meta ? (path, from) => new URL(path, import_meta.url).pathname : require.resolve, resolverV2 = (path, from = process.cwd()) => import_node_module.default.createRequire(from).resolve(path, { paths: [from] }), resolvePath = (path, from) => { | ||
const import_meta = {}, resolver = "resolve" in import_meta ? (path, from) => (0, import_node_url.fileURLToPath)(import_meta.resolve(path, from)) : "url" in import_meta ? (path, from) => new URL(path, import_meta.url).pathname : require.resolve, resolverV2 = (path, from = process.cwd()) => import_node_module.default.createRequire(from).resolve(path, { paths: [from] }), resolvePath = (path, from = process.cwd()) => { | ||
try { | ||
@@ -32,0 +32,0 @@ return resolver(path, from); |
@@ -42,3 +42,4 @@ "use strict"; | ||
return importPath; | ||
}, resolvePath = function(path, from) { | ||
}, resolvePath = function(path) { | ||
var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.cwd(); | ||
try { | ||
@@ -45,0 +46,0 @@ return resolver(path, from); |
import module from "node:module"; | ||
import { fileURLToPath } from "node:url"; | ||
const resolver = "resolve" in import.meta ? (path, from) => fileURLToPath(import.meta.resolve(path, from)) : "url" in import.meta ? (path, from) => new URL(path, import.meta.url).pathname : require.resolve, resolverV2 = (path, from = process.cwd()) => module.createRequire(from).resolve(path, { paths: [from] }), resolvePath = (path, from) => { | ||
const resolver = "resolve" in import.meta ? (path, from) => fileURLToPath(import.meta.resolve(path, from)) : "url" in import.meta ? (path, from) => new URL(path, import.meta.url).pathname : require.resolve, resolverV2 = (path, from = process.cwd()) => module.createRequire(from).resolve(path, { paths: [from] }), resolvePath = (path, from = process.cwd()) => { | ||
try { | ||
@@ -5,0 +5,0 @@ return resolver(path, from); |
@@ -14,3 +14,4 @@ import module from "node:module"; | ||
return importPath; | ||
}, resolvePath = function(path, from) { | ||
}, resolvePath = function(path) { | ||
var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.cwd(); | ||
try { | ||
@@ -17,0 +18,0 @@ return resolver(path, from); |
{ | ||
"name": "@vxrn/resolve", | ||
"version": "1.1.438", | ||
"version": "1.1.439", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15600
215