delectusnon 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. package/.prettierignore +2 -0
  2. package/.travis.yml +33 -0
  3. package/.vscode/launch.json +24 -0
  4. package/.vscode/settings.json +3 -0
  5. package/demos/ago-node-cli/README.md +29 -0
  6. package/demos/ago-node-cli/ago.js +32 -0
  7. package/demos/ago-node-cli/index.js +11 -0
  8. package/demos/ago-node-cli/lib/item-export-command.js +48 -0
  9. package/demos/ago-node-cli/lib/item-search-command.js +35 -0
  10. package/demos/ago-node-cli/package-lock.json +172 -0
  11. package/demos/ago-node-cli/package.json +30 -0
  12. package/demos/attachments/README.md +5 -0
  13. package/demos/attachments/index.html +164 -0
  14. package/demos/attachments/package-lock.json +182 -0
  15. package/demos/attachments/package.json +18 -0
  16. package/demos/batch-geocoder-node/NYC_Restaurant_Inspection_Results.csv +100 -0
  17. package/demos/batch-geocoder-node/README.md +15 -0
  18. package/demos/batch-geocoder-node/batch-geocode.js +118 -0
  19. package/demos/batch-geocoder-node/config-template.js +18 -0
  20. package/demos/batch-geocoder-node/package-lock.json +116 -0
  21. package/demos/batch-geocoder-node/package.json +39 -0
  22. package/demos/express/README.md +10 -0
  23. package/demos/express/config.json.template +3 -0
  24. package/demos/express/package-lock.json +473 -0
  25. package/demos/express/package.json +18 -0
  26. package/demos/express/server.js +28 -0
  27. package/demos/feature-service-browser/README.md +6 -0
  28. package/demos/feature-service-browser/index.html +122 -0
  29. package/demos/feature-service-browser/package-lock.json +182 -0
  30. package/demos/feature-service-browser/package.json +18 -0
  31. package/demos/geocoder-browser/README.md +10 -0
  32. package/demos/geocoder-browser/config.js.template +1 -0
  33. package/demos/geocoder-browser/index.html +131 -0
  34. package/demos/geocoder-browser/package-lock.json +182 -0
  35. package/demos/geocoder-browser/package.json +19 -0
  36. package/demos/geocoder-browser/post-sign-in.html +25 -0
  37. package/demos/jsapi-integration/README.md +8 -0
  38. package/demos/jsapi-integration/config.js +6 -0
  39. package/demos/jsapi-integration/index.html +79 -0
  40. package/demos/jsapi-integration/package-lock.json +184 -0
  41. package/demos/jsapi-integration/package.json +19 -0
  42. package/demos/oauth2-browser/README.md +12 -0
  43. package/demos/oauth2-browser/authenticate.html +32 -0
  44. package/demos/oauth2-browser/config.js.template +6 -0
  45. package/demos/oauth2-browser/index.html +202 -0
  46. package/demos/oauth2-browser/logo.svg +4 -0
  47. package/demos/oauth2-browser/package-lock.json +163 -0
  48. package/demos/oauth2-browser/package.json +18 -0
  49. package/demos/oauth2-browser/style.css +36 -0
  50. package/demos/oauth2-browser-retry/README.md +25 -0
  51. package/demos/oauth2-browser-retry/authenticate.html +21 -0
  52. package/demos/oauth2-browser-retry/index.html +116 -0
  53. package/demos/oauth2-browser-retry/logo.svg +4 -0
  54. package/demos/vue/.env.example +11 -0
  55. package/demos/vue/.eslintrc.js +17 -0
  56. package/demos/vue/.postcssrc.js +5 -0
  57. package/demos/vue/README.md +17 -0
  58. package/demos/vue/babel.config.js +3 -0
  59. package/demos/vue/package-lock.json +11323 -0
  60. package/demos/vue/package.json +33 -0
  61. package/demos/vue/public/favicon.ico +0 -0
  62. package/demos/vue/public/index.html +24 -0
  63. package/demos/vue/src/assets/logo.svg +29 -0
  64. package/demos/vue/src/components/App.vue +308 -0
  65. package/demos/vue/src/components/Authenticate.vue +65 -0
  66. package/demos/vue/src/components/Loader.vue +230 -0
  67. package/demos/vue/src/main.js +92 -0
  68. package/docs/FAQ.md +28 -0
  69. package/docs/HISTORY.md +62 -0
  70. package/docs/acetate.config.js +223 -0
  71. package/docs/build-typedoc.js +301 -0
  72. package/docs/src/_layout.html +82 -0
  73. package/docs/src/api/_declaration.html +496 -0
  74. package/docs/src/api/_layout.html +127 -0
  75. package/docs/src/api/_package.html +13 -0
  76. package/docs/src/api/index.html +23 -0
  77. package/docs/src/guides/_layout.html +24 -0
  78. package/docs/src/guides/amd-requirejs-dojo.md +40 -0
  79. package/docs/src/guides/babel-and-rollup.md +30 -0
  80. package/docs/src/guides/babel-and-webpack.md +30 -0
  81. package/docs/src/guides/browser-authentication.md +31 -0
  82. package/docs/src/guides/browserify.md +9 -0
  83. package/docs/src/guides/cli-authentication.md +9 -0
  84. package/docs/src/guides/client-server-authentication.md +9 -0
  85. package/docs/src/guides/from-a-cdn.md +36 -0
  86. package/docs/src/guides/index.md +52 -0
  87. package/docs/src/guides/node.md +70 -0
  88. package/docs/src/guides/package-overview.md +8 -0
  89. package/docs/src/guides/server-authentication.md +9 -0
  90. package/docs/src/guides/typescript-and-webpack.md +9 -0
  91. package/docs/src/img/icons.png +0 -0
  92. package/docs/src/img/icons@2x.png +0 -0
  93. package/docs/src/index.html +12 -0
  94. package/docs/src/js/api-search.js +112 -0
  95. package/docs/src/js/nav-toggle.js +41 -0
  96. package/docs/src/sass/_highlight.scss +96 -0
  97. package/docs/src/sass/_icons.scss +157 -0
  98. package/docs/src/sass/style.scss +169 -0
  99. package/jasmine.json +7 -0
  100. package/karma.conf.js +100 -0
  101. package/lerna.json +8 -0
  102. package/notes/README.md +88 -0
  103. package/package.json +88 -0
  104. package/packages/arcgis-rest-auth/README.md +64 -0
  105. package/packages/arcgis-rest-auth/package-lock.json +11 -0
  106. package/packages/arcgis-rest-auth/package.json +51 -0
  107. package/packages/arcgis-rest-auth/src/ApplicationSession.ts +109 -0
  108. package/packages/arcgis-rest-auth/src/UserSession.ts +873 -0
  109. package/packages/arcgis-rest-auth/src/authenticated-request-options.ts +24 -0
  110. package/packages/arcgis-rest-auth/src/fetch-token.ts +52 -0
  111. package/packages/arcgis-rest-auth/src/generate-token.ts +39 -0
  112. package/packages/arcgis-rest-auth/src/index.ts +8 -0
  113. package/packages/arcgis-rest-auth/test/ApplicationSession.test.ts +124 -0
  114. package/packages/arcgis-rest-auth/test/UserSession.test.ts +995 -0
  115. package/packages/arcgis-rest-auth/test/fetchToken.test.ts +112 -0
  116. package/packages/arcgis-rest-auth/test/generateToken.test.ts +130 -0
  117. package/packages/arcgis-rest-auth/test/utils.ts +14 -0
  118. package/packages/arcgis-rest-auth/tsconfig.json +6 -0
  119. package/packages/arcgis-rest-common-types/README.md +61 -0
  120. package/packages/arcgis-rest-common-types/package.json +38 -0
  121. package/packages/arcgis-rest-common-types/src/group.ts +54 -0
  122. package/packages/arcgis-rest-common-types/src/index.ts +467 -0
  123. package/packages/arcgis-rest-common-types/src/item.ts +45 -0
  124. package/packages/arcgis-rest-common-types/src/webmap.ts +1232 -0
  125. package/packages/arcgis-rest-common-types/tsconfig.json +11 -0
  126. package/packages/arcgis-rest-feature-service/README.md +70 -0
  127. package/packages/arcgis-rest-feature-service/package-lock.json +11 -0
  128. package/packages/arcgis-rest-feature-service/package.json +50 -0
  129. package/packages/arcgis-rest-feature-service/src/add.ts +81 -0
  130. package/packages/arcgis-rest-feature-service/src/addAttachment.ts +65 -0
  131. package/packages/arcgis-rest-feature-service/src/delete.ts +85 -0
  132. package/packages/arcgis-rest-feature-service/src/deleteAttachments.ts +68 -0
  133. package/packages/arcgis-rest-feature-service/src/getAttachments.ts +64 -0
  134. package/packages/arcgis-rest-feature-service/src/helpers.ts +80 -0
  135. package/packages/arcgis-rest-feature-service/src/index.ts +12 -0
  136. package/packages/arcgis-rest-feature-service/src/query.ts +172 -0
  137. package/packages/arcgis-rest-feature-service/src/queryRelated.ts +91 -0
  138. package/packages/arcgis-rest-feature-service/src/update.ts +81 -0
  139. package/packages/arcgis-rest-feature-service/src/updateAttachment.ts +74 -0
  140. package/packages/arcgis-rest-feature-service/test/attachments.test.ts +203 -0
  141. package/packages/arcgis-rest-feature-service/test/features.test.ts +252 -0
  142. package/packages/arcgis-rest-feature-service/test/mocks/feature.ts +279 -0
  143. package/packages/arcgis-rest-feature-service/test/mocks/foo.txt +1 -0
  144. package/packages/arcgis-rest-feature-service/tsconfig.json +6 -0
  145. package/packages/arcgis-rest-feature-service-admin/README.md +66 -0
  146. package/packages/arcgis-rest-feature-service-admin/package-lock.json +11 -0
  147. package/packages/arcgis-rest-feature-service-admin/package.json +53 -0
  148. package/packages/arcgis-rest-feature-service-admin/src/addTo.ts +70 -0
  149. package/packages/arcgis-rest-feature-service-admin/src/create.ts +195 -0
  150. package/packages/arcgis-rest-feature-service-admin/src/index.ts +2 -0
  151. package/packages/arcgis-rest-feature-service-admin/test/addTo.test.ts +310 -0
  152. package/packages/arcgis-rest-feature-service-admin/test/create.test.ts +412 -0
  153. package/packages/arcgis-rest-feature-service-admin/test/mocks/move.ts +14 -0
  154. package/packages/arcgis-rest-feature-service-admin/test/mocks/service.ts +72 -0
  155. package/packages/arcgis-rest-feature-service-admin/tsconfig.json +6 -0
  156. package/packages/arcgis-rest-geocoder/README.md +79 -0
  157. package/packages/arcgis-rest-geocoder/package-lock.json +11 -0
  158. package/packages/arcgis-rest-geocoder/package.json +52 -0
  159. package/packages/arcgis-rest-geocoder/src/bulk.ts +102 -0
  160. package/packages/arcgis-rest-geocoder/src/geocode.ts +117 -0
  161. package/packages/arcgis-rest-geocoder/src/helpers.ts +79 -0
  162. package/packages/arcgis-rest-geocoder/src/index.ts +8 -0
  163. package/packages/arcgis-rest-geocoder/src/reverse.ts +84 -0
  164. package/packages/arcgis-rest-geocoder/src/suggest.ts +72 -0
  165. package/packages/arcgis-rest-geocoder/test/bulk.test.ts +113 -0
  166. package/packages/arcgis-rest-geocoder/test/geocode.test.ts +121 -0
  167. package/packages/arcgis-rest-geocoder/test/helpers.test.ts +113 -0
  168. package/packages/arcgis-rest-geocoder/test/mocks/responses.ts +591 -0
  169. package/packages/arcgis-rest-geocoder/test/reverse.test.ts +126 -0
  170. package/packages/arcgis-rest-geocoder/test/suggest.test.ts +77 -0
  171. package/packages/arcgis-rest-geocoder/tsconfig.json +6 -0
  172. package/packages/arcgis-rest-groups/README.md +64 -0
  173. package/packages/arcgis-rest-groups/package-lock.json +11 -0
  174. package/packages/arcgis-rest-groups/package.json +52 -0
  175. package/packages/arcgis-rest-groups/src/create.ts +34 -0
  176. package/packages/arcgis-rest-groups/src/get.ts +95 -0
  177. package/packages/arcgis-rest-groups/src/helpers.ts +26 -0
  178. package/packages/arcgis-rest-groups/src/index.ts +11 -0
  179. package/packages/arcgis-rest-groups/src/notification.ts +77 -0
  180. package/packages/arcgis-rest-groups/src/protect.ts +40 -0
  181. package/packages/arcgis-rest-groups/src/remove.ts +23 -0
  182. package/packages/arcgis-rest-groups/src/search.ts +64 -0
  183. package/packages/arcgis-rest-groups/src/update.ts +36 -0
  184. package/packages/arcgis-rest-groups/test/crud.test.ts +104 -0
  185. package/packages/arcgis-rest-groups/test/get.test.ts +101 -0
  186. package/packages/arcgis-rest-groups/test/mocks/responses.ts +141 -0
  187. package/packages/arcgis-rest-groups/test/notification.test.ts +102 -0
  188. package/packages/arcgis-rest-groups/test/protect.test.ts +64 -0
  189. package/packages/arcgis-rest-groups/test/search.test.ts +85 -0
  190. package/packages/arcgis-rest-groups/tsconfig.json +6 -0
  191. package/packages/arcgis-rest-items/README.md +66 -0
  192. package/packages/arcgis-rest-items/package-lock.json +11 -0
  193. package/packages/arcgis-rest-items/package.json +52 -0
  194. package/packages/arcgis-rest-items/src/add.ts +103 -0
  195. package/packages/arcgis-rest-items/src/create.ts +110 -0
  196. package/packages/arcgis-rest-items/src/get.ts +79 -0
  197. package/packages/arcgis-rest-items/src/helpers.ts +147 -0
  198. package/packages/arcgis-rest-items/src/index.ts +11 -0
  199. package/packages/arcgis-rest-items/src/protect.ts +38 -0
  200. package/packages/arcgis-rest-items/src/remove.ts +58 -0
  201. package/packages/arcgis-rest-items/src/search.ts +78 -0
  202. package/packages/arcgis-rest-items/src/update.ts +134 -0
  203. package/packages/arcgis-rest-items/test/add.test.ts +256 -0
  204. package/packages/arcgis-rest-items/test/create.test.ts +371 -0
  205. package/packages/arcgis-rest-items/test/get.test.ts +181 -0
  206. package/packages/arcgis-rest-items/test/mocks/foo.zip +0 -0
  207. package/packages/arcgis-rest-items/test/mocks/item.ts +33 -0
  208. package/packages/arcgis-rest-items/test/mocks/resources.ts +31 -0
  209. package/packages/arcgis-rest-items/test/mocks/search.ts +63 -0
  210. package/packages/arcgis-rest-items/test/protect.test.ts +122 -0
  211. package/packages/arcgis-rest-items/test/remove.test.ts +161 -0
  212. package/packages/arcgis-rest-items/test/search.test.ts +159 -0
  213. package/packages/arcgis-rest-items/test/update.test.ts +450 -0
  214. package/packages/arcgis-rest-items/tsconfig.json +6 -0
  215. package/packages/arcgis-rest-request/README.md +65 -0
  216. package/packages/arcgis-rest-request/package-lock.json +11 -0
  217. package/packages/arcgis-rest-request/package.json +42 -0
  218. package/packages/arcgis-rest-request/src/index.ts +13 -0
  219. package/packages/arcgis-rest-request/src/request.ts +293 -0
  220. package/packages/arcgis-rest-request/src/utils/ArcGISAuthError.ts +67 -0
  221. package/packages/arcgis-rest-request/src/utils/ArcGISRequestError.ts +76 -0
  222. package/packages/arcgis-rest-request/src/utils/ErrorTypes.ts +29 -0
  223. package/packages/arcgis-rest-request/src/utils/check-for-errors.ts +65 -0
  224. package/packages/arcgis-rest-request/src/utils/encode-form-data.ts +34 -0
  225. package/packages/arcgis-rest-request/src/utils/encode-query-string.ts +23 -0
  226. package/packages/arcgis-rest-request/src/utils/get-portal-url.ts +25 -0
  227. package/packages/arcgis-rest-request/src/utils/get-portal.ts +45 -0
  228. package/packages/arcgis-rest-request/src/utils/process-params.ts +99 -0
  229. package/packages/arcgis-rest-request/test/mocks/errors.ts +68 -0
  230. package/packages/arcgis-rest-request/test/mocks/geojson-feature-collection.ts +13 -0
  231. package/packages/arcgis-rest-request/test/mocks/portal.ts +112 -0
  232. package/packages/arcgis-rest-request/test/mocks/sharing-rest-info.ts +41 -0
  233. package/packages/arcgis-rest-request/test/mocks/webmap.ts +41 -0
  234. package/packages/arcgis-rest-request/test/request.test.ts +299 -0
  235. package/packages/arcgis-rest-request/test/utils/ArcGISAuthError.test.ts +170 -0
  236. package/packages/arcgis-rest-request/test/utils/ArcGISRequestError.test.ts +51 -0
  237. package/packages/arcgis-rest-request/test/utils/check-for-errors.test.ts +111 -0
  238. package/packages/arcgis-rest-request/test/utils/encode-form-data.test.ts +133 -0
  239. package/packages/arcgis-rest-request/test/utils/get-portal-url.test.ts +37 -0
  240. package/packages/arcgis-rest-request/test/utils/portal.test.ts +97 -0
  241. package/packages/arcgis-rest-request/test/utils/process-params.test.ts +193 -0
  242. package/packages/arcgis-rest-request/tsconfig.json +6 -0
  243. package/packages/arcgis-rest-sharing/README.md +67 -0
  244. package/packages/arcgis-rest-sharing/package-lock.json +11 -0
  245. package/packages/arcgis-rest-sharing/package.json +57 -0
  246. package/packages/arcgis-rest-sharing/src/access.ts +85 -0
  247. package/packages/arcgis-rest-sharing/src/group-sharing.ts +211 -0
  248. package/packages/arcgis-rest-sharing/src/helpers.ts +82 -0
  249. package/packages/arcgis-rest-sharing/src/index.ts +5 -0
  250. package/packages/arcgis-rest-sharing/test/access.test.ts +154 -0
  251. package/packages/arcgis-rest-sharing/test/group-sharing.test.ts +566 -0
  252. package/packages/arcgis-rest-sharing/test/helpers.test.ts +55 -0
  253. package/packages/arcgis-rest-sharing/test/mocks/sharing.ts +18 -0
  254. package/packages/arcgis-rest-sharing/tsconfig.json +6 -0
  255. package/packages/arcgis-rest-users/README.md +71 -0
  256. package/packages/arcgis-rest-users/package-lock.json +11 -0
  257. package/packages/arcgis-rest-users/package.json +51 -0
  258. package/packages/arcgis-rest-users/src/get.ts +69 -0
  259. package/packages/arcgis-rest-users/src/index.ts +6 -0
  260. package/packages/arcgis-rest-users/src/invitation.ts +166 -0
  261. package/packages/arcgis-rest-users/src/notification.ts +73 -0
  262. package/packages/arcgis-rest-users/test/get.test.ts +99 -0
  263. package/packages/arcgis-rest-users/test/invitation.test.ts +169 -0
  264. package/packages/arcgis-rest-users/test/mocks/invitation.ts +70 -0
  265. package/packages/arcgis-rest-users/test/mocks/notification.ts +34 -0
  266. package/packages/arcgis-rest-users/test/mocks/user.ts +173 -0
  267. package/packages/arcgis-rest-users/test/notification.test.ts +83 -0
  268. package/packages/arcgis-rest-users/tsconfig.json +6 -0
  269. package/support/changelog.js +394 -0
  270. package/support/deploy-doc-site.js +16 -0
  271. package/support/publish.sh +43 -0
  272. package/support/test-helpers.js +8 -0
  273. package/tsconfig.json +69 -0
  274. package/tslint.json +15 -0
  275. package/umd-base-profile.js +82 -0
  276. package/umd-production-profile.js +13 -0
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "batch-geocoder",
3
+ "version": "1.13.0",
4
+ "description": "arcgis-rest-js batch geocode sample",
5
+ "main": "batch-geocode.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "start": "node batch-geocode.js"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/Esri/arcgis-rest-js.git"
13
+ },
14
+ "keywords": [
15
+ "geocode",
16
+ "batch",
17
+ "arcgis",
18
+ "rest",
19
+ "js",
20
+ "arcgis-rest-js"
21
+ ],
22
+ "author": "Max Payson (mpayson)",
23
+ "license": "Apache-2.0",
24
+ "private": true,
25
+ "bugs": {
26
+ "url": "https://github.com/Esri/arcgis-rest-js/issues"
27
+ },
28
+ "homepage": "https://github.com/Esri/arcgis-rest-js#readme",
29
+ "dependencies": {
30
+ "@esri/arcgis-rest-auth": "^1.13.0",
31
+ "@esri/arcgis-rest-common-types": "^1.13.0",
32
+ "@esri/arcgis-rest-geocoder": "^1.13.0",
33
+ "@esri/arcgis-rest-request": "^1.13.0",
34
+ "isomorphic-fetch": "^2.2.1",
35
+ "isomorphic-form-data": "^2.0.0",
36
+ "node-fetch": "^2.2.0",
37
+ "papaparse": "^4.6.0"
38
+ }
39
+ }
@@ -0,0 +1,10 @@
1
+ # Running this demo locally
2
+
3
+ 1. Make sure you run `npm run bootstrap` in the root folder to setup the dependencies
4
+ 2. Register a new app on https://developers.arcgis.com
5
+ 3. Add a redirect URL of `http://localhost:3000/authenticate` to your app.
6
+ 4. Copy the `config.json.template` file, rename it to `config.json`
7
+ 5. Copy your apps client id into your new `config.json` file.
8
+ 6. `npm start`
9
+ 7. Visit http://localhost:3000/authorize to start the OAuth 2.0 process.
10
+
@@ -0,0 +1,3 @@
1
+ {
2
+ "clientId": "CLIENT_ID"
3
+ }
@@ -0,0 +1,473 @@
1
+ {
2
+ "requires": true,
3
+ "lockfileVersion": 1,
4
+ "dependencies": {
5
+ "accepts": {
6
+ "version": "1.3.5",
7
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
8
+ "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
9
+ "requires": {
10
+ "mime-types": "~2.1.18",
11
+ "negotiator": "0.6.1"
12
+ },
13
+ "dependencies": {
14
+ "mime-db": {
15
+ "version": "1.35.0",
16
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
17
+ "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
18
+ },
19
+ "mime-types": {
20
+ "version": "2.1.19",
21
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
22
+ "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
23
+ "requires": {
24
+ "mime-db": "~1.35.0"
25
+ }
26
+ }
27
+ }
28
+ },
29
+ "array-flatten": {
30
+ "version": "1.1.1",
31
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
32
+ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
33
+ },
34
+ "asynckit": {
35
+ "version": "0.4.0",
36
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
37
+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
38
+ },
39
+ "body-parser": {
40
+ "version": "1.18.2",
41
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz",
42
+ "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
43
+ "requires": {
44
+ "bytes": "3.0.0",
45
+ "content-type": "~1.0.4",
46
+ "debug": "2.6.9",
47
+ "depd": "~1.1.1",
48
+ "http-errors": "~1.6.2",
49
+ "iconv-lite": "0.4.19",
50
+ "on-finished": "~2.3.0",
51
+ "qs": "6.5.1",
52
+ "raw-body": "2.3.2",
53
+ "type-is": "~1.6.15"
54
+ }
55
+ },
56
+ "bytes": {
57
+ "version": "3.0.0",
58
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
59
+ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="
60
+ },
61
+ "combined-stream": {
62
+ "version": "1.0.6",
63
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
64
+ "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
65
+ "requires": {
66
+ "delayed-stream": "~1.0.0"
67
+ }
68
+ },
69
+ "content-disposition": {
70
+ "version": "0.5.2",
71
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
72
+ "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ="
73
+ },
74
+ "content-type": {
75
+ "version": "1.0.4",
76
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
77
+ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
78
+ },
79
+ "cookie": {
80
+ "version": "0.3.1",
81
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
82
+ "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
83
+ },
84
+ "cookie-signature": {
85
+ "version": "1.0.6",
86
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
87
+ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
88
+ },
89
+ "debug": {
90
+ "version": "2.6.9",
91
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
92
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
93
+ "requires": {
94
+ "ms": "2.0.0"
95
+ }
96
+ },
97
+ "delayed-stream": {
98
+ "version": "1.0.0",
99
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
100
+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
101
+ },
102
+ "depd": {
103
+ "version": "1.1.2",
104
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
105
+ "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
106
+ },
107
+ "destroy": {
108
+ "version": "1.0.4",
109
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
110
+ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
111
+ },
112
+ "ee-first": {
113
+ "version": "1.1.1",
114
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
115
+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
116
+ },
117
+ "encodeurl": {
118
+ "version": "1.0.2",
119
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
120
+ "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
121
+ },
122
+ "encoding": {
123
+ "version": "0.1.12",
124
+ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
125
+ "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=",
126
+ "requires": {
127
+ "iconv-lite": "~0.4.13"
128
+ }
129
+ },
130
+ "escape-html": {
131
+ "version": "1.0.3",
132
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
133
+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
134
+ },
135
+ "etag": {
136
+ "version": "1.8.1",
137
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
138
+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
139
+ },
140
+ "express": {
141
+ "version": "4.16.3",
142
+ "resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz",
143
+ "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=",
144
+ "requires": {
145
+ "accepts": "~1.3.5",
146
+ "array-flatten": "1.1.1",
147
+ "body-parser": "1.18.2",
148
+ "content-disposition": "0.5.2",
149
+ "content-type": "~1.0.4",
150
+ "cookie": "0.3.1",
151
+ "cookie-signature": "1.0.6",
152
+ "debug": "2.6.9",
153
+ "depd": "~1.1.2",
154
+ "encodeurl": "~1.0.2",
155
+ "escape-html": "~1.0.3",
156
+ "etag": "~1.8.1",
157
+ "finalhandler": "1.1.1",
158
+ "fresh": "0.5.2",
159
+ "merge-descriptors": "1.0.1",
160
+ "methods": "~1.1.2",
161
+ "on-finished": "~2.3.0",
162
+ "parseurl": "~1.3.2",
163
+ "path-to-regexp": "0.1.7",
164
+ "proxy-addr": "~2.0.3",
165
+ "qs": "6.5.1",
166
+ "range-parser": "~1.2.0",
167
+ "safe-buffer": "5.1.1",
168
+ "send": "0.16.2",
169
+ "serve-static": "1.13.2",
170
+ "setprototypeof": "1.1.0",
171
+ "statuses": "~1.4.0",
172
+ "type-is": "~1.6.16",
173
+ "utils-merge": "1.0.1",
174
+ "vary": "~1.1.2"
175
+ }
176
+ },
177
+ "finalhandler": {
178
+ "version": "1.1.1",
179
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz",
180
+ "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==",
181
+ "requires": {
182
+ "debug": "2.6.9",
183
+ "encodeurl": "~1.0.2",
184
+ "escape-html": "~1.0.3",
185
+ "on-finished": "~2.3.0",
186
+ "parseurl": "~1.3.2",
187
+ "statuses": "~1.4.0",
188
+ "unpipe": "~1.0.0"
189
+ }
190
+ },
191
+ "form-data": {
192
+ "version": "2.3.2",
193
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",
194
+ "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=",
195
+ "requires": {
196
+ "asynckit": "^0.4.0",
197
+ "combined-stream": "1.0.6",
198
+ "mime-types": "^2.1.12"
199
+ }
200
+ },
201
+ "forwarded": {
202
+ "version": "0.1.2",
203
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
204
+ "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
205
+ },
206
+ "fresh": {
207
+ "version": "0.5.2",
208
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
209
+ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
210
+ },
211
+ "http-errors": {
212
+ "version": "1.6.3",
213
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
214
+ "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
215
+ "requires": {
216
+ "depd": "~1.1.2",
217
+ "inherits": "2.0.3",
218
+ "setprototypeof": "1.1.0",
219
+ "statuses": ">= 1.4.0 < 2"
220
+ }
221
+ },
222
+ "iconv-lite": {
223
+ "version": "0.4.19",
224
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
225
+ "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ=="
226
+ },
227
+ "inherits": {
228
+ "version": "2.0.3",
229
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
230
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
231
+ },
232
+ "ipaddr.js": {
233
+ "version": "1.8.0",
234
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz",
235
+ "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4="
236
+ },
237
+ "is-stream": {
238
+ "version": "1.1.0",
239
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
240
+ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
241
+ },
242
+ "isomorphic-fetch": {
243
+ "version": "2.2.1",
244
+ "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
245
+ "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=",
246
+ "requires": {
247
+ "node-fetch": "^1.0.1",
248
+ "whatwg-fetch": ">=0.10.0"
249
+ }
250
+ },
251
+ "isomorphic-form-data": {
252
+ "version": "2.0.0",
253
+ "resolved": "https://registry.npmjs.org/isomorphic-form-data/-/isomorphic-form-data-2.0.0.tgz",
254
+ "integrity": "sha512-TYgVnXWeESVmQSg4GLVbalmQ+B4NPi/H4eWxqALKj63KsUrcu301YDjBqaOw3h+cbak7Na4Xyps3BiptHtxTfg==",
255
+ "requires": {
256
+ "form-data": "^2.3.2"
257
+ }
258
+ },
259
+ "media-typer": {
260
+ "version": "0.3.0",
261
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
262
+ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
263
+ },
264
+ "merge-descriptors": {
265
+ "version": "1.0.1",
266
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
267
+ "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
268
+ },
269
+ "methods": {
270
+ "version": "1.1.2",
271
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
272
+ "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
273
+ },
274
+ "mime": {
275
+ "version": "1.4.1",
276
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
277
+ "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
278
+ },
279
+ "mime-db": {
280
+ "version": "1.29.0",
281
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz",
282
+ "integrity": "sha1-SNJtI1WJZRcErFkWygYAGRQmaHg="
283
+ },
284
+ "mime-types": {
285
+ "version": "2.1.16",
286
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.16.tgz",
287
+ "integrity": "sha1-K4WKUuXs1RbbiXrCvodIeDBpjiM=",
288
+ "requires": {
289
+ "mime-db": "~1.29.0"
290
+ }
291
+ },
292
+ "ms": {
293
+ "version": "2.0.0",
294
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
295
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
296
+ },
297
+ "negotiator": {
298
+ "version": "0.6.1",
299
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
300
+ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
301
+ },
302
+ "node-fetch": {
303
+ "version": "1.7.3",
304
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
305
+ "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
306
+ "requires": {
307
+ "encoding": "^0.1.11",
308
+ "is-stream": "^1.0.1"
309
+ }
310
+ },
311
+ "on-finished": {
312
+ "version": "2.3.0",
313
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
314
+ "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
315
+ "requires": {
316
+ "ee-first": "1.1.1"
317
+ }
318
+ },
319
+ "parseurl": {
320
+ "version": "1.3.2",
321
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
322
+ "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
323
+ },
324
+ "path-to-regexp": {
325
+ "version": "0.1.7",
326
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
327
+ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
328
+ },
329
+ "proxy-addr": {
330
+ "version": "2.0.4",
331
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz",
332
+ "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==",
333
+ "requires": {
334
+ "forwarded": "~0.1.2",
335
+ "ipaddr.js": "1.8.0"
336
+ }
337
+ },
338
+ "qs": {
339
+ "version": "6.5.1",
340
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
341
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A=="
342
+ },
343
+ "range-parser": {
344
+ "version": "1.2.0",
345
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
346
+ "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4="
347
+ },
348
+ "raw-body": {
349
+ "version": "2.3.2",
350
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
351
+ "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=",
352
+ "requires": {
353
+ "bytes": "3.0.0",
354
+ "http-errors": "1.6.2",
355
+ "iconv-lite": "0.4.19",
356
+ "unpipe": "1.0.0"
357
+ },
358
+ "dependencies": {
359
+ "depd": {
360
+ "version": "1.1.1",
361
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
362
+ "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k="
363
+ },
364
+ "http-errors": {
365
+ "version": "1.6.2",
366
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz",
367
+ "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
368
+ "requires": {
369
+ "depd": "1.1.1",
370
+ "inherits": "2.0.3",
371
+ "setprototypeof": "1.0.3",
372
+ "statuses": ">= 1.3.1 < 2"
373
+ }
374
+ },
375
+ "setprototypeof": {
376
+ "version": "1.0.3",
377
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz",
378
+ "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ="
379
+ }
380
+ }
381
+ },
382
+ "safe-buffer": {
383
+ "version": "5.1.1",
384
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
385
+ "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
386
+ },
387
+ "send": {
388
+ "version": "0.16.2",
389
+ "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz",
390
+ "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==",
391
+ "requires": {
392
+ "debug": "2.6.9",
393
+ "depd": "~1.1.2",
394
+ "destroy": "~1.0.4",
395
+ "encodeurl": "~1.0.2",
396
+ "escape-html": "~1.0.3",
397
+ "etag": "~1.8.1",
398
+ "fresh": "0.5.2",
399
+ "http-errors": "~1.6.2",
400
+ "mime": "1.4.1",
401
+ "ms": "2.0.0",
402
+ "on-finished": "~2.3.0",
403
+ "range-parser": "~1.2.0",
404
+ "statuses": "~1.4.0"
405
+ }
406
+ },
407
+ "serve-static": {
408
+ "version": "1.13.2",
409
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz",
410
+ "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
411
+ "requires": {
412
+ "encodeurl": "~1.0.2",
413
+ "escape-html": "~1.0.3",
414
+ "parseurl": "~1.3.2",
415
+ "send": "0.16.2"
416
+ }
417
+ },
418
+ "setprototypeof": {
419
+ "version": "1.1.0",
420
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
421
+ "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
422
+ },
423
+ "statuses": {
424
+ "version": "1.4.0",
425
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz",
426
+ "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew=="
427
+ },
428
+ "type-is": {
429
+ "version": "1.6.16",
430
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
431
+ "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
432
+ "requires": {
433
+ "media-typer": "0.3.0",
434
+ "mime-types": "~2.1.18"
435
+ },
436
+ "dependencies": {
437
+ "mime-db": {
438
+ "version": "1.35.0",
439
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
440
+ "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
441
+ },
442
+ "mime-types": {
443
+ "version": "2.1.19",
444
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
445
+ "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
446
+ "requires": {
447
+ "mime-db": "~1.35.0"
448
+ }
449
+ }
450
+ }
451
+ },
452
+ "unpipe": {
453
+ "version": "1.0.0",
454
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
455
+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
456
+ },
457
+ "utils-merge": {
458
+ "version": "1.0.1",
459
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
460
+ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
461
+ },
462
+ "vary": {
463
+ "version": "1.1.2",
464
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
465
+ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
466
+ },
467
+ "whatwg-fetch": {
468
+ "version": "2.0.3",
469
+ "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz",
470
+ "integrity": "sha1-nITsLc9oGH/wC8ZOEnS0QhduHIQ="
471
+ }
472
+ }
473
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@esri/arcgis-rest-demo-express",
3
+ "version": "1.13.0",
4
+ "private": true,
5
+ "description": "Demo of @esri/arcgis-rest-* packages in an Express server",
6
+ "author": "",
7
+ "license": "Apache-2.0",
8
+ "dependencies": {
9
+ "@esri/arcgis-rest-auth": "^1.13.0",
10
+ "@esri/arcgis-rest-request": "^1.13.0",
11
+ "express": "^4.16.3",
12
+ "isomorphic-fetch": "^2.2.1",
13
+ "isomorphic-form-data": "^2.0.0"
14
+ },
15
+ "scripts": {
16
+ "start": "node server.js"
17
+ }
18
+ }
@@ -0,0 +1,28 @@
1
+ require("isomorphic-fetch");
2
+ require("isomorphic-form-data");
3
+ const express = require("express");
4
+ const app = express();
5
+ const { UserSession } = require("@esri/arcgis-rest-auth");
6
+ const { clientId } = require("./config.json");
7
+
8
+ const credentials = {
9
+ clientId,
10
+ redirectUri: "http://localhost:3000/authenticate"
11
+ };
12
+
13
+ app.get("/authorize", function(req, res) {
14
+ UserSession.authorize(credentials, res);
15
+ });
16
+
17
+ app.get("/authenticate", function(req, res) {
18
+ UserSession.exchangeAuthorizationCode(
19
+ credentials,
20
+ req.query.code
21
+ ).then(session => {
22
+ res.send(session.token);
23
+ });
24
+ });
25
+
26
+ app.listen(3000, function() {
27
+ console.log("Example app listening on port 3000!");
28
+ });
@@ -0,0 +1,6 @@
1
+ # Running this demo
2
+
3
+ 1. Make sure you run `npm run bootstrap` in the root folder to setup the dependencies
4
+ 1. `npm start`
5
+ 1. Visit http://localhost:8080
6
+ 1. Enter a search term and click "Search" to see results