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

@esri/arcgis-rest-demographics

Package Overview
Dependencies
Maintainers
41
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.0.0 to 3.0.1

4

dist/umd/demographics.umd.js
/* @preserve
* @esri/arcgis-rest-demographics - v3.0.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v3.0.1 - Apache-2.0
* Copyright (c) 2017-2021 Esri, Inc.
* Mon Jan 25 2021 15:22:08 GMT-0700 (Mountain Standard Time)
* Tue Feb 16 2021 10:12:20 GMT-0700 (Mountain Standard Time)
*/

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

/* @preserve
* @esri/arcgis-rest-demographics - v3.0.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v3.0.1 - Apache-2.0
* Copyright (c) 2017-2021 Esri, Inc.
* Mon Jan 25 2021 15:22:13 GMT-0700 (Mountain Standard Time)
* Tue Feb 16 2021 10:12:23 GMT-0700 (Mountain Standard 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.0.0",
"version": "3.0.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.0.0",
"@esri/arcgis-rest-types": "^3.0.1",
"tslib": "^1.13.0"
},
"devDependencies": {
"@esri/arcgis-rest-auth": "^3.0.0",
"@esri/arcgis-rest-request": "^3.0.0"
"@esri/arcgis-rest-auth": "^3.0.1",
"@esri/arcgis-rest-request": "^3.0.1"
},

@@ -24,0 +24,0 @@ "peerDependencies": {

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