Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Sep 5, 2024
1 parent 6b4d32a commit 329c776
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
8 changes: 4 additions & 4 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Latest development builds from GitHub:
## Browser Usage

In the browser you typically have to create two separate pages that correspond to your
`launch_uri` (Launch Page) and `redirect_uri` (Index Page).
`launch_uri` (Launch Page) and `redirectUri` (Index Page).

### As Library

Expand All @@ -47,7 +47,7 @@ In the browser you typically have to create two separate pages that correspond t
<script src="./node_module/fhirclient/build/fhir-client.js"></script>
<script>
FHIR.oauth2.authorize({
"client_id": "my_web_app",
"clientId": "my_web_app",
"scope": "patient/*.read"
});
</script>
Expand All @@ -68,7 +68,7 @@ import FHIR from "fhirclient"

// Launch Page
FHIR.oauth2.authorize({
"client_id": "my_web_app",
"clientId": "my_web_app",
"scope": "patient/*.read"
});

Expand All @@ -88,7 +88,7 @@ const fhirClient = require("fhirclient");
// This is what the EHR will call
app.get("/launch", (req, res) => {
fhirClient(req, res).authorize({
"client_id": "my_web_app",
"clientId": "my_web_app",
"scope": "patient/*.read"
});
});
Expand Down
10 changes: 2 additions & 8 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhirclient",
"version": "2.5.4",
"version": "3.0.0-beta.1",
"description": "JavaScript client for Fast Healthcare Interoperability Resources",
"author": "SMART Health IT <[email protected]> (https://smarthealthit.org/)",
"contributors": [
Expand All @@ -19,13 +19,7 @@
"modules.root": "lib",
"types": "index.d.ts",
"dependencies": {
"abortcontroller-polyfill": "^1.5.0",
"core-js": "^3.23.4",
"cross-fetch": "^3.0.5",
"debug": "^4.1.1",
"isomorphic-webcrypto": "^2.3.8",
"jose": "^4.15.5",
"js-base64": "^3.7.2"
"jose": "^4.15.5"
},
"peerDependencies": {
"@types/hapi": ">=18",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "npm run build:library && npm run build:browser",
"build:watch": "nodemon -w src -w test -w rollup.config.mjs -e ts,js -x 'npm run build'",
"build:browser": "rollup --config",
"build:library": "cp src/types.d.ts dist/lib && tsc",
"build:library": "cp src/types.d.ts dist/lib && tsc -d",
"build:browser:watch": "rollup --config -w",
"build:library:watch": "tsc -w",
"doc": "typedoc",
Expand Down

0 comments on commit 329c776

Please sign in to comment.