iotagent-node-lib 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES_NEXT_RELEASE
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- Fix: ensure entity_id is a stirng when is result of entityNameExp (#1476)
|
|
@@ -676,8 +676,9 @@ function sendUpdateValueNgsi2(entityName, attributes, typeInformation, token, ca
|
|
|
676
676
|
try {
|
|
677
677
|
logger.debug(context, 'sendUpdateValueNgsi2 entityNameExp %j ', typeInformation.entityNameExp);
|
|
678
678
|
entityName = expressionPlugin.applyExpression(typeInformation.entityNameExp, ctxt, typeInformation);
|
|
679
|
-
|
|
680
|
-
|
|
679
|
+
// CB entity id should be always a String
|
|
680
|
+
payload.entities[0].id = String(entityName);
|
|
681
|
+
ctxt['entity_name'] = String(entityName);
|
|
681
682
|
} catch (e) {
|
|
682
683
|
logger.debug(
|
|
683
684
|
context,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "iotagent-node-lib",
|
|
3
3
|
"license": "AGPL-3.0-only",
|
|
4
4
|
"description": "IoT Agent library to interface with NGSI Context Broker",
|
|
5
|
-
"version": "3.4.
|
|
5
|
+
"version": "3.4.1",
|
|
6
6
|
"homepage": "https://github.com/telefonicaid/iotagent-node-lib",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"fiware",
|