Comparing version 1.0.0 to 1.0.1
/** | ||
* Copyright reelyActive 2015-2020 | ||
* Copyright reelyActive 2015-2021 | ||
* We believe in an open Internet of Things | ||
@@ -96,3 +96,18 @@ */ | ||
}); | ||
break; | ||
break; | ||
case 'interactionDigest': | ||
let isSameDigest = (target[property].timestamp === | ||
source[property].timestamp); | ||
if(isSameDigest) { | ||
source[property].interactions.forEach(function(interaction, index) { | ||
let isBeyond = (index >= target[property].interactions.length); | ||
if(isBeyond) { | ||
target[property].interactions.push(interaction); | ||
} | ||
else if(entry) { | ||
target[property].interactions[index] = interaction; | ||
} | ||
}); | ||
} | ||
break; | ||
} | ||
@@ -99,0 +114,0 @@ } |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"engines": { | ||
@@ -21,0 +21,0 @@ "node": ">=6.0.0" |
@@ -11,3 +11,3 @@ advlib | ||
__advlib__ is a lightweight [Node.js package](https://www.npmjs.com/package/advlib) that can run on resource-constrained edge devices as well as on powerful cloud servers and anything in between. It is a key element in [Pareto Anywhere](https://getpareto.com/) open source software of the [reelyActive technology platform](https://www.reelyactive.com/technology/). | ||
__advlib__ is a lightweight [Node.js package](https://www.npmjs.com/package/advlib) that can run on resource-constrained edge devices as well as on powerful cloud servers and anything in between. It is a key element in [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere/) open source software of the [reelyActive technology platform](https://www.reelyactive.com/technology/). | ||
@@ -70,4 +70,5 @@ | ||
| deviceIds | Array of String | | | ||
| interactionDigest | Array of Object | | | ||
| name | String | | | ||
| nearest | Array of Object | Format pending | | ||
| nearest | Array of Object | | | ||
| relativeHumidity | Number | 0 to 100 (%) | | ||
@@ -109,3 +110,3 @@ | temperature | Number | In Celcius | | ||
Copyright (c) 2015-2020 [reelyActive](https://www.reelyactive.com) | ||
Copyright (c) 2015-2021 [reelyActive](https://www.reelyactive.com) | ||
@@ -112,0 +113,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14400
173
121
0