@esri/arcgis-rest-common
Advanced tools
Comparing version 1.17.1 to 1.18.0
@@ -31,2 +31,3 @@ /** | ||
y: number; | ||
z?: number; | ||
} | ||
@@ -41,2 +42,3 @@ /** | ||
long?: number; | ||
z?: number; | ||
} |
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
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
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
14297
160