opengate-js 11.18.2 → 11.18.3
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/bower.json +1 -1
- package/dist/{opengate-api-bower-11.18.2.js → opengate-api-bower-11.18.3.js} +15 -7
- package/dist/opengate-api-bower-11.18.3.js.map +1 -0
- package/dist/{opengate-api-bower-11.18.2.min.js → opengate-api-bower-11.18.3.min.js} +4 -4
- package/dist/{opengate-api-bower-11.18.2.min.js.map → opengate-api-bower-11.18.3.min.js.map} +1 -1
- package/dist/src/provision/entities/SimpleBuilder.js +10 -2
- package/dist/src/provision/entities/SimpleBuilder.js.map +1 -1
- package/docs/ast/source/provision/entities/SimpleBuilder.js.json +9642 -8965
- package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +11 -11
- package/docs/coverage.json +2 -2
- package/docs/dump.json +22 -22
- package/docs/file/src/provision/entities/SimpleBuilder.js.html +7 -2
- package/docs/package.json +1 -1
- package/docs/source.html +211 -211
- package/package.json +1 -1
- package/src/provision/entities/SimpleBuilder.js +7 -2
- package/dist/opengate-api-bower-11.18.2.js.map +0 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import HttpStatus from 'http-status-codes';
|
|
4
4
|
import BaseProvision from '../BaseProvision';
|
|
5
5
|
import q from 'q';
|
|
6
|
+
import _ from 'lodash'
|
|
6
7
|
|
|
7
8
|
const ERROR_VALUE_NOT_ALLOWED = 'value is not allowed. The value should be formatted as follows: ';
|
|
8
9
|
const ERROR_DATASTREAM_NOT_ALLOWED = 'Datastream is not allowed';
|
|
@@ -88,9 +89,13 @@ export default class SimpleBuilder extends BaseProvision {
|
|
|
88
89
|
*/
|
|
89
90
|
with(_id, val) {
|
|
90
91
|
if (val === undefined || val.length === 0) {
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
// Si es un array vacío debe continuar
|
|
93
|
+
if (!_.isArray(val)) {
|
|
94
|
+
delete this._entity[_id];
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
93
97
|
}
|
|
98
|
+
|
|
94
99
|
if (this.getAllowedDatastreams().filter(function(ds) {
|
|
95
100
|
return ds.identifier === _id;
|
|
96
101
|
}).length !== 1) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"mappings":"","sources":["opengate-api-bower.js"],"file":"opengate-api-bower-11.18.2.js","sourceRoot":".."}
|