Socket
Socket
Sign inDemoInstall

@esri/arcgis-rest-routing

Package Overview
Dependencies
16
Maintainers
6
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

4

dist/bundled/routing.esm.js
/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Mon Apr 18 2022 16:42:16 GMT+0000 (Coordinated Universal Time)
* Wed Apr 20 2022 22:27:49 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ import { request, cleanUrl, appendCustomParams } from '@esri/arcgis-rest-request';

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Mon Apr 18 2022 16:42:16 GMT+0000 (Coordinated Universal Time)
* Wed Apr 20 2022 22:27:49 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ import{request as r,cleanUrl as e,appendCustomParams as i}from"@esri/arcgis-rest-request";const t="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",n="https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",s="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World",a="https://route.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/NAServer/OriginDestinationCostMatrix_World";function o(r){return r.map((r=>function(r){return 2===r.length||3===r.length}(r)?r.join():function(r){return void 0!==r.latitude||void 0!==r.lat}(r)?r.lat?r.long+","+r.lat:r.longitude+","+r.latitude:r.x+","+r.y))}function u(r){let e=0,i=0;const t=[];let n,s;const a=r.match(/((\+|-)[^+-]+)/g),o=parseInt(a[0],32);for(let r=1;r<a.length;r+=2)n=parseInt(a[r],32)+e,e=n,s=parseInt(a[r+1],32)+i,i=s,t.push([n/o,s/o]);return{paths:[t]}}function c(r){return Object.prototype.hasOwnProperty.call(r,"features")}

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Mon Apr 18 2022 16:42:16 GMT+0000 (Coordinated Universal Time)
* Wed Apr 20 2022 22:27:49 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ (function (global, factory) {

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Mon Apr 18 2022 16:42:16 GMT+0000 (Coordinated Universal Time)
* Wed Apr 20 2022 22:27:49 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,(function(e,r){"use strict";const t="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",i="https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",n="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World",s="https://route.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/NAServer/OriginDestinationCostMatrix_World";function a(e){return e.map((e=>function(e){return 2===e.length||3===e.length}(e)?e.join():function(e){return void 0!==e.latitude||void 0!==e.lat}(e)?e.lat?e.long+","+e.lat:e.longitude+","+e.latitude:e.x+","+e.y))}function o(e){let r=0,t=0;const i=[];let n,s;const a=e.match(/((\+|-)[^+-]+)/g),o=parseInt(a[0],32);for(let e=1;e<a.length;e+=2)n=parseInt(a[e],32)+r,r=n,s=parseInt(a[e+1],32)+t,t=s,i.push([n/o,s/o]);return{paths:[i]}}function u(e){return Object.prototype.hasOwnProperty.call(e,"features")}

{
"name": "@esri/arcgis-rest-routing",
"version": "4.0.0",
"version": "4.0.1",
"description": "Routing helpers for @esri/arcgis-rest-js",

@@ -51,6 +51,6 @@ "license": "Apache-2.0",

"peerDependencies": {
"@esri/arcgis-rest-request": "4.0.0"
"@esri/arcgis-rest-request": "4.0.1"
},
"devDependencies": {
"@esri/arcgis-rest-request": "4.0.0"
"@esri/arcgis-rest-request": "4.0.1"
},

@@ -57,0 +57,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc