gd-sprest
Advanced tools
Comparing version 8.6.5 to 8.6.6
@@ -61,7 +61,4 @@ import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base"; | ||
/** Returns the current site. */ | ||
static getCurrentSite(): IBaseQuery<site> & siteMethods; | ||
static getCurrent(): IBaseQuery<site> & siteMethods; | ||
/** Returns the current web. */ | ||
static getCurrentWeb(): IBaseQuery<site> & siteMethods; | ||
/** Returns a drive for a site. */ | ||
@@ -78,2 +75,5 @@ static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>; | ||
static getIdByUrl(url: string): PromiseLike<IsiteIdResult>; | ||
/** Returns the root site of the current site. */ | ||
static getRoot(): IBaseQuery<site> & siteMethods; | ||
} |
@@ -12,3 +12,3 @@ "use strict"; | ||
exports.$REST = { | ||
__ver: 8.65, | ||
__ver: 8.66, | ||
AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); }, | ||
@@ -15,0 +15,0 @@ Apps: Lib.Apps, |
@@ -21,3 +21,3 @@ "use strict"; | ||
sites.targetInfo.defaultToWebFl = true; | ||
sites.targetInfo.endpoint = "_api/v2.0/sites" + (props.siteId ? "/" + props.siteId : ""); | ||
sites.targetInfo.endpoint = "_api/v2.0/sites"; | ||
sites.targetInfo.requestType = utils_1.RequestType.GraphGet; | ||
@@ -42,10 +42,4 @@ // Default the url | ||
/** Returns the current site. */ | ||
exports.sites.getCurrentSite = function () { | ||
exports.sites.getCurrent = function () { | ||
return exports.sites({ | ||
siteId: contextInfo_1.ContextInfo.siteId | ||
}); | ||
}; | ||
/** Returns the current web. */ | ||
exports.sites.getCurrentWeb = function () { | ||
return exports.sites({ | ||
siteId: contextInfo_1.ContextInfo.siteId, | ||
@@ -181,1 +175,7 @@ webId: contextInfo_1.ContextInfo.webId | ||
}; | ||
/** Returns the root site of the current site. */ | ||
exports.sites.getRoot = function () { | ||
return exports.sites({ | ||
siteId: contextInfo_1.ContextInfo.siteId | ||
}); | ||
}; |
{ | ||
"name": "gd-sprest", | ||
"version": "8.6.5", | ||
"version": "8.6.6", | ||
"description": "An easy way to develop against the SharePoint REST API.", | ||
@@ -5,0 +5,0 @@ "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)", |
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
2699278