UNPKG

583 BJavaScriptView Raw
1import { _Web } from "../webs/types.js";
2import { File, fileFromServerRelativePath } from "./types.js";
3import { escapeQueryStrValue } from "../utils/escape-query-str.js";
4_Web.prototype.getFileByServerRelativePath = function (fileRelativeUrl) {
5 return fileFromServerRelativePath(this, fileRelativeUrl);
6};
7_Web.prototype.getFileById = function (uniqueId) {
8 return File(this, `getFileById('${uniqueId}')`);
9};
10_Web.prototype.getFileByUrl = function (fileUrl) {
11 return File(this, `getFileByUrl('!@p1::${escapeQueryStrValue(fileUrl)}')`);
12};
13//# sourceMappingURL=web.js.map
\No newline at end of file