@vxrn/resolve
Advanced tools
Comparing version 1.1.372 to 1.1.373
@@ -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) => 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) => { | ||
try { | ||
@@ -32,0 +32,0 @@ return resolver(path, from); |
@@ -35,4 +35,4 @@ "use strict"; | ||
return new URL(path, import_meta.url).pathname; | ||
} : require.resolve, resolverV2 = function(path, from) { | ||
var _$require = import_node_module.default.createRequire(from), importPath = _$require.resolve(path, { | ||
} : require.resolve, resolverV2 = function(path) { | ||
var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.cwd(), _$require = import_node_module.default.createRequire(from), importPath = _$require.resolve(path, { | ||
paths: [ | ||
@@ -39,0 +39,0 @@ 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) => 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) => { | ||
try { | ||
@@ -5,0 +5,0 @@ return resolver(path, from); |
@@ -7,4 +7,4 @@ import module from "node:module"; | ||
return new URL(path, import.meta.url).pathname; | ||
} : require.resolve, resolverV2 = function(path, from) { | ||
var _$require = module.createRequire(from), importPath = _$require.resolve(path, { | ||
} : require.resolve, resolverV2 = function(path) { | ||
var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.cwd(), _$require = module.createRequire(from), importPath = _$require.resolve(path, { | ||
paths: [ | ||
@@ -11,0 +11,0 @@ from |
{ | ||
"name": "@vxrn/resolve", | ||
"version": "1.1.372", | ||
"version": "1.1.373", | ||
"sideEffects": false, | ||
"source": "src/index.ts", | ||
"type": "module", | ||
"types": "./types/index.d.ts", | ||
"types": "./src/index.tsx", | ||
"main": "dist/cjs", | ||
@@ -13,3 +13,3 @@ "module": "dist/esm", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"types": "./src/index.tsx", | ||
"import": "./dist/esm/index.mjs", | ||
@@ -21,8 +21,7 @@ "require": "./dist/cjs/index.js" | ||
"src", | ||
"types", | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tamagui-build", | ||
"watch": "tamagui-build --watch", | ||
"build": "tamagui-build --skip-types", | ||
"watch": "tamagui-build --skip-types --watch", | ||
"lint": "npx biome check src", | ||
@@ -29,0 +28,0 @@ "lint:fix": "npx biome check --apply-unsafe src", |
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
15127
14
213