@vxrn/resolve 1.1.336 → 1.1.338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +7 -24
- package/dist/cjs/index.js +4 -15
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/index.native.js +7 -23
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/index.js +1 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -8
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +4 -13
- package/dist/esm/index.native.js.map +2 -2
- package/package.json +2 -2
- package/src/index.tsx +3 -13
- package/types/index.d.ts.map +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var
|
|
6
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all) __defProp(target, name, {
|
|
9
7
|
get: all[name],
|
|
@@ -17,30 +15,15 @@ var __export = (target, all) => {
|
|
|
17
15
|
});
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
-
value: mod,
|
|
27
|
-
enumerable: !0
|
|
28
|
-
}) : target, mod)),
|
|
29
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
-
value: !0
|
|
31
|
-
}), mod);
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
32
21
|
var src_exports = {};
|
|
33
22
|
__export(src_exports, {
|
|
34
23
|
resolvePath: () => resolvePath
|
|
35
24
|
});
|
|
36
25
|
module.exports = __toCommonJS(src_exports);
|
|
37
|
-
var import_node_url = require("node:url")
|
|
38
|
-
import_node_module = __toESM(require("node:module"), 1);
|
|
26
|
+
var import_node_url = require("node:url");
|
|
39
27
|
const import_meta = {},
|
|
40
|
-
resolver = "resolve" in import_meta ? path => (0, import_node_url.fileURLToPath)(import_meta.resolve(path)) : "url" in import_meta ? path => new URL(path, import_meta.url).pathname : require.resolve,
|
|
41
|
-
resolvePath = (path, from) =>
|
|
42
|
-
function resolveFrom(path, from) {
|
|
43
|
-
return import_node_module.default.createRequire(from).resolve(path, {
|
|
44
|
-
paths: [from]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
28
|
+
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,
|
|
29
|
+
resolvePath = (path, from) => resolver(path, from);
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -12,22 +11,12 @@ var __export = (target, all) => {
|
|
|
12
11
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
12
|
return to;
|
|
14
13
|
};
|
|
15
|
-
var
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
15
|
var src_exports = {};
|
|
24
16
|
__export(src_exports, {
|
|
25
17
|
resolvePath: () => resolvePath
|
|
26
18
|
});
|
|
27
19
|
module.exports = __toCommonJS(src_exports);
|
|
28
|
-
var import_node_url = require("node:url")
|
|
29
|
-
const import_meta = {}, resolver = "resolve" in import_meta ? (path) => (0, import_node_url.fileURLToPath)(import_meta.resolve(path)) : "url" in import_meta ? (path) => new URL(path, import_meta.url).pathname : require.resolve, resolvePath = (path, from) =>
|
|
30
|
-
function resolveFrom(path, from) {
|
|
31
|
-
return import_node_module.default.createRequire(from).resolve(path, { paths: [from] });
|
|
32
|
-
}
|
|
20
|
+
var import_node_url = require("node:url");
|
|
21
|
+
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, resolvePath = (path, from) => resolver(path, from);
|
|
33
22
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAA8B;AAA9B,wBAEM,WACJ,aAAa,cACT,CAAC,MAAc,aAAkB,+BAAc,YAAY,QAAQ,MAAM,IAAI,CAAC,IAC9E,SAAS,cACP,CAAC,MAAc,SAAkB,IAAI,IAAI,MAAM,YAAY,GAAG,EAAE,WAChE,QAAQ,SAEH,cAAc,CAAC,MAAc,SACjC,SAAS,MAAM,IAAI;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -13,36 +12,21 @@ var __export = (target, all) => {
|
|
|
13
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
13
|
return to;
|
|
15
14
|
};
|
|
16
|
-
var
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
16
|
var src_exports = {};
|
|
25
17
|
__export(src_exports, {
|
|
26
18
|
resolvePath: () => resolvePath
|
|
27
19
|
});
|
|
28
20
|
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
var import_node_url = require("node:url")
|
|
21
|
+
var import_node_url = require("node:url");
|
|
30
22
|
const import_meta = {};
|
|
31
|
-
var resolver = "resolve" in import_meta ? function(path) {
|
|
32
|
-
return (0, import_node_url.fileURLToPath)(import_meta.resolve(path));
|
|
33
|
-
} : "url" in import_meta ? function(path) {
|
|
23
|
+
var resolver = "resolve" in import_meta ? function(path, from) {
|
|
24
|
+
return (0, import_node_url.fileURLToPath)(import_meta.resolve(path, from));
|
|
25
|
+
} : "url" in import_meta ? function(path, from) {
|
|
34
26
|
return new URL(path, import_meta.url).pathname;
|
|
35
27
|
} : require.resolve, resolvePath = function(path, from) {
|
|
36
|
-
return
|
|
28
|
+
return resolver(path, from);
|
|
37
29
|
};
|
|
38
|
-
function resolveFrom(path, from) {
|
|
39
|
-
var _$require = import_node_module.default.createRequire(from);
|
|
40
|
-
return _$require.resolve(path, {
|
|
41
|
-
paths: [
|
|
42
|
-
from
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
31
|
0 && (module.exports = {
|
|
48
32
|
resolvePath
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/resolve/src/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["resolver", "path", "fileURLToPath", "resolve", "URL", "url", "pathname", "require", "resolvePath"
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;sBAA8B;AAA9B;AAEA,IAAMA,WACJ,aAAa,cACT,SAACC,MAAcC,MAAAA;aAAkBC,+BAAc,YAAYC,QAAQH,MAAMC,IAAAA,CAAAA;IACzE,SAAS,cACP,SAACD,MAAcC,MAAAA;SAAkB,IAAIG,IAAIJ,MAAM,YAAYK,GAAG,EAAEC;IAChEC,QAAQJ,SAEHK,cAAc,SAACR,MAAcC,MAAAA;AACxC,SAAOF,SAASC,MAAMC,IAAAA;AACxB;",
|
|
5
|
+
"names": ["resolver", "path", "from", "fileURLToPath", "resolve", "URL", "url", "pathname", "require", "resolvePath"]
|
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
|
-
import
|
|
3
|
-
const resolver = "resolve" in import.meta ? (path) => fileURLToPath(import.meta.resolve(path)) : "url" in import.meta ? (path) => new URL(path, import.meta.url).pathname : require.resolve, resolvePath = (path, from) => from ? resolveFrom(path, from) : resolver(path);
|
|
4
|
-
function resolveFrom(path, from) {
|
|
5
|
-
return module.createRequire(from).resolve(path, { paths: [from] });
|
|
6
|
-
}
|
|
2
|
+
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, resolvePath = (path, from) => resolver(path, from);
|
|
7
3
|
export {
|
|
8
4
|
resolvePath
|
|
9
5
|
};
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,qBAAqB;
|
|
4
|
+
"mappings": "AAAA,SAAS,qBAAqB;AAE9B,MAAM,WACJ,aAAa,cACT,CAAC,MAAc,SAAkB,cAAc,YAAY,QAAQ,MAAM,IAAI,CAAC,IAC9E,SAAS,cACP,CAAC,MAAc,SAAkB,IAAI,IAAI,MAAM,YAAY,GAAG,EAAE,WAChE,QAAQ,SAEH,cAAc,CAAC,MAAc,SACjC,SAAS,MAAM,IAAI;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
resolvePath = (path, from) => from ? resolveFrom(path, from) : resolver(path);
|
|
5
|
-
function resolveFrom(path, from) {
|
|
6
|
-
return module.createRequire(from).resolve(path, {
|
|
7
|
-
paths: [from]
|
|
8
|
-
});
|
|
9
|
-
}
|
|
2
|
+
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,
|
|
3
|
+
resolvePath = (path, from) => resolver(path, from);
|
|
10
4
|
export { resolvePath };
|
|
11
5
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["fileURLToPath","
|
|
1
|
+
{"version":3,"names":["fileURLToPath","resolver","import","meta","path","from","resolve","URL","url","pathname","require","resolvePath"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAE9B,MAAMC,QAAA,GACJ,aAAaC,MAAA,CAAAC,IAAA,GACT,CAACC,IAAA,EAAcC,IAAA,KAAkBL,aAAA,CAAcE,MAAA,CAAAC,IAAA,CAAYG,OAAA,CAAQF,IAAA,EAAMC,IAAI,CAAC,IAC9E,SAASH,MAAA,CAAAC,IAAA,GACP,CAACC,IAAA,EAAcC,IAAA,KAAkB,IAAIE,GAAA,CAAIH,IAAA,EAAMF,MAAA,CAAAC,IAAA,CAAYK,GAAG,EAAEC,QAAA,GAChEC,OAAA,CAAQJ,OAAA;EAEHK,WAAA,GAAcA,CAACP,IAAA,EAAcC,IAAA,KACjCJ,QAAA,CAASG,IAAA,EAAMC,IAAI","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} : "url" in import.meta ? function(path) {
|
|
2
|
+
var resolver = "resolve" in import.meta ? function(path, from) {
|
|
3
|
+
return fileURLToPath(import.meta.resolve(path, from));
|
|
4
|
+
} : "url" in import.meta ? function(path, from) {
|
|
6
5
|
return new URL(path, import.meta.url).pathname;
|
|
7
6
|
} : require.resolve, resolvePath = function(path, from) {
|
|
8
|
-
return
|
|
7
|
+
return resolver(path, from);
|
|
9
8
|
};
|
|
10
|
-
function resolveFrom(path, from) {
|
|
11
|
-
var _$require = module.createRequire(from);
|
|
12
|
-
return _$require.resolve(path, {
|
|
13
|
-
paths: [
|
|
14
|
-
from
|
|
15
|
-
]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
9
|
export {
|
|
19
10
|
resolvePath
|
|
20
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/resolve/src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAASA,qBAAqB;
|
|
5
|
-
"names": ["fileURLToPath", "
|
|
4
|
+
"mappings": "AAAA,SAASA,qBAAqB;AAE9B,IAAMC,WACJ,aAAa,cACT,SAACC,MAAcC,MAAAA;SAAkBH,cAAc,YAAYI,QAAQF,MAAMC,IAAAA,CAAAA;IACzE,SAAS,cACP,SAACD,MAAcC,MAAAA;SAAkB,IAAIE,IAAIH,MAAM,YAAYI,GAAG,EAAEC;IAChEC,QAAQJ,SAEHK,cAAc,SAACP,MAAcC,MAAAA;AACxC,SAAOF,SAASC,MAAMC,IAAAA;AACxB;",
|
|
5
|
+
"names": ["fileURLToPath", "resolver", "path", "from", "resolve", "URL", "url", "pathname", "require", "resolvePath"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxrn/resolve",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.338",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"clean:build": "tamagui-build clean:build"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tamagui/build": "^1.
|
|
32
|
+
"@tamagui/build": "^1.120.1"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
package/src/index.tsx
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url'
|
|
2
|
-
import module from 'node:module'
|
|
3
2
|
|
|
4
3
|
const resolver =
|
|
5
4
|
'resolve' in import.meta
|
|
6
|
-
? (path: string) => fileURLToPath(import.meta.resolve(path))
|
|
5
|
+
? (path: string, from?: string) => fileURLToPath(import.meta.resolve(path, from))
|
|
7
6
|
: 'url' in import.meta
|
|
8
|
-
? (path: string) => new URL(path, import.meta.url).pathname
|
|
7
|
+
? (path: string, from?: string) => new URL(path, import.meta.url).pathname
|
|
9
8
|
: require.resolve
|
|
10
9
|
|
|
11
10
|
export const resolvePath = (path: string, from?: string): string => {
|
|
12
|
-
|
|
13
|
-
return resolveFrom(path, from)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return resolver(path)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function resolveFrom(path: string, from: string): string {
|
|
20
|
-
const require = module.createRequire(from)
|
|
21
|
-
return require.resolve(path, { paths: [from] })
|
|
11
|
+
return resolver(path, from)
|
|
22
12
|
}
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,SAAU,MAAM,SAAS,MAAM,KAAG,MAEzD,CAAA"}
|