gd-sprest 8.0.3 → 8.0.4
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/build/helper/fieldSchemaXML.js +6 -1
- package/build/helper/spCfg.js +2 -2
- package/build/rest.js +1 -1
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ var spCfg_1 = require("./spCfg");
|
|
|
10
10
|
*/
|
|
11
11
|
exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
|
|
12
12
|
var _resolve = null;
|
|
13
|
+
var _reject = null;
|
|
13
14
|
// Returns the schema xml for a boolean field.
|
|
14
15
|
var createBoolean = function (fieldInfo, props) {
|
|
15
16
|
var schemaXml = null;
|
|
@@ -241,6 +242,9 @@ exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
|
|
|
241
242
|
}
|
|
242
243
|
// Resolve the request
|
|
243
244
|
_resolve("<Field " + toString(props) + " />");
|
|
245
|
+
}, function () {
|
|
246
|
+
// Error getting the lookup list
|
|
247
|
+
_reject("Error getting the lookup list.");
|
|
244
248
|
});
|
|
245
249
|
}
|
|
246
250
|
else {
|
|
@@ -408,8 +412,9 @@ exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
|
|
|
408
412
|
};
|
|
409
413
|
// Return a promise
|
|
410
414
|
return new Promise(function (resolve, reject) {
|
|
411
|
-
// Set the resolve
|
|
415
|
+
// Set the resolve/reject methods
|
|
412
416
|
_resolve = resolve;
|
|
417
|
+
_reject = reject;
|
|
413
418
|
// See if the schema xml has been defined
|
|
414
419
|
if (fieldInfo.schemaXml) {
|
|
415
420
|
// Resolve the promise
|
package/build/helper/spCfg.js
CHANGED
|
@@ -250,7 +250,7 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
250
250
|
}
|
|
251
251
|
// Parse the configuration
|
|
252
252
|
_1.Executor(cfgFields, function (cfg) {
|
|
253
|
-
return new Promise(function (resolve
|
|
253
|
+
return new Promise(function (resolve) {
|
|
254
254
|
// See if this field already exists
|
|
255
255
|
var field = isInCollection("InternalName", cfg.name, fields.results);
|
|
256
256
|
if (field) {
|
|
@@ -302,7 +302,7 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
});
|
|
305
|
+
}, reject);
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
}).then(resolve);
|
package/build/rest.js
CHANGED