@st-one-io/nodes7
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0
{ | ||
"name": "@st-one-io/nodes7", | ||
"description": "A javascript library to communicate with Siemens S7 PLCs", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0", | ||
"author": "Guilherme Francescon <guilherme@st-one.io>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -916,5 +916,6 @@ //@ts-check | ||
* Uploads all active blocks from the PLC | ||
* @param {boolean} [strict=false] If true, errors on the upload of individual blocks will cause the whole upload to fail | ||
* @returns {Promise<Buffer[]>} | ||
*/ | ||
async uploadAllBlocks() { | ||
async uploadAllBlocks(strict) { | ||
debug('S7Endpoint uploadAllBlocks'); | ||
@@ -927,3 +928,8 @@ | ||
for (const blk of blockList[typ]) { | ||
res.push(await this.uploadBlock(typ, blk.number)); | ||
try { | ||
res.push(await this.uploadBlock(typ, blk.number)); | ||
} catch (e) { | ||
debug('S7Endpoint uploadAllBlocks err-upload', typ, blk.number, e); | ||
if (strict) throw e; | ||
} | ||
} | ||
@@ -930,0 +936,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
423356
1292
7469
1