axiam-sdk 1.1.2 → 1.2.2
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.
- package/README.md +73 -3
- package/dist/amqp/index.js.map +1 -1
- package/dist/amqp/index.mjs.map +1 -1
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/{client-BGFn1VQh.d.cts → client-Bp7riC4k.d.cts} +147 -3
- package/dist/{client-DrQZZ1js.d.ts → client-CaurIxje.d.ts} +147 -3
- package/dist/{cookieJar-BTmpjXZe.d.ts → cookieJar-DC4GLKrJ.d.ts} +2 -2
- package/dist/{cookieJar-BqYOnNN-.d.cts → cookieJar-oKazfbN1.d.cts} +2 -2
- package/dist/{errors-DZ3k8a8i.d.cts → errors-CWlh-wcm.d.cts} +7 -1
- package/dist/{errors-DZ3k8a8i.d.ts → errors-CWlh-wcm.d.ts} +7 -1
- package/dist/{errors-dlGXAsbh.d.ts → errors-DDo3oxcH.d.ts} +1 -1
- package/dist/{errors-RvGlTyUj.d.cts → errors-DHauOsqx.d.cts} +1 -1
- package/dist/grpc/index.d.cts +4 -4
- package/dist/grpc/index.d.ts +4 -4
- package/dist/grpc/index.js +26 -5
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +26 -5
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +26 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -5
- package/dist/index.mjs.map +1 -1
- package/dist/middleware/index.d.cts +5 -5
- package/dist/middleware/index.d.ts +5 -5
- package/dist/middleware/index.js +164 -12
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +164 -12
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/nestjs/index.js.map +1 -1
- package/dist/nestjs/index.mjs.map +1 -1
- package/dist/node/index.d.cts +15 -4
- package/dist/node/index.d.ts +15 -4
- package/dist/node/index.js +186 -14
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +185 -15
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-C3VLn3eD.d.ts → oidcState-CZhj0MBP.d.ts} +123 -5
- package/dist/{oidcState-BaJ-SM_R.d.cts → oidcState-EnEJmoF5.d.cts} +123 -5
- package/dist/rest/index.d.cts +6 -6
- package/dist/rest/index.d.ts +6 -6
- package/dist/rest/index.js +26 -5
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +26 -5
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{session-B03NsqVs.d.ts → session-Beo11VT_.d.ts} +9 -0
- package/dist/{session-plDr4lFu.d.cts → session-CeIUXgpE.d.cts} +9 -0
- package/package.json +18 -18
|
@@ -479,6 +479,15 @@ declare class SharedSession {
|
|
|
479
479
|
* The fetch adapter derives its `credentials` from `withCredentials: false`
|
|
480
480
|
* (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
|
|
481
481
|
* read it.
|
|
482
|
+
*
|
|
483
|
+
* `fetchOptions.redirect: 'error'` is the browser persona's half of CONTRACT.md §12.1
|
|
484
|
+
* rule 3 ("No redirect is followed", C165-26). On the main client's `/oauth2/*` requests
|
|
485
|
+
* it makes `fetch` reject, which every caller maps to a `NetworkError` that carries
|
|
486
|
+
* neither the `Location` nor the request. Where `maxRedirects: 0` is set (the bare
|
|
487
|
+
* transport, `bareRequest`), axios's fetch adapter substitutes `redirect: 'manual'`
|
|
488
|
+
* (`lib/adapters/fetch.js`), so `'error'` is overridden there: the browser hands back an
|
|
489
|
+
* opaque-redirect (status 0), and `bareRequest` maps status 0 or any `3xx` to a
|
|
490
|
+
* `NetworkError` without the `Location` (`bareTransport.ts`).
|
|
482
491
|
* `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
|
|
483
492
|
* agent pair is what keeps the cookies off there, and the fetch adapter
|
|
484
493
|
* would bypass that pair.
|
|
@@ -479,6 +479,15 @@ declare class SharedSession {
|
|
|
479
479
|
* The fetch adapter derives its `credentials` from `withCredentials: false`
|
|
480
480
|
* (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
|
|
481
481
|
* read it.
|
|
482
|
+
*
|
|
483
|
+
* `fetchOptions.redirect: 'error'` is the browser persona's half of CONTRACT.md §12.1
|
|
484
|
+
* rule 3 ("No redirect is followed", C165-26). On the main client's `/oauth2/*` requests
|
|
485
|
+
* it makes `fetch` reject, which every caller maps to a `NetworkError` that carries
|
|
486
|
+
* neither the `Location` nor the request. Where `maxRedirects: 0` is set (the bare
|
|
487
|
+
* transport, `bareRequest`), axios's fetch adapter substitutes `redirect: 'manual'`
|
|
488
|
+
* (`lib/adapters/fetch.js`), so `'error'` is overridden there: the browser hands back an
|
|
489
|
+
* opaque-redirect (status 0), and `bareRequest` maps status 0 or any `3xx` to a
|
|
490
|
+
* `NetworkError` without the `Location` (`bareTransport.ts`).
|
|
482
491
|
* `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
|
|
483
492
|
* agent pair is what keeps the cookies off there, and the fetch adapter
|
|
484
493
|
* would bypass that pair.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiam-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"gen-management:check": "node scripts/gen-management.mjs --check"
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@grpc/grpc-js": "^1.14.
|
|
131
|
-
"amqplib": "^2.0
|
|
132
|
-
"axios": "^1.
|
|
130
|
+
"@grpc/grpc-js": "^1.14.6",
|
|
131
|
+
"amqplib": "^2.2.0",
|
|
132
|
+
"axios": "^1.21.0",
|
|
133
133
|
"hash-wasm": "^4.12.0",
|
|
134
134
|
"http-cookie-agent": "^8.0.0",
|
|
135
|
-
"jose": "^6.2.
|
|
135
|
+
"jose": "^6.2.13",
|
|
136
136
|
"tough-cookie": "^6.0.2"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
@@ -160,29 +160,29 @@
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"overrides": {
|
|
163
|
-
"esbuild": "^0.28.
|
|
163
|
+
"esbuild": "^0.28.2",
|
|
164
164
|
"@vitest/mocker": {
|
|
165
165
|
"msw": "$msw"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
"devDependencies": {
|
|
169
|
-
"@nestjs/common": "^12.
|
|
170
|
-
"@nestjs/core": "^12.
|
|
169
|
+
"@nestjs/common": "^12.3.2",
|
|
170
|
+
"@nestjs/core": "^12.3.2",
|
|
171
171
|
"@types/amqplib": "^0.10.8",
|
|
172
172
|
"@types/express": "^5.0.6",
|
|
173
|
-
"@types/node": "^26.
|
|
174
|
-
"@vitest/coverage-v8": "^5.0.
|
|
175
|
-
"esbuild": "^0.28.
|
|
176
|
-
"express": "^5.
|
|
177
|
-
"fastify": "^5.
|
|
178
|
-
"jsdom": "^30.
|
|
179
|
-
"msw": "^3.0.
|
|
173
|
+
"@types/node": "^26.6.5",
|
|
174
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
175
|
+
"esbuild": "^0.28.2",
|
|
176
|
+
"express": "^5.3.0",
|
|
177
|
+
"fastify": "^5.12.7",
|
|
178
|
+
"jsdom": "^30.1.3",
|
|
179
|
+
"msw": "^3.0.3",
|
|
180
180
|
"reflect-metadata": "^0.2.2",
|
|
181
181
|
"rxjs": "^7.8.2",
|
|
182
|
-
"ts-proto": "^2.
|
|
182
|
+
"ts-proto": "^2.18.3",
|
|
183
183
|
"tsup": "^9.0.0",
|
|
184
184
|
"typedoc": "^0.28.20",
|
|
185
|
-
"typescript": "~
|
|
186
|
-
"vitest": "^5.0.
|
|
185
|
+
"typescript": "~6.0.3",
|
|
186
|
+
"vitest": "^5.0.5"
|
|
187
187
|
}
|
|
188
188
|
}
|