Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (modeValue) {
// how
var modeInstance = modeValue;
propertiesInstance.mode = modeInstance;
}
var parametersValue = propertiesValue['parameters'];
if (parametersValue) {
var parametersInstance = parametersValue;
propertiesInstance.parameters = parametersInstance;
}
}
}
}
var odatanextLinkValue = responseDoc['odata.nextLink'];
if (odatanextLinkValue) {
var odatanextLinkInstance = odatanextLinkValue;
result.skipToken = odatanextLinkInstance;
}
}
result.statusCode = statusCode;
result.requestId = response.headers['x-ms-request-id'];
return callback(null, result);
});
};
page: function (data) {
var skip;
if (data["odata.nextLink"]) {
skip = parseInt(data["odata.nextLink"].split('skip=')[1], 10);
}
else {
skip = p.odata.postData.$skip + p.rowNum;
var total = data["odata.count"] || data["@odata.count"];
if (skip > total) { skip = total; }
}
return Math.ceil(skip / p.rowNum);
},
total: function (data) {
page: function (data) {
var skip;
if (data["odata.nextLink"]) {
skip = parseInt(data["odata.nextLink"].split('skip=')[1], 10);
}
else {
skip = p.odata.postData.$skip + p.rowNum;
var total = data["odata.count"] || data["@odata.count"];
if (skip > total) { skip = total; }
}
return Math.ceil(skip / p.rowNum);
},
total: function (data) {
folder.url = folder.url.split("&pageToken=", 1)[0];
}
folder.url += "&pageToken=" + data.nextPageToken
prepareGFolder(folder);
} else if (data["children@odata.nextLink"] !== undefined) {
folder.url = data["children@odata.nextLink"];
prepareGFolder(folder);
} else if (data["@odata.nextLink"] !== undefined) {
folder.url = data["odata.nextLink"];
prepareGFolder(folder);
}else { //this is the last page, so return googleReturnObj directly
var csvFile = _googleReturnObj.csvFiles["data.csv"];
if (csvFile === undefined) {
alert("Could not find the data.csv file in this folder, please double check!");
} else {
readyToLoad(csvFile);
}
}
expand(response => {
return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
}),
reduce((resourceGroups, response: BatchListResponse) => {
return function (userQ, groupQ) {
if (userQ[1] == "success" && groupQ[1] == "success"
&& userQ[0].error == undefined && groupQ[0].error == undefined) {
var usersAndGroups = userQ[0].value.concat(groupQ[0].value);
if (userQ[0]["odata.nextLink"] != undefined) {
userSkipToken = userQ[0]["odata.nextLink"]
.substring(userQ[0]["odata.nextLink"].indexOf("$skiptoken"),
userQ[0]["odata.nextLink"].length);
}
else {
userSkipToken = null;
}
if (groupQ[0]["odata.nextLink"] != undefined) {
groupSkipToken = groupQ[0]["odata.nextLink"]
.substring(groupQ[0]["odata.nextLink"].indexOf("$skiptoken"),
groupQ[0]["odata.nextLink"].length);
}
else {
groupSkipToken = null;
}
return function (userQ, groupQ) {
if (userQ[1] == "success" && groupQ[1] == "success"
&& userQ[0].error == undefined && groupQ[0].error == undefined) {
var usersAndGroups = userQ[0].value.concat(groupQ[0].value);
if (userQ[0]["odata.nextLink"] != undefined) {
userSkipToken = userQ[0]["odata.nextLink"]
.substring(userQ[0]["odata.nextLink"].indexOf("$skiptoken"),
userQ[0]["odata.nextLink"].length);
}
else {
userSkipToken = null;
}
if (groupQ[0]["odata.nextLink"] != undefined) {
groupSkipToken = groupQ[0]["odata.nextLink"]
.substring(groupQ[0]["odata.nextLink"].indexOf("$skiptoken"),
groupQ[0]["odata.nextLink"].length);
}
else {
groupSkipToken = null;
}
if (lastDisplayed == null || inputValue != lastDisplayed) {
currentResults = [];
expand(response => {
return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
}),
reduce((resourceGroups, response: BatchListResponse) => {
expand(response => {
return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
}),
reduce((resourceGroups, response: BatchListResponse) => {