@esri/arcgis-rest-demographics 4.10.1 → 4.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v4.10.1 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v4.10.3 - Apache-2.0
3
3
  * Copyright (c) 2017-2026 Esri, Inc.
4
- * Mon Mar 09 2026 17:08:56 GMT+0000 (Coordinated Universal Time)
4
+ * Wed Jun 17 2026 23:14:47 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
6
  import { appendCustomParams, request, cleanUrl } from '@esri/arcgis-rest-request';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v4.10.1 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v4.10.3 - Apache-2.0
3
3
  * Copyright (c) 2017-2026 Esri, Inc.
4
- * Mon Mar 09 2026 17:08:56 GMT+0000 (Coordinated Universal Time)
4
+ * Wed Jun 17 2026 23:14:47 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
6
  import{appendCustomParams as e,request as a,cleanUrl as r}from"@esri/arcgis-rest-request";const t="https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver",n=`${t}/Geoenrichment`,s=`${t}/StandardGeographyQuery`;function i(t){let s={},i=`${n}/countries`;return t?(t.endpoint&&(i=`${t.endpoint}/countries`),s=e(t,[],{params:Object.assign({},t.params)}),t.countryCode&&(i=`${i}/${t.countryCode}`)):s.params={},a(r(i),s).then(e=>e)}function o(t){let s={},i=`${n}/dataCollections`;return t?(t.endpoint&&(i=`${t.endpoint}/dataCollections`),s=e(t,["addDerivativeVariables","suppressNullValues"],{params:Object.assign({},t.params)}),s.params.addDerivativeVariables&&(s.params.addDerivativeVariables=JSON.stringify(s.params.addDerivativeVariables)),t.countryCode&&(i=`${i}/${t.countryCode}`,t.dataCollection&&(i=`${i}/${t.dataCollection}`))):s.params={},a(`${r(i)}`,s).then(e=>e)}function c(t){let s={},i=`${n}/StandardGeographyLevels`;return t?(t.endpoint&&(i=`${t.endpoint}/StandardGeographyLevels`),s=e(t,[],{params:Object.assign({},t.params)})):s.params={},a(`${r(i)}`,s).then(e=>e)}function u(t){const n=`${t.endpoint||s}/execute`,i=e(t,["sourceCountry","optionalCountryDataset","geographyLayers","geographyIDs","geographyQuery","returnSubGeographyLayer","subGeographyLayer","subGeographyQuery","outSR","returnGeometry","returnCentroids","generalizationLevel","useFuzzySearch","featureLimit","featureOffset","langCode"],{params:Object.assign({},t.params)});return t.authentication?(["geographyLayers","geographyIDs"].forEach(e=>{i.params[e]&&(i.params[e]=JSON.stringify(i.params[e]))}),a(`${r(n)}`,i).then(e=>e)):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")}function p(t){const s=e(t,["studyAreas","dataCollections","analysisVariables","addDerivativeVariables","returnGeometry","inSR","outSR"],{params:Object.assign({},t.params)});return t.authentication?(["dataCollections","analysisVariables"].forEach(e=>{s.params[e]&&(s.params[e]=JSON.stringify(s.params[e]))}),a(`${r(`${t.endpoint||n}/enrich`)}`,s).then(e=>e)):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")}export{n as ARCGIS_ONLINE_GEOENRICHMENT_URL,s as ARCGIS_ONLINE_STANDARD_GEOGRAPHY_QUERY_URL,i as getAvailableCountries,o as getAvailableDataCollections,c as getAvailableGeographyLevels,u as getGeography,p as queryDemographicData};
7
7
  //# sourceMappingURL=demographics.esm.min.js.map
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v4.10.1 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v4.10.3 - Apache-2.0
3
3
  * Copyright (c) 2017-2026 Esri, Inc.
4
- * Mon Mar 09 2026 17:08:56 GMT+0000 (Coordinated Universal Time)
4
+ * Wed Jun 17 2026 23:14:47 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@esri/arcgis-rest-request')) :
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v4.10.1 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v4.10.3 - Apache-2.0
3
3
  * Copyright (c) 2017-2026 Esri, Inc.
4
- * Mon Mar 09 2026 17:08:56 GMT+0000 (Coordinated Universal Time)
4
+ * Wed Jun 17 2026 23:14:47 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
6
  !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],a):a((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,function(e,a){"use strict";const r="https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver",t=`${r}/Geoenrichment`,s=`${r}/StandardGeographyQuery`;e.ARCGIS_ONLINE_GEOENRICHMENT_URL=t,e.ARCGIS_ONLINE_STANDARD_GEOGRAPHY_QUERY_URL=s,e.getAvailableCountries=function(e){let r={},s=`${t}/countries`;return e?(e.endpoint&&(s=`${e.endpoint}/countries`),r=a.appendCustomParams(e,[],{params:Object.assign({},e.params)}),e.countryCode&&(s=`${s}/${e.countryCode}`)):r.params={},a.request(a.cleanUrl(s),r).then(e=>e)},e.getAvailableDataCollections=function(e){let r={},s=`${t}/dataCollections`;return e?(e.endpoint&&(s=`${e.endpoint}/dataCollections`),r=a.appendCustomParams(e,["addDerivativeVariables","suppressNullValues"],{params:Object.assign({},e.params)}),r.params.addDerivativeVariables&&(r.params.addDerivativeVariables=JSON.stringify(r.params.addDerivativeVariables)),e.countryCode&&(s=`${s}/${e.countryCode}`,e.dataCollection&&(s=`${s}/${e.dataCollection}`))):r.params={},a.request(`${a.cleanUrl(s)}`,r).then(e=>e)},e.getAvailableGeographyLevels=function(e){let r={},s=`${t}/StandardGeographyLevels`;return e?(e.endpoint&&(s=`${e.endpoint}/StandardGeographyLevels`),r=a.appendCustomParams(e,[],{params:Object.assign({},e.params)})):r.params={},a.request(`${a.cleanUrl(s)}`,r).then(e=>e)},e.getGeography=function(e){const r=`${e.endpoint||s}/execute`,t=a.appendCustomParams(e,["sourceCountry","optionalCountryDataset","geographyLayers","geographyIDs","geographyQuery","returnSubGeographyLayer","subGeographyLayer","subGeographyQuery","outSR","returnGeometry","returnCentroids","generalizationLevel","useFuzzySearch","featureLimit","featureOffset","langCode"],{params:Object.assign({},e.params)});return e.authentication?(["geographyLayers","geographyIDs"].forEach(e=>{t.params[e]&&(t.params[e]=JSON.stringify(t.params[e]))}),a.request(`${a.cleanUrl(r)}`,t).then(e=>e)):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")},e.queryDemographicData=function(e){const r=a.appendCustomParams(e,["studyAreas","dataCollections","analysisVariables","addDerivativeVariables","returnGeometry","inSR","outSR"],{params:Object.assign({},e.params)});return e.authentication?(["dataCollections","analysisVariables"].forEach(e=>{r.params[e]&&(r.params[e]=JSON.stringify(r.params[e]))}),a.request(`${a.cleanUrl(`${e.endpoint||t}/enrich`)}`,r).then(e=>e)):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")}});
7
7
  //# sourceMappingURL=demographics.umd.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/arcgis-rest-demographics",
3
- "version": "4.10.1",
3
+ "version": "4.10.3",
4
4
  "description": "Demographics data helpers for @esri/arcgis-rest-js",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "@esri/arcgis-rest-request": "^4.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@esri/arcgis-rest-request": "^4.10.1"
53
+ "@esri/arcgis-rest-request": "^4.10.3"
54
54
  },
55
55
  "contributors": [
56
56
  "Gavin Rehkemper <grehkemper@esri.com> (http://gavinr.com/)",