@esri/arcgis-rest-request
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -34,11 +34,11 @@ export interface IAuthenticationManager { | ||
/** | ||
* Base url for the portal you want to make the request to. Defaults to 'https://www.arcgis.com/sharing/rest' | ||
* Base url for the portal you want to make the request to. Defaults to 'https://www.arcgis.com/sharing/rest'. | ||
*/ | ||
portal?: string; | ||
/** | ||
* The implementation of `fetch` to use. Defaults to a global `fetch` | ||
* The implementation of `fetch` to use. Defaults to a global `fetch`. | ||
*/ | ||
fetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>; | ||
/** | ||
* If the length of a GET request's URL exceeds `maxUrlLength` the request will use POST instead | ||
* If the length of a GET request's URL exceeds `maxUrlLength` the request will use POST instead. | ||
*/ | ||
@@ -45,0 +45,0 @@ maxUrlLength?: number; |
@@ -71,3 +71,5 @@ /* Copyright (c) 2017 Environmental Systems Research Institute, Inc. | ||
var fetchOptions = { | ||
method: httpMethod | ||
method: httpMethod, | ||
// ensures behavior mimics XMLHttpRequest. needed to support sending IWA cookies | ||
credentials: "same-origin" | ||
}; | ||
@@ -74,0 +76,0 @@ return (authentication ? authentication.getToken(url) : Promise.resolve("")) |
@@ -73,3 +73,5 @@ "use strict"; | ||
var fetchOptions = { | ||
method: httpMethod | ||
method: httpMethod, | ||
// ensures behavior mimics XMLHttpRequest. needed to support sending IWA cookies | ||
credentials: "same-origin" | ||
}; | ||
@@ -76,0 +78,0 @@ return (authentication ? authentication.getToken(url) : Promise.resolve("")) |
@@ -1,2 +0,2 @@ | ||
/* @esri/arcgis-rest-request - v1.1.2 - Wed May 02 2018 13:58:48 GMT-0700 (PDT) | ||
/* @esri/arcgis-rest-request - v1.1.2 - Mon May 14 2018 16:55:10 GMT-0700 (PDT) | ||
* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
@@ -3,0 +3,0 @@ * Apache-2.0 */ |
@@ -1,2 +0,2 @@ | ||
/* @esri/arcgis-rest-request - v1.1.2 - Wed May 02 2018 13:58:50 GMT-0700 (PDT) | ||
/* @esri/arcgis-rest-request - v1.1.2 - Mon May 14 2018 16:55:11 GMT-0700 (PDT) | ||
* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
@@ -3,0 +3,0 @@ * Apache-2.0 */ |
{ | ||
"name": "@esri/arcgis-rest-request", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Common methods and utilities for @esri/arcgis-rest-* packages.", | ||
"main": "dist/node/index.js", | ||
"browser": "dist/umd/arcgis-rest-request.umd.js", | ||
"browser": "dist/umd/request.umd.js", | ||
"module": "dist/esm/index.js", | ||
@@ -8,0 +8,0 @@ "js:next": "dist/esm/index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
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
253835
67
2342
1
21