Skip to content

Commit

Permalink
fix: migrate to esm.run (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherylgiovanni authored Sep 12, 2024
1 parent 365ecf2 commit 2323340
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demos/deno/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ArcGIS REST JS + Deno

ArcGIS REST JS is fully compatible with Deno. You can import the packages from the [Skypack CDN](https://www.skypack.dev/search?q=%40esri%2Farcgis-rest-&p=1) for the easiest use. This demo shows importing from a local install with an import map.
ArcGIS REST JS is fully compatible with Deno. You can import the packages from the [esm.run CDN](https://www.jsdelivr.com/esm) for the easiest use. This demo shows importing from a local install with an import map.

You can run this demo with:

Expand Down
4 changes: 2 additions & 2 deletions demos/express-oauth-advanced/pages/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ <h1>The App!</h1>
</calcite-modal>

<script type="module">
import { ArcGISIdentityManager } from 'https://cdn.skypack.dev/@esri/arcgis-rest-request@^4.0.0';
import { searchItems, SearchQueryBuilder } from 'https://cdn.skypack.dev/@esri/arcgis-rest-portal@^4.0.0';
import { ArcGISIdentityManager } from 'https://esm.run/@esri/arcgis-rest-request@^4.0.0';
import { searchItems, SearchQueryBuilder } from 'https://esm.run/@esri/arcgis-rest-portal@^4.0.0';

// We need to customize the behavior of how ArcGISIdentityManager handles refreshing.
class ManagerWithCustomRefresh extends ArcGISIdentityManager {
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"precommit": "lint-staged",
"docs:build": "rimraf docs/build && unzip -d docs/build docs/v3-archive.zip && npm run typedoc",
"lint": "eslint ./packages --ext .ts",
"skypack-check": "npm exec -w ./packages package-check",
"srihash": "node scripts/generate-sri-hashes.js",
"test": "npm run lint && npm run test:compile && npm run test:node && npm run test:chrome",
"test:compile": "npm run build:esm",
Expand Down Expand Up @@ -71,7 +70,6 @@
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^8.0.0",
"@skypack/package-check": "^0.2.2",
"@types/fetch-mock": "^7.3.5",
"@types/jasmine": "^2.8.2",
"@types/node": "^12.20.4",
Expand Down

0 comments on commit 2323340

Please sign in to comment.