@neon-rs/load 0.0.35 → 0.0.36
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/index.js +1 -11
- package/package.json +1 -1
- package/types/index.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bin = exports.
|
|
4
|
-
const node_module_1 = require("node:module");
|
|
3
|
+
exports.bin = exports.currentTarget = void 0;
|
|
5
4
|
function currentTarget() {
|
|
6
5
|
let os = null;
|
|
7
6
|
switch (process.platform) {
|
|
@@ -78,15 +77,6 @@ function isGlibc() {
|
|
|
78
77
|
// const pathSpec = path.join(...components);
|
|
79
78
|
// return fs.existsSync(pathSpec) ? require(pathSpec) : null;
|
|
80
79
|
// }
|
|
81
|
-
const requireAbsolute = (0, node_module_1.createRequire)(process.cwd());
|
|
82
|
-
function scope(scope) {
|
|
83
|
-
return requireAbsolute(scope + "/" + currentTarget());
|
|
84
|
-
}
|
|
85
|
-
exports.scope = scope;
|
|
86
|
-
function custom(toRequireSpec) {
|
|
87
|
-
return requireAbsolute(toRequireSpec(currentTarget()));
|
|
88
|
-
}
|
|
89
|
-
exports.custom = custom;
|
|
90
80
|
function* interleave(a1, a2) {
|
|
91
81
|
const length = Math.max(a1.length, a2.length);
|
|
92
82
|
for (let i = 0; i < length; i++) {
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED