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 4.0.2 to 4.0.3

6

dist/bundled/demographics.esm.js
/* @preserve
* @esri/arcgis-rest-demographics - v4.0.1 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed May 11 2022 17:55:15 GMT+0000 (Coordinated Universal Time)
* @esri/arcgis-rest-demographics - v4.0.2 - Apache-2.0
* Copyright (c) 2017-2024 Esri, Inc.
* Sat Jun 15 2024 00:23:21 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ import { appendCustomParams, request, cleanUrl } from '@esri/arcgis-rest-request';

/* @preserve
* @esri/arcgis-rest-demographics - v4.0.1 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed May 11 2022 17:55:15 GMT+0000 (Coordinated Universal Time)
* @esri/arcgis-rest-demographics - v4.0.2 - Apache-2.0
* Copyright (c) 2017-2024 Esri, Inc.
* Sat Jun 15 2024 00:23:21 GMT+0000 (Coordinated Universal Time)
*/
import{appendCustomParams as e,request as r,cleanUrl as a}from"@esri/arcgis-rest-request";const t="https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment";function s(s){let n={},i=`${t}/countries`;return s?(s.endpoint&&(i=`${s.endpoint}/countries`),n=e(s,[],{params:Object.assign({},s.params)}),s.countryCode&&(i=`${i}/${s.countryCode}`)):n.params={},r(a(i),n).then((e=>e))}function n(s){let n={},i=`${t}/dataCollections`;return s?(s.endpoint&&(i=`${s.endpoint}/dataCollections`),n=e(s,["addDerivativeVariables","suppressNullValues"],{params:Object.assign({},s.params)}),n.params.addDerivativeVariables&&(n.params.addDerivativeVariables=JSON.stringify(n.params.addDerivativeVariables)),s.countryCode&&(i=`${i}/${s.countryCode}`,s.dataCollection&&(i=`${i}/${s.dataCollection}`))):n.params={},r(`${a(i)}`,n).then((e=>e))}function i(s){let n={},i=`${t}/StandardGeographyLevels`;return s?(s.endpoint&&(i=`${s.endpoint}/StandardGeographyLevels`),n=e(s,[],{params:Object.assign({},s.params)})):n.params={},r(`${a(i)}`,n).then((e=>e))}function o(t){const s=`${t.endpoint||"https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery"}/execute`,n=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=>{n.params[e]&&(n.params[e]=JSON.stringify(n.params[e]))})),r(`${a(s)}`,n).then((e=>e))):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")}function c(s){const n=e(s,["studyAreas","dataCollections","analysisVariables","addDerivativeVariables","returnGeometry","inSR","outSR"],{params:Object.assign({},s.params)});return s.authentication?(["dataCollections","analysisVariables"].forEach((e=>{n.params[e]&&(n.params[e]=JSON.stringify(n.params[e]))})),r(`${a(`${s.endpoint||t}/enrich`)}`,n).then((e=>e))):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")}export{s as getAvailableCountries,n as getAvailableDataCollections,i as getAvailableGeographyLevels,o as getGeography,c as queryDemographicData};
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{i as getAvailableCountries,o as getAvailableDataCollections,c as getAvailableGeographyLevels,u as getGeography,p as queryDemographicData};
//# sourceMappingURL=demographics.esm.min.js.map
/* @preserve
* @esri/arcgis-rest-demographics - v4.0.1 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed May 11 2022 17:55:15 GMT+0000 (Coordinated Universal Time)
* @esri/arcgis-rest-demographics - v4.0.2 - Apache-2.0
* Copyright (c) 2017-2024 Esri, Inc.
* Sat Jun 15 2024 00:23:21 GMT+0000 (Coordinated Universal Time)
*/

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

/* @preserve
* @esri/arcgis-rest-demographics - v4.0.1 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed May 11 2022 17:55:15 GMT+0000 (Coordinated Universal Time)
* @esri/arcgis-rest-demographics - v4.0.2 - Apache-2.0
* Copyright (c) 2017-2024 Esri, Inc.
* Sat Jun 15 2024 00:23:21 GMT+0000 (Coordinated Universal Time)
*/
!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.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")},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=demographics.umd.min.js.map

@@ -5,3 +5,3 @@ import { IExtent } from "@esri/arcgis-rest-request";

/**
* View a description for a given country. If not specified, will return a list of all countries.
* View a description for a given country. If not specified, it will return a list of all countries.
*/

@@ -8,0 +8,0 @@ countryCode?: string;

{
"name": "@esri/arcgis-rest-demographics",
"version": "4.0.2",
"version": "4.0.3",
"description": "Demographics data helpers for @esri/arcgis-rest-js",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -35,6 +35,6 @@ [![npm version][npm-img]][npm-url]

### [API Reference](https://esri.github.io/arcgis-rest-js/api/demographics/)
### [API Reference](https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-demographics/)
- [`getAvailableDataCollections({countryCode: 'us'})`](https://esri.github.io/arcgis-rest-js/api/demographics/getAvailableDataCollections/)
- [`queryDemographicData({studyAreas: [{"geometry":{"x":-117.1956,"y":34.0572}}], authentication})`](https://esri.github.io/arcgis-rest-js/api/demographics/queryDemographicData/)
- [`getAvailableDataCollections({countryCode: 'us'})`](https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-demographics/getAvailableDataCollections/)
- [`queryDemographicData({studyAreas: [{"geometry":{"x":-117.1956,"y":34.0572}}], authentication})`](https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-demographics/queryDemographicData/)

@@ -41,0 +41,0 @@ ### Issues

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

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

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