Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@node-rs/helper

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-rs/helper - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

10

lib/loader.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc