@biblioteksentralen/bmdb-search 0.0.0-beta.34 → 0.0.0-beta.36

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 +3 -2
  2. package/package.json +11 -1
package/README.md CHANGED
@@ -84,8 +84,8 @@ export async function GET() {
84
84
  ### Connecting to pre-production environments (dev/test/staging)
85
85
 
86
86
  When connecting to pre-production environments, the OAuth 2.0 Authorization Server Token URL must be
87
- be specified manually through the `tokenUrl` parameter. Example for connecting to the test/staging
88
- environment:
87
+ be specified manually through the `tokenUrl` parameter, and the audience must be specified through the
88
+ `audience` parameter. Example for connecting to the test/staging environment:
89
89
 
90
90
  ```typescript
91
91
  const bmdbSearchClient = createBmdbFetchClient({
@@ -94,6 +94,7 @@ const bmdbSearchClient = createBmdbFetchClient({
94
94
  clientId: process.env.BMDB_CORDATA_API_CLIENT_ID,
95
95
  clientSecret: process.env.BMDB_CORDATA_API_CLIENT_SECRET,
96
96
  tokenUrl: "https://biblioteksentralen-uat.eu.kinde.com/oauth2/token",
97
+ audience: " https://search-staging.bmdb.no/cordata/",
97
98
  }),
98
99
  });
99
100
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biblioteksentralen/bmdb-search",
3
- "version": "0.0.0-beta.34",
3
+ "version": "0.0.0-beta.36",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Client for searching Bibliotekenes metadatabrønn (BMDB)",
@@ -39,6 +39,16 @@
39
39
  }
40
40
  }
41
41
  },
42
+ "typesVersions": {
43
+ "*": {
44
+ "server": [
45
+ "dist/server/index.d.ts"
46
+ ],
47
+ "v1": [
48
+ "dist/v1/index.d.ts"
49
+ ]
50
+ }
51
+ },
42
52
  "files": [
43
53
  "README.md",
44
54
  "CHANGELOG.md",