@node-rs/helper
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -8,4 +8,4 @@ "use strict"; | ||
const triples_1 = require("@napi-rs/triples"); | ||
const ArchName = os_1.arch(); | ||
const PlatformName = os_1.platform(); | ||
const ArchName = (0, os_1.arch)(); | ||
const PlatformName = (0, os_1.platform)(); | ||
function loadBinding(dirname, filename = 'index', packageName) { | ||
@@ -30,4 +30,4 @@ var _a, _b; | ||
} | ||
const localFilePath = path_1.join(dirname, `${filename}.${triple.platformArchABI}.node`); | ||
if (fs_1.existsSync(localFilePath)) { | ||
const localFilePath = (0, path_1.join)(dirname, `${filename}.${triple.platformArchABI}.node`); | ||
if ((0, fs_1.existsSync)(localFilePath)) { | ||
try { | ||
@@ -45,3 +45,3 @@ return require(localFilePath); | ||
const packageNameWithoutNamespace = packageName.split('/').pop(); | ||
packageList = fs_1.readdirSync(path_1.join(require.resolve(packageName, { paths: [dirname] }), '..', '..')) | ||
packageList = (0, fs_1.readdirSync)((0, path_1.join)(require.resolve(packageName, { paths: [dirname] }), '..', '..')) | ||
.filter((d) => d !== packageNameWithoutNamespace && d.startsWith(packageNameWithoutNamespace)) | ||
@@ -48,0 +48,0 @@ .join(', '); |
{ | ||
"name": "@node-rs/helper", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Helper library for node-rs", | ||
@@ -35,5 +35,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@napi-rs/triples": "^1.0.3" | ||
"@napi-rs/triples": "^1.1.0" | ||
}, | ||
"gitHead": "e50b1a09a2eeb2682ef492d567230fff669ab196" | ||
"gitHead": "baa8a4702e3e71b80f2eeebbf3cb6e384a94eb74" | ||
} |
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
5533
Updated@napi-rs/triples@^1.1.0