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

@chirimen/ads1015

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chirimen/ads1015 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-alpha.0

10

ads1015.js

@@ -17,7 +17,6 @@ (function (global, factory) {

this.i2cPort.open(this.slaveAddress).then((i2cSlave) => {
console.log("ADS1015.init OK");
this.i2cSlave = i2cSlave;
resolve();
},(err) => {
console.log("ADS1015.init() Error: "+error.message);
console.error("ADS1015.init() Error: "+error.message);
reject(err);

@@ -31,3 +30,3 @@ });

if((channel > 3)||(channel < 0)){
console.log("ADS1015.read: channel error"+channel);
console.error("ADS1015.read: channel error"+channel);
err.code = 5;

@@ -53,3 +52,3 @@ reject(err.message);

},(err) => {
console.log("ADS1015.read: read16(0) error"+err.message);
console.error("ADS1015.read: read16(0) error"+err.message);
err.code = 3;

@@ -60,3 +59,3 @@ reject(err.message);

}, (err) => {
console.log("ADS1015.read: write16(0,config) error"+err.message);
console.error("ADS1015.read: write16(0,config) error"+err.message);
err.code = 2;

@@ -66,3 +65,2 @@ reject(err.message);

}else{
console.log("i2cSlave is gone.....");
err.code = 1;

@@ -69,0 +67,0 @@ reject(err.message);

4

package.json
{
"name": "@chirimen/ads1015",
"version": "1.0.0",
"version": "1.0.1-alpha.0",
"description": "Driver for ADS1015 with WebI2C",

@@ -22,3 +22,3 @@ "main": "ads1015.js",

},
"gitHead": "38a699cdc76aca1347be918f2e3581825715ea14"
"gitHead": "0df331a064d1eb34860455116210d99dbea00032"
}

Sorry, the diff of this file is not supported yet

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