simcapture-sdk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,15 +1,8 @@
1
1
  # simcapture-sdk
2
2
 
3
- SimCapture API client shared across the UPCH Simulation Center microservices
4
- and frontends. Replaces the per-service hand-rolled `axios` + login code that was
5
- duplicated across SIMCAPTURE-MS, REPORT-MS, ENGINEERING-MS and the frontend.
6
-
7
- Published to GitHub Packages under the `@upch` scope. Add an `.npmrc`:
8
-
9
- ```
10
- @upch:registry=https://npm.pkg.github.com
11
- //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
12
- ```
3
+ SimCapture API client. A typed wrapper over the SimCapture REST API that handles
4
+ authentication, token caching, and `401` retry so consumers don't hand-roll
5
+ `axios` + login code per service.
13
6
 
14
7
  ```bash
15
8
  npm install simcapture-sdk
@@ -26,7 +19,7 @@ const sc = new SimCaptureClient({
26
19
  credentials: {
27
20
  username: process.env.SIMCAPTURE_USER!,
28
21
  password: process.env.SIMCAPTURE_PASSWORD!,
29
- // clientSubdomain defaults to "simulacion-upch"
22
+ clientSubdomain: process.env.SIMCAPTURE_SUBDOMAIN!,
30
23
  },
31
24
  });
32
25
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "simcapture-sdk",
3
- "version": "0.1.0",
4
- "description": "SimCapture API client shared across UPCH microservices.",
3
+ "version": "0.1.1",
4
+ "description": "Typed SimCapture API client with auth, token caching, and 401 retry.",
5
5
  "license": "MIT",
6
6
  "author": "georgegiosue",
7
7
  "repository": {