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

@repacks/kerberos

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@repacks/kerberos - npm Package Compare versions

Comparing version 2.0.1-1 to 2.0.1-2

17

lib/repacks-kerberos-binding.js

@@ -8,7 +8,8 @@ 'use strict';

const nativeDirs = readdirSync(join(__dirname, '..', 'src', 'native'));
const nativeRelativePath = join('..', 'src', 'native');
const nativeDirs = readdirSync(join(__dirname, nativeRelativePath));
const nativePath = 'build/Release/kerberos.node';
let dirName = '';
const getNativeDirName = (target) => nativeDirs.find(n => n.includes(target));
const getNativeDirName = (target) => nativeDirs.find((n) => n.includes(target));

@@ -30,3 +31,3 @@ switch (platform) {

}
break
break;
case 'linux':

@@ -43,3 +44,3 @@ switch (arch) {

}
break
break;
default:

@@ -55,8 +56,10 @@ throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`);

try {
nativeBinding = require(`../native/${dirName}/${nativePath}`);
nativeBinding = require(`${nativeRelativePath}/${dirName}/${nativePath}`);
} catch (err) {
console.error(`Use the \x1b[36m'kerberos'\x1b[0m package directly instead of \x1b[35m'@repacks/kerberos'\x1b[0m.`);
console.error(
`Use the \x1b[36m'kerberos'\x1b[0m package directly instead of \x1b[35m'@repacks/kerberos'\x1b[0m.`
);
throw new Error('Failed to load native binding', { cause: err });
}
module.exports = nativeBinding;
module.exports = nativeBinding;
{
"name": "@repacks/kerberos",
"version": "2.0.1-1",
"version": "2.0.1-2",
"description": "Kerberos library for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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