Socket
Socket
Sign inDemoInstall

@esri/arcgis-rest-demographics

Package Overview
Dependencies
Maintainers
40
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.0-beta.2 to 4.0.0-beta.3

dist/cjs/package.json

4

dist/bundled/demographics.esm.js
/* @preserve
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v4.0.0-beta.2 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed Mar 02 2022 19:55:53 GMT+0000 (Coordinated Universal Time)
* Thu Mar 10 2022 23:21:03 GMT+0000 (Coordinated Universal Time)
*/

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

/* @preserve
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v4.0.0-beta.2 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed Mar 02 2022 19:55:53 GMT+0000 (Coordinated Universal Time)
* Thu Mar 10 2022 23:21:03 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};
//# sourceMappingURL=demographics.esm.min.js.map
/* @preserve
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v4.0.0-beta.2 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed Mar 02 2022 19:55:53 GMT+0000 (Coordinated Universal Time)
* Thu Mar 10 2022 23:21:03 GMT+0000 (Coordinated Universal Time)
*/

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

/* @preserve
* @esri/arcgis-rest-demographics - v3.3.0 - Apache-2.0
* @esri/arcgis-rest-demographics - v4.0.0-beta.2 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Wed Mar 02 2022 19:55:53 GMT+0000 (Coordinated Universal Time)
* Thu Mar 10 2022 23:21:03 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
{
"name": "@esri/arcgis-rest-demographics",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"description": "Demographics data helpers for @esri/arcgis-rest-js",

@@ -35,3 +35,5 @@ "license": "Apache-2.0",

"build:cjs": "tsc --outDir ./dist/cjs -m commonjs",
"postbuild:cjs": "node ../../scripts/create-dist-package-jsons.js",
"build:esm": "tsc --outDir ./dist/esm --declaration",
"postbuild:esm": "node ../../scripts/create-dist-package-jsons.js",
"dev": "npm-run-all --parallel dev:*",

@@ -49,6 +51,6 @@ "dev:bundled": "rollup -w -c ../../rollup.js",

"peerDependencies": {
"@esri/arcgis-rest-request": "4.0.0-beta.2"
"@esri/arcgis-rest-request": "4.0.0-beta.3"
},
"devDependencies": {
"@esri/arcgis-rest-request": "4.0.0-beta.2"
"@esri/arcgis-rest-request": "4.0.0-beta.3"
},

@@ -55,0 +57,0 @@ "contributors": [

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