@salesforce/lds-adapters-commerce-extensions 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.
@@ -240,7 +240,7 @@ function validate$6(obj, path = 'ExtensionOutputCollectionRepresentation') {
240
240
  for (let i = 0; i < obj_items.length; i++) {
241
241
  const obj_items_item = obj_items[i];
242
242
  const path_items_item = path_items + '[' + i + ']';
243
- if (typeof obj_items_item !== 'object') {
243
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
244
244
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
245
245
  }
246
246
  }
@@ -612,7 +612,7 @@ function validate$4(obj, path = 'MappingOutputCollectionRepresentation') {
612
612
  for (let i = 0; i < obj_items.length; i++) {
613
613
  const obj_items_item = obj_items[i];
614
614
  const path_items_item = path_items + '[' + i + ']';
615
- if (typeof obj_items_item !== 'object') {
615
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
616
616
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
617
617
  }
618
618
  }
@@ -1606,7 +1606,7 @@ function validate(obj, path = 'ProviderOutputCollectionRepresentation') {
1606
1606
  for (let i = 0; i < obj_items.length; i++) {
1607
1607
  const obj_items_item = obj_items[i];
1608
1608
  const path_items_item = path_items + '[' + i + ']';
1609
- if (typeof obj_items_item !== 'object') {
1609
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
1610
1610
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
1611
1611
  }
1612
1612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-commerce-extensions",
3
- "version": "1.360.1",
3
+ "version": "1.362.0",
4
4
  "description": "APIs to manage providers for commerce extensions and which will be used for each store.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/umd/es2018/commerce-extensions.js",
@@ -43,11 +43,11 @@
43
43
  "test": "nx build:karma && karma start --single-run"
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",
50
- "@salesforce/lds-karma": "^1.360.1"
49
+ "@salesforce/lds-compiler-plugins": "^1.362.0",
50
+ "@salesforce/lds-karma": "^1.362.0"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -554,7 +554,7 @@ function validate$5(obj, path = 'ExtensionOutputCollectionRepresentation') {
554
554
  for (let i = 0; i < obj_items.length; i++) {
555
555
  const obj_items_item = obj_items[i];
556
556
  const path_items_item = path_items + '[' + i + ']';
557
- if (typeof obj_items_item !== 'object') {
557
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
558
558
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
559
559
  }
560
560
  }
@@ -980,7 +980,7 @@ function validate$4(obj, path = 'MappingOutputCollectionRepresentation') {
980
980
  for (let i = 0; i < obj_items.length; i++) {
981
981
  const obj_items_item = obj_items[i];
982
982
  const path_items_item = path_items + '[' + i + ']';
983
- if (typeof obj_items_item !== 'object') {
983
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
984
984
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
985
985
  }
986
986
  }
@@ -1744,7 +1744,7 @@ function validate(obj, path = 'ProviderOutputCollectionRepresentation') {
1744
1744
  for (let i = 0; i < obj_items.length; i++) {
1745
1745
  const obj_items_item = obj_items[i];
1746
1746
  const path_items_item = path_items + '[' + i + ']';
1747
- if (typeof obj_items_item !== 'object') {
1747
+ if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
1748
1748
  return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
1749
1749
  }
1750
1750
  }
@@ -2144,4 +2144,4 @@ withDefaultLuvio((luvio) => {
2144
2144
  });
2145
2145
 
2146
2146
  export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProvider, getProviderNotifyChange, getProvider_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
2147
- // version: 1.360.1-0f1676c606
2147
+ // version: 1.362.0-d2e818ae61