gd-sprest
Advanced tools
Comparing version 0.6.8 to 0.6.9
{ | ||
"name": "gd-sprest", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "An easy way to develop against the SharePoint REST API.", | ||
"author": "Gunjan Datta <me@dattabase.com> (https://github.com/gunjandatta/sprest)", | ||
"license": "https://github.com/gunjandatta/sprest/blob/master/LICENSE", | ||
"types": "tsd/sprest.d.ts", | ||
"types": "dist/sprest.d.ts", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "sharepoint", "rest", "api" |
@@ -146,3 +146,3 @@ # SharePoint 2013/Online REST Library | ||
* Expand - A collection of strings representing the field names to expand. | ||
* Filter - A collection of strings representing the filters to apply. | ||
* Filter - A strings representing the filter to apply. | ||
* OrderBy - A collection of strings representing the fields to order by. | ||
@@ -149,0 +149,0 @@ * QueryString - A read-only property representing the query string value of the oData object. |
@@ -10,3 +10,3 @@ declare module $REST.Settings { | ||
/** The filters. */ | ||
Filter?: Array<string>; | ||
Filter?: string; | ||
@@ -13,0 +13,0 @@ /** The order by fields. */ |
@@ -10,8 +10,8 @@ module $REST.Utils { | ||
/*********************************************************************************************************************************/ | ||
private _expand?:Array<string>; | ||
private _filter?:Array<string>; | ||
private _orderBy?:Array<string>; | ||
private _select?:Array<string>; | ||
private _skip?:number; | ||
private _top?:number; | ||
private _expand?: Array<string>; | ||
private _filter?: string; | ||
private _orderBy?: Array<string>; | ||
private _select?: Array<string>; | ||
private _skip?: number; | ||
private _top?: number; | ||
@@ -26,3 +26,3 @@ /*********************************************************************************************************************************/ | ||
this._expand = oData && oData.Expand ? oData.Expand : []; | ||
this._filter = oData && oData.Filter ? oData.Filter : []; | ||
this._filter = oData && oData.Filter ? oData.Filter : null; | ||
this._orderBy = oData && oData.OrderBy ? oData.OrderBy : []; | ||
@@ -43,4 +43,4 @@ this._select = oData && oData.Select ? oData.Select : []; | ||
// Filter | ||
get Filter():Array<string> { return this._filter; } | ||
set Filter(value: Array<string>) { this._filter = value; } | ||
get Filter():string { return this._filter; } | ||
set Filter(value: string) { this._filter = value; } | ||
@@ -61,3 +61,3 @@ // Order By | ||
this._skip ? values.push("$skip=" + this._skip) : null; | ||
values.push(this.getQSValue("$filter", this._filter)); | ||
this._filter ? values.push("$filter=", this._filter) : null; | ||
values.push(this.getQSValue("$expand", this._expand)); | ||
@@ -64,0 +64,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1248981
19779