Comparing version 0.1.0 to 0.1.1
@@ -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": { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
121848
4
4
+ Addedffi@2.3.0(transitive)
+ Addedref@1.3.5(transitive)
+ Addedref-struct@1.1.0(transitive)
- Removedexec-sync@~0.1.6
- Removedbindings@1.5.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedexec-sync@0.1.6(transitive)
- Removedffi@1.2.7(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedms@2.1.3(transitive)
- Removednan@1.5.3(transitive)
- Removedref@0.3.5(transitive)
- Removedref-struct@0.0.7(transitive)
Updatedffi@>=1.2.7
Updatedref@>=0.3.2
Updatedref-struct@>=0.0.6