Skip to content

Commit

Permalink
Merge pull request #224 from gunjandatta/gdatta
Browse files Browse the repository at this point in the history
Bug Fix - SPConfig - Not Working Cross Site-Collection
  • Loading branch information
gunjandatta authored Nov 1, 2019
2 parents 7eb2c64 + 7f34abb commit afb2e5d
Show file tree
Hide file tree
Showing 10 changed files with 660 additions and 606 deletions.
2 changes: 1 addition & 1 deletion @types/lib/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface IList {
* @param listFullUrl - The absolute url of the list.
* @param parameters - The optional list data parameters.
*/
getDataAsStream(listFullUrl: string, parameters?: any): Base.IBaseExecution<IListDataStream>;
getDataAsStream(listFullUrl: string, parameters?: SP.RenderListDataParameters): Base.IBaseExecution<IListDataStream>;
}

/**
Expand Down
254 changes: 140 additions & 114 deletions build/helper/spCfg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var sptypes_1 = require("./sptypes");
* SharePoint REST Library
*/
exports.$REST = {
__ver: 5.01,
__ver: 5.02,
AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down
2 changes: 1 addition & 1 deletion dist/gd-sprest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ declare module 'gd-sprest/lib/list' {
* @param listFullUrl - The absolute url of the list.
* @param parameters - The optional list data parameters.
*/
getDataAsStream(listFullUrl: string, parameters?: any): Base.IBaseExecution<IListDataStream>;
getDataAsStream(listFullUrl: string, parameters?: SP.RenderListDataParameters): Base.IBaseExecution<IListDataStream>;
}

/**
Expand Down
722 changes: 361 additions & 361 deletions dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "5.0.1",
"version": "5.0.2",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <[email protected]> (https://gunjandatta.github.io)",
"license": "<LICENSE>",
Expand Down
276 changes: 152 additions & 124 deletions src/helper/spCfg.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lib/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ List.getDataAsStream = ((listFullUrl: string, parameters: SP.RenderListDataParam
// Return the base object
return new Base({
endpoint: "SP.List.getListDataAsStream" + params
});
}) as any;
});
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 5.01,
__ver: 5.02,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down

0 comments on commit afb2e5d

Please sign in to comment.