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

@esri/arcgis-rest-common

Package Overview
Dependencies
Maintainers
17
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.17.1 to 1.18.0

2

dist/esm/types/geometry.d.ts

@@ -31,2 +31,3 @@ /**

y: number;
z?: number;
}

@@ -41,2 +42,3 @@ /**

long?: number;
z?: number;
}

4

dist/esm/util/location.d.ts
import { IPoint, ILocation } from "../types/geometry";
export declare function isLocationArray(coords: ILocation | IPoint | [number, number]): coords is [number, number];
export declare function isLocation(coords: ILocation | IPoint | [number, number]): coords is ILocation;
export declare function isLocationArray(coords: ILocation | IPoint | [number, number] | [number, number, number]): coords is [number, number] | [number, number, number];
export declare function isLocation(coords: ILocation | IPoint | [number, number] | [number, number, number]): coords is ILocation;
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
export function isLocationArray(coords) {
return coords.length === 2;
return (coords.length === 2 ||
coords.length === 3);
}

@@ -6,0 +7,0 @@ export function isLocation(coords) {

@@ -6,3 +6,4 @@ "use strict";

function isLocationArray(coords) {
return coords.length === 2;
return (coords.length === 2 ||
coords.length === 3);
}

@@ -9,0 +10,0 @@ exports.isLocationArray = isLocationArray;

/* @preserve
* @esri/arcgis-rest-common - v1.17.1 - Apache-2.0
* @esri/arcgis-rest-common - v1.18.0 - Apache-2.0
* Copyright (c) 2017-2019 Esri, Inc.
* Mon Mar 04 2019 21:08:24 GMT-0800 (Pacific Standard Time)
* Thu Mar 21 2019 09:36:07 GMT-0700 (Pacific Daylight Time)
*/

@@ -15,3 +15,4 @@ (function (global, factory) {

function isLocationArray(coords) {
return coords.length === 2;
return (coords.length === 2 ||
coords.length === 3);
}

@@ -18,0 +19,0 @@ function isLocation(coords) {

/* @preserve
* @esri/arcgis-rest-common - v1.17.1 - Apache-2.0
* @esri/arcgis-rest-common - v1.18.0 - Apache-2.0
* Copyright (c) 2017-2019 Esri, Inc.
* Mon Mar 04 2019 21:08:25 GMT-0800 (Pacific Standard Time)
* Thu Mar 21 2019 09:36:10 GMT-0700 (Pacific Daylight Time)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.arcgisRest=e.arcgisRest||{})}(this,function(e){"use strict";e.isLocationArray=function(e){return 2===e.length},e.isLocation=function(e){return void 0!==e.latitude||void 0!==e.lat},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.arcgisRest=e.arcgisRest||{})}(this,function(e){"use strict";e.isLocationArray=function(e){return 2===e.length||3===e.length},e.isLocation=function(e){return void 0!==e.latitude||void 0!==e.lat},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=common.umd.min.js.map
{
"name": "@esri/arcgis-rest-common",
"version": "1.17.1",
"version": "1.18.0",
"description": "Shared utility methods and types for @esri/arcgis-rest",

@@ -5,0 +5,0 @@ "main": "dist/node/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

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