Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esri/arcgis-rest-request

Package Overview
Dependencies
Maintainers
16
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esri/arcgis-rest-request - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

16

dist/esm/utils/get-portal-url.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc