@esri/arcgis-rest-request
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -9,10 +9,14 @@ /** | ||
export function getPortalUrl(requestOptions) { | ||
if (requestOptions === void 0) { requestOptions = {}; } | ||
// use portal in options if specified | ||
if (requestOptions.portal) { | ||
return requestOptions.portal; | ||
} | ||
// if the auth was passed, use that portal | ||
if (requestOptions.authentication) { | ||
return requestOptions.authentication.portal; | ||
} | ||
// default to arcgis.com | ||
var portalUrl = "https://www.arcgis.com/sharing/rest"; | ||
// but if the auth was passed, use that portal... | ||
if (requestOptions && requestOptions.authentication) { | ||
portalUrl = requestOptions.authentication.portal; | ||
} | ||
return portalUrl; | ||
return "https://www.arcgis.com/sharing/rest"; | ||
} | ||
//# sourceMappingURL=get-portal-url.js.map |
@@ -11,11 +11,15 @@ "use strict"; | ||
function getPortalUrl(requestOptions) { | ||
if (requestOptions === void 0) { requestOptions = {}; } | ||
// use portal in options if specified | ||
if (requestOptions.portal) { | ||
return requestOptions.portal; | ||
} | ||
// if the auth was passed, use that portal | ||
if (requestOptions.authentication) { | ||
return requestOptions.authentication.portal; | ||
} | ||
// default to arcgis.com | ||
var portalUrl = "https://www.arcgis.com/sharing/rest"; | ||
// but if the auth was passed, use that portal... | ||
if (requestOptions && requestOptions.authentication) { | ||
portalUrl = requestOptions.authentication.portal; | ||
} | ||
return portalUrl; | ||
return "https://www.arcgis.com/sharing/rest"; | ||
} | ||
exports.getPortalUrl = getPortalUrl; | ||
//# sourceMappingURL=get-portal-url.js.map |
@@ -1,2 +0,2 @@ | ||
/* @esri/arcgis-rest-request - v1.1.1 - Mon Mar 05 2018 10:57:50 GMT-0800 (PST) | ||
/* @esri/arcgis-rest-request - v1.1.2 - Wed May 02 2018 13:58:48 GMT-0700 (PDT) | ||
* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
@@ -472,9 +472,13 @@ * Apache-2.0 */ | ||
function getPortalUrl(requestOptions) { | ||
if (requestOptions === void 0) { requestOptions = {}; } | ||
// use portal in options if specified | ||
if (requestOptions.portal) { | ||
return requestOptions.portal; | ||
} | ||
// if the auth was passed, use that portal | ||
if (requestOptions.authentication) { | ||
return requestOptions.authentication.portal; | ||
} | ||
// default to arcgis.com | ||
var portalUrl = "https://www.arcgis.com/sharing/rest"; | ||
// but if the auth was passed, use that portal... | ||
if (requestOptions && requestOptions.authentication) { | ||
portalUrl = requestOptions.authentication.portal; | ||
} | ||
return portalUrl; | ||
return "https://www.arcgis.com/sharing/rest"; | ||
} | ||
@@ -481,0 +485,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* @esri/arcgis-rest-request - v1.1.1 - Mon Mar 05 2018 10:57:52 GMT-0800 (PST) | ||
/* @esri/arcgis-rest-request - v1.1.2 - Wed May 02 2018 13:58:50 GMT-0700 (PDT) | ||
* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
@@ -22,3 +22,3 @@ * Apache-2.0 */ | ||
/* Copyright (c) 2017 Environmental Systems Research Institute, Inc. | ||
* Apache-2.0 */function l(e){var t="https://www.arcgis.com/sharing/rest";return e&&e.authentication&&(t=e.authentication.portal),t} | ||
* Apache-2.0 */function l(e){return void 0===e&&(e={}),e.portal?e.portal:e.authentication?e.authentication.portal:"https://www.arcgis.com/sharing/rest"} | ||
/* Copyright (c) 2017 Environmental Systems Research Institute, Inc. | ||
@@ -25,0 +25,0 @@ * Apache-2.0 */function m(e,t){var o=e||"self";return p(l(t)+"/portals/"+o,r({httpMethod:"GET"},t))}( |
{ | ||
"name": "@esri/arcgis-rest-request", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Common methods and utilities for @esri/arcgis-rest-* packages.", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
@@ -31,2 +31,4 @@ [![npm version][npm-img]][npm-url] | ||
### [API Reference](https://esri.github.io/arcgis-rest-js/api/request/) | ||
### Issues | ||
@@ -64,2 +66,2 @@ | ||
A copy of the license is available in the repository's [LICENSE](./LICENSE) file. | ||
A copy of the license is available in the repository's [LICENSE](../../LICENSE) file. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
65
15
157621
61
1800