gd-sprest 7.4.9 → 7.5.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.
@@ -54,8 +54,15 @@ var getThemeInfo = function (url) {
54
54
  var colors = xmlDoc.getElementsByTagName("s:color");
55
55
  for (var i = 0; i < colors.length; i++) {
56
56
  var color = colors[i];
57
+ var key = color.getAttribute("name");
58
+ var value = color.getAttribute("value");
59
+ // See if the length is > 6 characters
60
+ if (value.length > 6) {
61
+ // Convert the value
62
+ value = value.slice(2, 8) + value[0] + value[1];
63
+ }
57
64
  // Add the color information
58
- themeInfo[color.getAttribute("name")] = "#" + color.getAttribute("value");
65
+ themeInfo[key] = "#" + value;
59
66
  }
60
67
  // Resolve the request
61
68
  resolve(themeInfo);
@@ -5104,15 +5104,23 @@ exports.Mapper = {
5104
5104
  "SP.RemoteWeb": {
5105
5105
  getFileByServerRelativePath: {
5106
5106
  argNames: ["serverRelatvieFilePath"],
5107
+ requestType: utils_1.RequestType.GetWithArgsValueOnly,
5108
+ returnType: "SP.File"
5107
5109
  },
5108
5110
  getFileByServerRelativeUrl: {
5109
5111
  argNames: ["serverRelativeFileUrl"],
5112
+ requestType: utils_1.RequestType.GetWithArgsValueOnly,
5113
+ returnType: "SP.File"
5110
5114
  },
5111
5115
  getFileByUrl: {
5112
5116
  argNames: ["fileUrl"],
5117
+ name: "getFileByUrl(@url)?@url='[[fileUrl]]'",
5118
+ requestType: utils_1.RequestType.GetReplace
5113
5119
  },
5114
5120
  getFolderByServerRelativeUrl: {
5115
5121
  argNames: ["serverRelativeUrl"],
5122
+ requestType: utils_1.RequestType.GetWithArgsValueOnly,
5123
+ returnType: "SP.Folder"
5116
5124
  },
5117
5125
  getGroupById: {
5118
5126
  argNames: ["groupId"],
@@ -6300,8 +6308,7 @@ exports.Mapper = {
6300
6308
  getFileByUrl: {
6301
6309
  argNames: ["fileUrl"],
6302
6310
  name: "getFileByUrl(@url)?@url='[[fileUrl]]'",
6303
- requestType: utils_1.RequestType.GetReplace,
6304
- returnType: "SP.File"
6311
+ requestType: utils_1.RequestType.GetReplace
6305
6312
  },
6306
6313
  getFileByWOPIFrameUrl: {
6307
6314
  argNames: ["wopiFrameUrl"],
package/build/rest.js CHANGED
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 7.49,
11
+ __ver: 7.50,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,