New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rfid-sl030

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfid-sl030 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

lib/rfid-sl030.js

@@ -11,7 +11,7 @@ // Node.js module for i2c SL030 RFID readers on the Raspberry Pi

var fs = require('fs');
var execSync = require('exec-sync');
var child_process = require('child_process');
// Work out which version of the libbcm2835 library we want to use
// (They're different for different versions of the Raspberry Pi)
var piVersion = execSync('python '+path.dirname(module.filename)+'/rpi_version.py');
var piVersion = child_process.execSync('python '+path.dirname(module.filename)+'/rpi_version.py');

@@ -21,3 +21,3 @@ // We have the libbcm2835.so file in the same directory as this file

// FIXME so that other Node.js Raspberry Pi SPI and I2C projects could use it
var libbcm2835 = ffi.Library(path.dirname(module.filename)+'/libbcm2835.pi'+piVersion+'.so', {
var libbcm2835 = ffi.Library(path.dirname(module.filename)+'/libbcm2835.pi'+piVersion.toString().trim()+'.so', {
'bcm2835_init': ['uint8', [] ],

@@ -24,0 +24,0 @@ 'bcm2835_close': ['uint8', [] ],

@@ -10,3 +10,3 @@ {

"license": "Apache-2.0",
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -23,7 +23,6 @@ "name": "MCQN Ltd",

"dependencies": {
"ffi": "~1.2.7",
"ref": "~0.3.2",
"ffi": ">=1.2.7",
"ref": ">=0.3.2",
"sleep": ">=1.1.8",
"ref-struct": "~0.0.6",
"exec-sync": "~0.1.6"
"ref-struct": ">=0.0.6"
},

@@ -30,0 +29,0 @@ "bugs": {

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