Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(resolve);
}, function () {
// If it fails, try URL for group base section
groups.getGroup(id, requestOptions)
.then(function (itemSection) {
var newGroup = new group_1.Group(itemSection);
newGroup.init(requestOptions)
.then(resolve);
}, function () {
var error = new arcgis_rest_request_1.ArcGISRequestError("Item or group does not exist or is inaccessible.");
reject(error);
});
});
}
catch (notUsed) {
var error = new arcgis_rest_request_1.ArcGISRequestError("Item or group does not exist or is inaccessible.");
reject(error);
}
});
};
() => {
// A failure to get an id causes an error response from this function regardless of how
// many valid ids were also supplied
let error = new ArcGISRequestError(
"Item or group does not exist or is inaccessible."
);
reject(error);
}
);