@salesforce/lds-adapters-cdp-engmt-config 1.360.1 → 1.362.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.
@@ -796,7 +796,7 @@ function validate(obj, path = 'EngagementSignalRepresentation') {
796
796
  for (let i = 0; i < obj_compoundMetrics.length; i++) {
797
797
  const obj_compoundMetrics_item = obj_compoundMetrics[i];
798
798
  const path_compoundMetrics_item = path_compoundMetrics + '[' + i + ']';
799
- if (typeof obj_compoundMetrics_item !== 'object') {
799
+ if (typeof obj_compoundMetrics_item !== 'object' || Array.isArray(obj_compoundMetrics_item)) {
800
800
  return new TypeError('Expected "object" but received "' + typeof obj_compoundMetrics_item + '" (at "' + path_compoundMetrics_item + '")');
801
801
  }
802
802
  }
@@ -856,7 +856,7 @@ function validate(obj, path = 'EngagementSignalRepresentation') {
856
856
  for (let i = 0; i < obj_metrics.length; i++) {
857
857
  const obj_metrics_item = obj_metrics[i];
858
858
  const path_metrics_item = path_metrics + '[' + i + ']';
859
- if (typeof obj_metrics_item !== 'object') {
859
+ if (typeof obj_metrics_item !== 'object' || Array.isArray(obj_metrics_item)) {
860
860
  return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
861
861
  }
862
862
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-engmt-config",
3
- "version": "1.360.1",
3
+ "version": "1.362.0",
4
4
  "description": "Engagement Signal Connect API Wire Adapter",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-engmt-config.js",
@@ -43,10 +43,10 @@
43
43
  "test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "^1.360.1"
46
+ "@salesforce/lds-bindings": "^1.362.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.360.1"
49
+ "@salesforce/lds-compiler-plugins": "^1.362.0"
50
50
  },
51
51
  "nx": {
52
52
  "targets": {
package/sfdc/index.js CHANGED
@@ -516,7 +516,7 @@ function validate$1(obj, path = 'EngagementSignalRepresentation') {
516
516
  for (let i = 0; i < obj_compoundMetrics.length; i++) {
517
517
  const obj_compoundMetrics_item = obj_compoundMetrics[i];
518
518
  const path_compoundMetrics_item = path_compoundMetrics + '[' + i + ']';
519
- if (typeof obj_compoundMetrics_item !== 'object') {
519
+ if (typeof obj_compoundMetrics_item !== 'object' || Array.isArray(obj_compoundMetrics_item)) {
520
520
  return new TypeError('Expected "object" but received "' + typeof obj_compoundMetrics_item + '" (at "' + path_compoundMetrics_item + '")');
521
521
  }
522
522
  }
@@ -576,7 +576,7 @@ function validate$1(obj, path = 'EngagementSignalRepresentation') {
576
576
  for (let i = 0; i < obj_metrics.length; i++) {
577
577
  const obj_metrics_item = obj_metrics[i];
578
578
  const path_metrics_item = path_metrics + '[' + i + ']';
579
- if (typeof obj_metrics_item !== 'object') {
579
+ if (typeof obj_metrics_item !== 'object' || Array.isArray(obj_metrics_item)) {
580
580
  return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
581
581
  }
582
582
  }
@@ -2419,4 +2419,4 @@ withDefaultLuvio((luvio) => {
2419
2419
  });
2420
2420
 
2421
2421
  export { createEngagementSignal, createEngagementSignalCompoundMetric, createEngagementSignalMetric, deleteCompoundMetric, deleteEngagementSignal, deleteEngagementSignalMetric, getCompoundMetric, getCompoundMetricNotifyChange, getCompoundMetric_imperative, getEngagementSignal, getEngagementSignalMetric, getEngagementSignalMetricNotifyChange, getEngagementSignalMetric_imperative, getEngagementSignalNotifyChange, getEngagementSignal_imperative, getEngagementSignals, getEngagementSignals_imperative };
2422
- // version: 1.360.1-0f1676c606
2422
+ // version: 1.362.0-d2e818ae61