@salesforce/lds-adapters-platform-learning-content 1.360.1 → 1.361.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.
|
@@ -1314,7 +1314,7 @@ function validate$e(obj, path = 'FeaturedItemRecommendedListRepresentation') {
|
|
|
1314
1314
|
for (let i = 0; i < obj_recommendedList.length; i++) {
|
|
1315
1315
|
const obj_recommendedList_item = obj_recommendedList[i];
|
|
1316
1316
|
const path_recommendedList_item = path_recommendedList + '[' + i + ']';
|
|
1317
|
-
if (typeof obj_recommendedList_item !== 'object') {
|
|
1317
|
+
if (typeof obj_recommendedList_item !== 'object' || Array.isArray(obj_recommendedList_item)) {
|
|
1318
1318
|
return new TypeError('Expected "object" but received "' + typeof obj_recommendedList_item + '" (at "' + path_recommendedList_item + '")');
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
@@ -1542,7 +1542,7 @@ function validate$d(obj, path = 'FeaturedItemRelatedListRepresentation') {
|
|
|
1542
1542
|
for (let i = 0; i < obj_relatedList.length; i++) {
|
|
1543
1543
|
const obj_relatedList_item = obj_relatedList[i];
|
|
1544
1544
|
const path_relatedList_item = path_relatedList + '[' + i + ']';
|
|
1545
|
-
if (typeof obj_relatedList_item !== 'object') {
|
|
1545
|
+
if (typeof obj_relatedList_item !== 'object' || Array.isArray(obj_relatedList_item)) {
|
|
1546
1546
|
return new TypeError('Expected "object" but received "' + typeof obj_relatedList_item + '" (at "' + path_relatedList_item + '")');
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
@@ -2455,7 +2455,7 @@ function validate$a(obj, path = 'LearningItemListRepresentation') {
|
|
|
2455
2455
|
for (let i = 0; i < obj_list.length; i++) {
|
|
2456
2456
|
const obj_list_item = obj_list[i];
|
|
2457
2457
|
const path_list_item = path_list + '[' + i + ']';
|
|
2458
|
-
if (typeof obj_list_item !== 'object') {
|
|
2458
|
+
if (typeof obj_list_item !== 'object' || Array.isArray(obj_list_item)) {
|
|
2459
2459
|
return new TypeError('Expected "object" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
@@ -2865,7 +2865,7 @@ function validate$8(obj, path = 'LearningItemProgressListRepresentation') {
|
|
|
2865
2865
|
for (let i = 0; i < obj_list.length; i++) {
|
|
2866
2866
|
const obj_list_item = obj_list[i];
|
|
2867
2867
|
const path_list_item = path_list + '[' + i + ']';
|
|
2868
|
-
if (typeof obj_list_item !== 'object') {
|
|
2868
|
+
if (typeof obj_list_item !== 'object' || Array.isArray(obj_list_item)) {
|
|
2869
2869
|
return new TypeError('Expected "object" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-learning-content",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.361.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Learning content platform",
|
|
6
6
|
"main": "dist/es/es2018/platform-learning-content.js",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:unit": "jest --config=./jest.config.js"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@salesforce/lds-bindings": "^1.
|
|
42
|
+
"@salesforce/lds-bindings": "^1.361.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
-
"@salesforce/lds-karma": "^1.
|
|
45
|
+
"@salesforce/lds-compiler-plugins": "^1.361.0",
|
|
46
|
+
"@salesforce/lds-karma": "^1.361.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1267,7 +1267,7 @@ function validate$e(obj, path = 'FeaturedItemRecommendedListRepresentation') {
|
|
|
1267
1267
|
for (let i = 0; i < obj_recommendedList.length; i++) {
|
|
1268
1268
|
const obj_recommendedList_item = obj_recommendedList[i];
|
|
1269
1269
|
const path_recommendedList_item = path_recommendedList + '[' + i + ']';
|
|
1270
|
-
if (typeof obj_recommendedList_item !== 'object') {
|
|
1270
|
+
if (typeof obj_recommendedList_item !== 'object' || Array.isArray(obj_recommendedList_item)) {
|
|
1271
1271
|
return new TypeError('Expected "object" but received "' + typeof obj_recommendedList_item + '" (at "' + path_recommendedList_item + '")');
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
@@ -1495,7 +1495,7 @@ function validate$d(obj, path = 'FeaturedItemRelatedListRepresentation') {
|
|
|
1495
1495
|
for (let i = 0; i < obj_relatedList.length; i++) {
|
|
1496
1496
|
const obj_relatedList_item = obj_relatedList[i];
|
|
1497
1497
|
const path_relatedList_item = path_relatedList + '[' + i + ']';
|
|
1498
|
-
if (typeof obj_relatedList_item !== 'object') {
|
|
1498
|
+
if (typeof obj_relatedList_item !== 'object' || Array.isArray(obj_relatedList_item)) {
|
|
1499
1499
|
return new TypeError('Expected "object" but received "' + typeof obj_relatedList_item + '" (at "' + path_relatedList_item + '")');
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
@@ -1942,7 +1942,7 @@ function validate$b(obj, path = 'LearningItemProgressListRepresentation') {
|
|
|
1942
1942
|
for (let i = 0; i < obj_list.length; i++) {
|
|
1943
1943
|
const obj_list_item = obj_list[i];
|
|
1944
1944
|
const path_list_item = path_list + '[' + i + ']';
|
|
1945
|
-
if (typeof obj_list_item !== 'object') {
|
|
1945
|
+
if (typeof obj_list_item !== 'object' || Array.isArray(obj_list_item)) {
|
|
1946
1946
|
return new TypeError('Expected "object" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
@@ -2635,7 +2635,7 @@ function validate$9(obj, path = 'LearningItemListRepresentation') {
|
|
|
2635
2635
|
for (let i = 0; i < obj_list.length; i++) {
|
|
2636
2636
|
const obj_list_item = obj_list[i];
|
|
2637
2637
|
const path_list_item = path_list + '[' + i + ']';
|
|
2638
|
-
if (typeof obj_list_item !== 'object') {
|
|
2638
|
+
if (typeof obj_list_item !== 'object' || Array.isArray(obj_list_item)) {
|
|
2639
2639
|
return new TypeError('Expected "object" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
@@ -5815,4 +5815,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5815
5815
|
});
|
|
5816
5816
|
|
|
5817
5817
|
export { evaluateLearningItem, getCoachingAIFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative, notifyLearningItemProgressUpdateAvailable, notifyLearningItemUpdateAvailable, notifyLearningTextLessonUpdateAvailable, submitForCoachingAIFeedback, submitForCoachingMomentsProductPitchFeedback };
|
|
5818
|
-
// version: 1.
|
|
5818
|
+
// version: 1.361.0-eb406138cb
|