Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmpHealth #2

Open
wants to merge 720 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
720 commits
Select commit Hold shift + click to select a range
9c87164
Ignore the coverage report
Feb 10, 2020
9706e0f
Increment version
Feb 10, 2020
9fec971
Ignore the coverage report
Feb 10, 2020
8ffde02
Latest build
Feb 10, 2020
09326ed
Latest docs
Feb 10, 2020
934e435
Prepare for release
Feb 10, 2020
1490145
setPath can create missing intermediate objects or arrays
vlad-ignatov Feb 23, 2020
275a85e
Returning response if status = 201
jaymaiurano Jul 23, 2020
9dd509e
Merge branch 'master' of https://github.com/smart-on-fhir/client-js i…
vlad-ignatov Sep 2, 2020
354b62c
Refresh token flow improvements #82, #83
vlad-ignatov Sep 2, 2020
3f1e42d
Bump packages
vlad-ignatov Sep 2, 2020
f08f7cb
Docs
vlad-ignatov Sep 2, 2020
bc8ea5d
Small fix
vlad-ignatov Sep 2, 2020
8ec5af0
Don't translate absolute redirectUris #85
vlad-ignatov Sep 3, 2020
d790303
Latest build
vlad-ignatov Sep 3, 2020
6787f2b
Prepare for dev release
vlad-ignatov Sep 3, 2020
e5ce034
Fix a typo
vlad-ignatov Sep 4, 2020
190bbf0
Bump version
vlad-ignatov Sep 4, 2020
224ef3d
Merge pull request #86 from jaymaiurano/master
vlad-ignatov Sep 4, 2020
5c37a6e
Added a test for #86
vlad-ignatov Sep 4, 2020
3013871
Improve 'completeInTarget' detection #89
vlad-ignatov Sep 7, 2020
8e098cc
Docs #89
vlad-ignatov Sep 7, 2020
35138e1
Clean up
vlad-ignatov Sep 7, 2020
52439b5
v2.3.4
vlad-ignatov Sep 7, 2020
d3aa152
v2.3.4
vlad-ignatov Sep 7, 2020
9cb8190
Merge branch 'master' of https://github.com/smart-on-fhir/client-js i…
vlad-ignatov Sep 7, 2020
693e5b9
Added client.getState() #80
vlad-ignatov Sep 7, 2020
718b5ee
resolveReferences improvements #77, #88
vlad-ignatov Sep 7, 2020
9c90231
v2.3.6 (dev)
vlad-ignatov Sep 7, 2020
15481fb
Try setting the title in docs
vlad-ignatov Sep 7, 2020
24d525a
Docs test
vlad-ignatov Sep 7, 2020
471d7ab
Customize docs titles
vlad-ignatov Sep 7, 2020
5e937e1
Follow location header after create
vlad-ignatov Sep 18, 2020
a7e4018
Latest build
vlad-ignatov Sep 18, 2020
9345b98
Bump version
vlad-ignatov Sep 18, 2020
632595d
Check access token exp before request #97
vlad-ignatov Sep 23, 2020
d51863b
Clean up to reduce size
vlad-ignatov Sep 23, 2020
40d077c
docs
vlad-ignatov Sep 23, 2020
82dc527
Latest build
vlad-ignatov Sep 23, 2020
8b5884a
Support references in arrays #73
vlad-ignatov Sep 24, 2020
89a5c6f
Refresh token flow improvements #97
vlad-ignatov Sep 24, 2020
b834a8d
Clean up
vlad-ignatov Sep 25, 2020
1dddd29
Fix auto-refresh flow #97
vlad-ignatov Sep 25, 2020
105543b
Docs
vlad-ignatov Sep 25, 2020
daed190
Prepare for release
vlad-ignatov Sep 25, 2020
b7e6cdc
Add body property to HttpError #100
vlad-ignatov Oct 8, 2020
8638e68
Update types for HttpError constructor #100
vlad-ignatov Oct 8, 2020
04a3ac1
Clean up
vlad-ignatov Oct 9, 2020
ce794fb
Fixes for non-jwt access tokens #101
vlad-ignatov Oct 9, 2020
e1d61bc
Latet build
vlad-ignatov Oct 9, 2020
3f707f8
Prepare for release
vlad-ignatov Oct 12, 2020
cff37b5
Bump version
vlad-ignatov Oct 12, 2020
fbfa548
Docs
vlad-ignatov Nov 24, 2020
d52e956
New docs
vlad-ignatov Nov 24, 2020
4c64487
docs
vlad-ignatov Nov 24, 2020
4fb1f40
Add example link to docs #106
vlad-ignatov Dec 28, 2020
28cbfad
Added the includeResponse option
vlad-ignatov Feb 9, 2021
6441a07
Regenerated docs
vlad-ignatov Feb 9, 2021
ce7fde1
Client.request rejects with HTTPError #113
vlad-ignatov Feb 9, 2021
edf3d7d
Docs
vlad-ignatov Feb 10, 2021
9ad4ed6
Docs
vlad-ignatov Feb 10, 2021
2bff278
changelog
vlad-ignatov Feb 10, 2021
befd92f
Minor edit to issMatch parameter description (#114)
djake Feb 10, 2021
0e7629c
Minor edits to open_servers.md
djake Feb 10, 2021
7e9187e
Add SMART link to open_servers.md
djake Feb 10, 2021
eab6cc3
Minor changes to the http error messages
vlad-ignatov Feb 10, 2021
6894a03
Changed the HttpError interface
vlad-ignatov Feb 10, 2021
3ecf593
Support multi-config mode for EHR launches
vlad-ignatov Feb 10, 2021
14ea730
Increment version
vlad-ignatov Feb 10, 2021
dfb95c5
Merge branch 'master' of https://github.com/smart-on-fhir/client-js
vlad-ignatov Feb 10, 2021
e7a84de
Regenerate docs
vlad-ignatov Feb 10, 2021
150943e
Latest build
vlad-ignatov Feb 10, 2021
5da689d
Small change in docs
vlad-ignatov Feb 10, 2021
1dffa6a
Added new example link
vlad-ignatov Feb 10, 2021
de1dc20
prioritize reading the fhirUser from fhirUser attribute in the id token
timothyakampa May 11, 2021
108c3a3
Fix for #118
vlad-ignatov Jun 1, 2021
2324498
Add a noRedirect authorization parameter.
Apr 9, 2021
d44a46e
Merge pull request #122 from dwwinters/no-redirect
vlad-ignatov Jun 3, 2021
e88c6f5
Merge pull request #127 from timothyakampa/use-fhirUser-attribute-in-…
vlad-ignatov Jun 3, 2021
5848662
Fixed invalid syntax in tests
vlad-ignatov Jun 10, 2021
ecbc5e8
Fix for #105
vlad-ignatov Jun 10, 2021
8d05653
Small improvement for docs styling
vlad-ignatov Jun 10, 2021
bbe9d73
Small improvements in the docs
vlad-ignatov Jun 10, 2021
8c43a75
Improved type definitions
vlad-ignatov Jun 10, 2021
2d24dbb
Added assert library function
vlad-ignatov Jun 10, 2021
c4c8408
Added patch method to the Client #129
vlad-ignatov Jun 10, 2021
5ef8692
Corrected documentation for patch #129
vlad-ignatov Jun 10, 2021
e4de978
Clan up
vlad-ignatov Jun 10, 2021
192132e
Improved patch docs #129
vlad-ignatov Jun 10, 2021
14dff31
More tests fir id tokens
vlad-ignatov Jun 10, 2021
776bd10
Update hapi/lab to work with latest node
vlad-ignatov Jun 10, 2021
c425f28
npm audit fix
vlad-ignatov Jun 10, 2021
f7af71c
Use asserts to simplify code
vlad-ignatov Jun 10, 2021
a3d3dad
Latest build
vlad-ignatov Jun 10, 2021
aae8b72
Prepare for release
vlad-ignatov Jun 10, 2021
6daa7a5
Latest build
vlad-ignatov Jun 10, 2021
9abf0f9
Minimal client changes to support PKCE.
GinoCanessa Aug 30, 2021
18e5507
Added node-jose.
GinoCanessa Sep 2, 2021
b27d1e7
Improvements to pkce operation mode.
GinoCanessa Sep 8, 2021
574fc06
Use node-jose to create client assertions for authn
jmandel Sep 8, 2021
6302934
Await then return pkce code
jmandel Sep 9, 2021
c126651
Merge pull request #2 from microsoft-healthcare-madison/client-assert…
jmandel Sep 9, 2021
e0e8619
Merge pull request #1 from microsoft-healthcare-madison/pkce-gino
jmandel Sep 9, 2021
2fa156c
Prioritize well-known discovery; fall back to metadata
jmandel Sep 10, 2021
9232fa3
Build
jmandel Sep 14, 2021
875b5cb
JWS without deps
jmandel Sep 15, 2021
2fb3bc0
SubtleCrypto for PKCE and JWS
jmandel Sep 15, 2021
07d7cf9
Package security functions into module
jmandel Sep 15, 2021
ddb0e8b
Fix encoding on PKCE challenge
jmandel Sep 16, 2021
68ddd4c
Build
jmandel Sep 16, 2021
5600f99
Fix logic for node-jose inclusion
jmandel Jan 10, 2022
13aec1c
Add with-jose files
jmandel Mar 29, 2022
2326778
Merge branch 'microsoft-healthcare-madison-with-jose' into v3
vlad-ignatov Jul 12, 2022
c22b5c7
getTimeInFuture@from defaults to the time of calling
vlad-ignatov Jul 12, 2022
ba86e35
Fix a typo
vlad-ignatov Jul 12, 2022
adf7c59
Remove the no longer used "any" function
vlad-ignatov Jul 12, 2022
aac362d
Clean up
vlad-ignatov Jul 12, 2022
c2a33de
Gitignore DS_Store files
vlad-ignatov Jul 12, 2022
4c25b6c
Clean up tests code
vlad-ignatov Jul 12, 2022
1ec0435
Clean up
vlad-ignatov Jul 12, 2022
6af807a
Small fixes
vlad-ignatov Jul 18, 2022
8af9f47
Update tools
vlad-ignatov Jul 18, 2022
e556181
Whitespace only
vlad-ignatov Jul 18, 2022
4cf47b7
Separate security for server and browser
vlad-ignatov Jul 18, 2022
bcd4d9a
Add browser security manual test
vlad-ignatov Jul 19, 2022
804860d
Fix entry points
vlad-ignatov Jul 19, 2022
489eecd
Small fixes
vlad-ignatov Jul 19, 2022
85f8e56
Build
vlad-ignatov Jul 19, 2022
a6ba7b4
Try to fix ci
vlad-ignatov Jul 19, 2022
f8a396a
Update CI
vlad-ignatov Jul 19, 2022
d609c18
Try GitHub workflow
vlad-ignatov Jul 19, 2022
432bfd8
Use --legacy-peer-deps for ci
vlad-ignatov Jul 19, 2022
b8fd9dd
Small fix
vlad-ignatov Jul 19, 2022
2f155a1
Require node >= 14
vlad-ignatov Jul 19, 2022
f3a3c85
White space
vlad-ignatov Jul 21, 2022
3ad1d83
Manually apply https://github.com/microsoft-healthcare-madison/client…
vlad-ignatov Jul 21, 2022
aa5b163
#153
vlad-ignatov Jul 21, 2022
adf2c8e
experiment with e2e tests
vlad-ignatov Jul 21, 2022
e8fb7f7
Build
vlad-ignatov Jul 21, 2022
8bf68a5
equalize signCompactJws signature for browser and server
vlad-ignatov Jul 29, 2022
1cf88b9
Add clean task and build
vlad-ignatov Jul 29, 2022
ad54013
Simplify PKCE behavior flow
vlad-ignatov Aug 4, 2022
0a7f577
Store clientPublicKeySetUrl in state
vlad-ignatov Aug 4, 2022
6201abf
Improve signCompactJws
vlad-ignatov Aug 4, 2022
1bbe18b
authorize also accepts CryptoKey instance for clientPrivateJwk
vlad-ignatov Aug 4, 2022
fca9c13
Add nightwatch for e2e tests
vlad-ignatov Aug 4, 2022
76f605d
Remove wdio
vlad-ignatov Aug 4, 2022
0852b05
Build
vlad-ignatov Aug 4, 2022
b8cf060
Remove IE10 support
vlad-ignatov Aug 5, 2022
09b9694
Add @types/mocha
vlad-ignatov Aug 5, 2022
342eacb
Clean up
vlad-ignatov Aug 5, 2022
59e0925
Asymmetric auth with CryptoKey #154
vlad-ignatov Aug 5, 2022
15b3ee6
Disable tests on Node 14
vlad-ignatov Aug 5, 2022
546a62c
Fix assertions
vlad-ignatov Aug 5, 2022
5733fee
Fix tests
vlad-ignatov Aug 5, 2022
7cbac61
Re-enable node 14 tests
vlad-ignatov Aug 5, 2022
8370bbc
Fix tests
vlad-ignatov Aug 6, 2022
e1fbde7
equalize security APIs
vlad-ignatov Aug 6, 2022
be5d12b
Fix tests
vlad-ignatov Aug 7, 2022
3c147d3
Fix tests
vlad-ignatov Aug 7, 2022
dd9dc26
Try nightwatch on GitHub
vlad-ignatov Aug 7, 2022
8f0bfe3
Fix nightwatch
vlad-ignatov Aug 7, 2022
5d08e06
Serve files for e2e tests
vlad-ignatov Aug 8, 2022
cac894c
debug...
vlad-ignatov Aug 8, 2022
3c47f4b
debug
vlad-ignatov Aug 8, 2022
febdf9c
debug
vlad-ignatov Aug 8, 2022
a1602bc
debug
vlad-ignatov Aug 8, 2022
1934e1e
debug
vlad-ignatov Aug 8, 2022
21d2ba1
debug
vlad-ignatov Aug 8, 2022
e6e5511
debug
vlad-ignatov Aug 8, 2022
fbcb589
debug
vlad-ignatov Aug 8, 2022
b092ae3
debug
vlad-ignatov Aug 8, 2022
5af75f5
debug
vlad-ignatov Aug 8, 2022
7907cf8
debug
vlad-ignatov Aug 8, 2022
7ef2cf5
Remove launch.html from gitignore
vlad-ignatov Aug 8, 2022
3c4b996
Build
vlad-ignatov Aug 8, 2022
cf583e6
Various improvements #147, #154
vlad-ignatov Aug 8, 2022
d0b0d85
Clean up github tasks
vlad-ignatov Aug 8, 2022
a7c9702
Remove unused dependences
vlad-ignatov Aug 9, 2022
6e5fb6e
Bump version
vlad-ignatov Aug 9, 2022
7660edd
Downgrade to TS 4.6 to avoid conflicts
vlad-ignatov Aug 9, 2022
36676b1
Target Node 14
vlad-ignatov Aug 10, 2022
ba44d02
Trying new coveralls setup
vlad-ignatov Aug 10, 2022
ae0a99d
Update coverage config
vlad-ignatov Aug 10, 2022
45bfca5
Try different transform for coverage
vlad-ignatov Aug 10, 2022
de065cb
Try using nyc for coverage
vlad-ignatov Aug 10, 2022
a9aba7b
Clean up
vlad-ignatov Aug 10, 2022
5859a46
Update typeDoc
vlad-ignatov Aug 10, 2022
2c12f1b
Build
vlad-ignatov Aug 10, 2022
443098f
Docs and Changelog
vlad-ignatov Aug 10, 2022
f444bab
Docs fix
vlad-ignatov Aug 10, 2022
acbefc8
docs
vlad-ignatov Aug 10, 2022
e8a976f
Update badges
vlad-ignatov Aug 10, 2022
d2dc720
Clean up
vlad-ignatov Aug 10, 2022
36dc439
Fix broken links #148
vlad-ignatov Aug 11, 2022
16456f1
Add missing chai dev dependency
Aug 11, 2022
960c2b3
Run e2e tests on random ports
vlad-ignatov Aug 17, 2022
400e68f
Change architecture to avoid build issues #156
vlad-ignatov Aug 17, 2022
0861c6f
Bump version and build
vlad-ignatov Aug 17, 2022
afab420
Fix crypto imports #156
vlad-ignatov Aug 17, 2022
5d3ab96
Changelog and build
vlad-ignatov Aug 18, 2022
0d21d18
Fix base64url encoding for PKCE #158
vlad-ignatov Sep 1, 2022
5c9402a
Removed console warning. See https://github.com/smart-on-fhir/client-…
vlad-ignatov Sep 1, 2022
28c4246
Simplified the code and removed IE support for new SMART V2 features …
vlad-ignatov Sep 1, 2022
8f64b77
Prepare for release
vlad-ignatov Sep 1, 2022
7e833f3
Support includeResponse for FHIR update operations
cfeltner Jan 30, 2023
8aa2195
initial commit - create nvmrc, and install
Dtphelan1 Feb 6, 2024
b89d124
Update issue templates
Dtphelan1 Feb 6, 2024
b35ad68
Update bug_report.md
Dtphelan1 Feb 6, 2024
dbb038b
Merge pull request #177 from smart-on-fhir/dtp/github-issue-templates
Dtphelan1 Feb 6, 2024
2a3c863
closes #159
Dtphelan1 Feb 6, 2024
a2866de
closes #130, closes #150, closes #151
Dtphelan1 Feb 6, 2024
bb742cd
makes changes to open_servers documentation
Dtphelan1 Feb 7, 2024
c02f286
push new build
Dtphelan1 Feb 7, 2024
aca2ab7
Merge pull request #178 from smart-on-fhir/dtp/clientid-patientid-url…
Dtphelan1 Feb 7, 2024
6939f45
2.5.3
Dtphelan1 Feb 7, 2024
1946445
updated changelog and package.json in dist
Dtphelan1 Feb 7, 2024
c71863e
typo fix
Dtphelan1 Feb 7, 2024
57d3d3b
Bumps libraries to address CVEs
cmiles74 Jul 23, 2024
eb87dd9
Fix broken test
cmiles74 Jul 23, 2024
f770b85
#186
vlad-ignatov Aug 23, 2024
bd3d3ca
Merge branch 'cf-includeResponseOnUpdate' of https://github.com/t-sys…
vlad-ignatov Aug 23, 2024
f4134c8
Merge branch 't-system-cf-includeResponseOnUpdate'
vlad-ignatov Aug 23, 2024
663a888
More tests #162
vlad-ignatov Aug 23, 2024
79df74a
Merge pull request #185 from cmiles74/master
vlad-ignatov Aug 23, 2024
328d580
Fix tests for #185
vlad-ignatov Aug 23, 2024
fb1de33
Updated lockfile
vlad-ignatov Aug 23, 2024
50250b9
Update browser.yml
vlad-ignatov Aug 23, 2024
5f86b57
Update browser.yml
vlad-ignatov Aug 23, 2024
a5f0288
Updated package-lock
vlad-ignatov Aug 23, 2024
84fb771
Merge branch 'master' of https://github.com/smart-on-fhir/client-js
vlad-ignatov Aug 23, 2024
cca231b
Trying to fix the build
vlad-ignatov Aug 23, 2024
dd33a70
Update e2e tests
vlad-ignatov Aug 23, 2024
0d7ae0b
Increment node version
vlad-ignatov Aug 23, 2024
d8c4738
Use native crypto in node versions that have it
vlad-ignatov Aug 23, 2024
54cf54a
Remove tslint
vlad-ignatov Aug 26, 2024
ef6e869
Update dev dependencies
vlad-ignatov Aug 26, 2024
3b7cf89
Downgrade to chai@4
vlad-ignatov Aug 26, 2024
795ae9c
Revert to older chai-as-promised version
vlad-ignatov Aug 26, 2024
8b6d825
Error message regarding insecure context #183
vlad-ignatov Aug 26, 2024
6c63e0d
Improved isSecureContext message #183
vlad-ignatov Aug 26, 2024
2a1c320
Fix e2e tests #183
vlad-ignatov Aug 26, 2024
1b69f06
Passing headers to resolve refs requests #184
vlad-ignatov Aug 27, 2024
a4e4800
Fix type defs
vlad-ignatov Aug 27, 2024
ef6f31d
Deleted changelog.md - closes #180
vlad-ignatov Aug 27, 2024
fe70afe
Fix a typo
vlad-ignatov Aug 27, 2024
23b443d
Latest build
vlad-ignatov Aug 27, 2024
a03a40b
Bump version
vlad-ignatov Aug 27, 2024
870fdcf
Updated docs
vlad-ignatov Aug 27, 2024
2f190ff
Latest build
vlad-ignatov Aug 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
.eslintrc
.nyc_output
.vscode
coverage
build
dist
lib
example
trash
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior. A few things to consider including:
- Is the server an open server or closed?
- What requests are you making, or what methods aren't working as expected.
- What launch sequence are you using?

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Client-side (please complete the following information):**
- OS: [e.g. Windows, OS, iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- Front-end Framework(s) [e.g. React, jQuery]

**Server-side (please complete the following information):**
- Node version: [e.g. v21.6.0]
- OS: [e.g. OS, Unix]
- Framework [e.g. Express, HAPI, none]
- Framework Version [e.g. 22]

**Additional context**
Add any other context about the problem here. If you have links to any deployed tools or webpages, they would be good to include.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
32 changes: 32 additions & 0 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

name: Browser Tests

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
branches: [ "*" ]

jobs:
build:

runs-on: ubuntu-20.04

steps:

- uses: actions/checkout@v3

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- run: npm ci --legacy-peer-deps

- run: npm run build --if-present

- run: npm run nightwatch

41 changes: 41 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: NodeJS Tests

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
branches: [ "*" ]

jobs:
build:

runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [ 18.x, 20.x ]

steps:

- uses: actions/checkout@v3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci --legacy-peer-deps

- run: npm run build --if-present

- run: npm test

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
.#*
*.swp
node_modules
.vscode
# test.html
trash
post-launch/index.html
.DS_Store
coverage
.nyc_output
tests_output
115 changes: 115 additions & 0 deletions .labrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
module.exports = {

// coverage ----------------------------------------------------------------

// enable code coverage analysis (-c, --coverage)
// coverage: false,

// set code coverage path (--coverage-path)
// coveragePath: "dist",

// set code coverage excludes (--coverage-exclude)
// coverageExclude: "lib/**.*",

// include all files in coveragePath in report (--coverage-all)
// coverageAll: true,

// --coverage-flat prevent recursive inclusion of all files in coveragePath in report
// coverageFlat: false,

// --coverage-module enable coverage on external module
// coverageModule: true,

// --coverage-pattern file pattern to use for locating files for coverage
// coveragePattern: "src/**.*",

// sourcemaps --------------------------------------------------------------

// enable support for sourcemaps (-S, --sourcemaps)
sourcemaps: true,

// transform ---------------------------------------------------------------
// javascript file that exports an array of objects ie.
// [ { ext: ".js", transform: function (content, filename) { ... } } ]
// (-T, --transform)
// transform: "node_modules/lab-transform-typescript",

// reporters ---------------------------------------------------------------
// reporter type [console, html, json, tap, lcov, clover, junit]
// Note that the order of entries corresponds to the `output` below
// (-r, --reporter)
reporter: ["console"],

// output ------------------------------------------------------------------
// file path to write test results
// Note that the order of entries corresponds to the `reporter` above
// (-o, --output)
// output: ["stdout"],

// Other -------------------------------------------------------------------
// ignore a list of globals for the leak detection (comma separated)
// (-I, --globals)
globals: "crypto,__coverage__", // "__core-js_shared__",

// --bail exit the process with a non zero exit code on the first test failure
bail: false,

// -p, --default-plan-threshold minimum plan threshold to apply to all tests that don't define any plan
defaultPlanThreshold: 90,

// -e, --environment value to set NODE_ENV before tests
environment: "test",

// -f, --flat prevent recursive collection of tests within the provided path
flat: false,

// -l, --leaks disable global variable leaks detection
leaks: true,

// --shuffle shuffle script execution order
shuffle: false,

// -s, --silence silence test output
silence: false,

// -k, --silent-skips don’t output skipped tests
silentSkips: false,

// -t, --threshold code coverage threshold percentage
// threshold: 90,

// -m, --timeout timeout for each test in milliseconds
timeout: 5000,

// -M, --context-timeout timeout for before, after, beforeEach, afterEach in milliseconds
contextTimeout: 1000,

// -Y, --types test types definitions
types: false,
// --types-test location of types definitions test file

// -v, --verbose verbose test output
verbose: true,

// -V, --version version information
// -h, --help display usage options
// -a, --assert specify an assertion library module path to require and
// make available under Lab.assertions
// -C, --colors enable color output (defaults to terminal capabilities)
// -d, --dry skip all tests (dry run)
// --inspect starts lab with the node.js native debugger
// --seed use this seed to randomize the order with `--shuffle`.
// This is useful to debug order dependent test failures
// -L, --lint enable linting
lint: false,
// -n, --linter linter path to use
// --lint-fix apply any fixes from the linter.
// --lint-options specify options to pass to linting program. It must be a
// string that is JSON.parse(able).
// --lint-errors-threshold linter errors threshold in absolute value
// --lint-warnings-threshold linter warnings threshold in absolute value
// -P, --pattern file pattern to use for locating tests
// -g, --grep only run tests matching the given pattern which is
// internally compiled to a RegExp
// -i, --id test identifier
};
19 changes: 19 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.log
*.pyc
*.tmproj
*~
.project
*#
.#*
*.swp
node_modules
.vscode
old
trash
test
docs
.babelrc
.eslintignore
.eslintrc.js
.labrc.js
webpack.config.js
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
39 changes: 0 additions & 39 deletions Gruntfile.js

This file was deleted.

13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2015 Boston Children's Hospital

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
SMART on FHIR JavaScript Library
================================

This is a JavaScript library for connecting SMART apps to Fhir servers.
It works both in browsers (including IE11+) and on the server (NodeJS).

## Installation

Install from npm:
```sh
npm i fhirclient
```

<br/>

## Documentation
The documentation for the upcoming release is available at [http://docs.smarthealthit.org/client-js/](http://docs.smarthealthit.org/client-js/).

Check out [what's new in v2](http://docs.smarthealthit.org/client-js/v2.html)!


<br/>

## Contributing and Development

### NPM Scripts

After you `cd` into to the project folder and run `npm i`, you can use npm scripts to handle any project-related task:

```sh
# run tests
npm test

# Build everything
npm run build

# Build all bundles (browser packages in dist/build)
npm run pack

# Build the CommonJS modules (for Node and bundlers)
npm run build:module
```

## License
Apache 2.0


Loading