@esri/arcgis-rest-demographics
Advanced tools
Comparing version 3.3.0 to 3.3.1
/* @preserve | ||
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0 | ||
* @esri/arcgis-rest-demographics - v3.3.1 - Apache-2.0 | ||
* Copyright (c) 2017-2021 Esri, Inc. | ||
* Thu Aug 26 2021 11:55:04 GMT-0600 (Mountain Daylight Time) | ||
* Fri Sep 10 2021 15:52:21 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
@@ -6,0 +6,0 @@ (function (global, factory) { |
/* @preserve | ||
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0 | ||
* @esri/arcgis-rest-demographics - v3.3.1 - Apache-2.0 | ||
* Copyright (c) 2017-2021 Esri, Inc. | ||
* Thu Aug 26 2021 11:55:06 GMT-0600 (Mountain Daylight Time) | ||
* Fri Sep 10 2021 15:52:23 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
!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,t){"use strict";var n=function(){return(n=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var n in r=arguments[a])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r="https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver",s=r+"/Geoenrichment";e.getAvailableCountries=function(e){var r={},a=s+"/countries";return e?(e.endpoint&&(a=e.endpoint+"/countries"),r=t.appendCustomParams(e,[],{params:n({},e.params)}),e.countryCode&&(a=a+"/"+e.countryCode)):r.params={},t.request(t.cleanUrl(a),r).then(function(e){return e})},e.getAvailableDataCollections=function(e){var r={},a=s+"/dataCollections";return e?(e.endpoint&&(a=e.endpoint+"/dataCollections"),(r=t.appendCustomParams(e,["addDerivativeVariables","suppressNullValues"],{params:n({},e.params)})).params.addDerivativeVariables&&(r.params.addDerivativeVariables=JSON.stringify(r.params.addDerivativeVariables)),e.countryCode&&(a=a+"/"+e.countryCode,e.dataCollection&&(a=a+"/"+e.dataCollection))):r.params={},t.request(""+t.cleanUrl(a),r).then(function(e){return e})},e.getAvailableGeographyLevels=function(e){var r={},a=s+"/StandardGeographyLevels";return e?(e.endpoint&&(a=e.endpoint+"/StandardGeographyLevels"),r=t.appendCustomParams(e,[],{params:n({},e.params)})):r.params={},t.request(""+t.cleanUrl(a),r).then(function(e){return e})},e.getGeography=function(e){var r=(e.endpoint||"https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery")+"/execute",a=t.appendCustomParams(e,["sourceCountry","optionalCountryDataset","geographyLayers","geographyIDs","geographyQuery","returnSubGeographyLayer","subGeographyLayer","subGeographyQuery","outSR","returnGeometry","returnCentroids","generalizationLevel","useFuzzySearch","featureLimit","featureOffset","langCode"],{params:n({},e.params)});return e.authentication?(["geographyLayers","geographyIDs"].forEach(function(e){a.params[e]&&(a.params[e]=JSON.stringify(a.params[e]))}),t.request(""+t.cleanUrl(r),a).then(function(e){return e})):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")},e.queryDemographicData=function(e){var r=t.appendCustomParams(e,["studyAreas","dataCollections","analysisVariables","addDerivativeVariables","returnGeometry","inSR","outSR"],{params:n({},e.params)});return e.authentication?(["dataCollections","analysisVariables"].forEach(function(e){r.params[e]&&(r.params[e]=JSON.stringify(r.params[e]))}),t.request(""+t.cleanUrl((e.endpoint||s)+"/enrich"),r).then(function(e){return e})):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=demographics.umd.min.js.map |
{ | ||
"name": "@esri/arcgis-rest-demographics", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Demographics data helpers for @esri/arcgis-rest-js", | ||
@@ -16,8 +16,8 @@ "main": "dist/node/index.js", | ||
"dependencies": { | ||
"@esri/arcgis-rest-types": "^3.3.0", | ||
"@esri/arcgis-rest-types": "^3.3.1", | ||
"tslib": "^1.13.0" | ||
}, | ||
"devDependencies": { | ||
"@esri/arcgis-rest-auth": "^3.3.0", | ||
"@esri/arcgis-rest-request": "^3.3.0" | ||
"@esri/arcgis-rest-auth": "^3.3.1", | ||
"@esri/arcgis-rest-request": "^3.3.1" | ||
}, | ||
@@ -24,0 +24,0 @@ "peerDependencies": { |
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
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
0
114829