@boostercloud/framework-provider-azure 0.26.13 → 0.27.0

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.
@@ -81,6 +81,9 @@ function buildOperation(propName, filter = {}, usedPlaceholders, nested) {
81
81
  case 'includes': {
82
82
  return `ARRAY_CONTAINS(${propName}, ${holder(index)}, true)`;
83
83
  }
84
+ case 'isDefined': {
85
+ return value ? `IS_DEFINED(${propName})` : `NOT IS_DEFINED(${propName})`;
86
+ }
84
87
  default:
85
88
  if (typeof value === 'object') {
86
89
  return buildOperation(operation, value, usedPlaceholders, propName);
@@ -137,10 +140,10 @@ function buildAttributeValue(propName, filter = {}, usedPlaceholders) {
137
140
  });
138
141
  });
139
142
  }
140
- else if (typeof value === 'object' && key !== 'includes') {
143
+ else if (typeof value === 'object' && key !== 'includes' && value !== null) {
141
144
  attributeValues = [...attributeValues, ...buildExpressionAttributeValues({ [key]: value }, usedPlaceholders)];
142
145
  }
143
- else {
146
+ else if (key !== 'isDefined') {
144
147
  attributeValues.push({
145
148
  name: holder(index),
146
149
  value: value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostercloud/framework-provider-azure",
3
- "version": "0.26.13",
3
+ "version": "0.27.0",
4
4
  "description": "Handle Booster's integration with Azure",
5
5
  "keywords": [
6
6
  "framework-provider-azure"
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@azure/cosmos": "3.7.3",
24
24
  "@azure/functions": "^1.2.2",
25
- "@boostercloud/framework-types": "^0.26.13",
25
+ "@boostercloud/framework-types": "^0.27.0",
26
26
  "chai": "4.2.0",
27
27
  "chai-as-promised": "7.1.1",
28
28
  "mocha": "8.4.0",
@@ -41,5 +41,5 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/boostercloud/booster/issues"
43
43
  },
44
- "gitHead": "5120a2634e5e3a90f9d9cd902d18ce61d119dd3d"
44
+ "gitHead": "944c0d9343134c591920f9a04200a6b1166bae47"
45
45
  }