@asgardeo/browser 0.2.10 → 0.4.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.
- package/dist/__legacy__/client.d.ts +91 -4
- package/dist/__legacy__/http-client/clients/axios-http-client.d.ts +15 -6
- package/dist/__legacy__/http-client/models/http-client.d.ts +1 -1
- package/dist/__legacy__/worker/worker-core.d.ts +1 -1
- package/dist/cjs/index.js +192 -72
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +192 -72
- package/dist/index.js.map +2 -2
- package/dist/utils/http.d.ts +25 -4
- package/package.json +4 -4
package/dist/utils/http.d.ts
CHANGED
|
@@ -17,13 +17,34 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { AsgardeoSPAClient } from '../__legacy__/client';
|
|
19
19
|
/**
|
|
20
|
-
* HTTP utility for making requests using
|
|
20
|
+
* Creates an HTTP utility for making requests using a specific AsgardeoSPAClient instance.
|
|
21
|
+
*
|
|
22
|
+
* @param instanceId - Optional instance ID for multi-instance support. Defaults to 0.
|
|
23
|
+
* @returns An object with request and requestAll methods bound to the specified instance.
|
|
21
24
|
*
|
|
22
25
|
* @remarks
|
|
23
|
-
* This utility provides methods to make single or multiple HTTP requests.
|
|
26
|
+
* This utility provides methods to make single or multiple HTTP requests for a specific instance.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* // Use default instance
|
|
31
|
+
* const httpClient = http();
|
|
32
|
+
*
|
|
33
|
+
* // Use specific instance
|
|
34
|
+
* const httpInstance1 = http(1);
|
|
35
|
+
* const httpInstance2 = http(2);
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const http: (instanceId?: number) => {
|
|
39
|
+
request: typeof AsgardeoSPAClient.prototype.httpRequest;
|
|
40
|
+
requestAll: typeof AsgardeoSPAClient.prototype.httpRequestAll;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Default HTTP utility using instance 0.
|
|
44
|
+
* For multi-instance support, use http(instanceId) instead.
|
|
24
45
|
*/
|
|
25
|
-
declare const
|
|
46
|
+
declare const _default: {
|
|
26
47
|
request: typeof AsgardeoSPAClient.prototype.httpRequest;
|
|
27
48
|
requestAll: typeof AsgardeoSPAClient.prototype.httpRequestAll;
|
|
28
49
|
};
|
|
29
|
-
export default
|
|
50
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgardeo/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Browser-specific implementation of Asgardeo JavaScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"asgardeo",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@testing-library/dom": "10.4.0",
|
|
36
36
|
"@types/node": "22.15.3",
|
|
37
37
|
"@vitest/browser": "3.1.3",
|
|
38
|
-
"@wso2/eslint-plugin": "git+https://github.com/brionmario/wso2-ui-configs.git#
|
|
39
|
-
"@wso2/prettier-config": "git+https://github.com/brionmario/wso2-ui-configs.git#
|
|
38
|
+
"@wso2/eslint-plugin": "git+https://github.com/brionmario/wso2-ui-configs.git#d3041825a4f8f235c8f9fa36b55cf29d54e791c8&path:packages/eslint-plugin",
|
|
39
|
+
"@wso2/prettier-config": "git+https://github.com/brionmario/wso2-ui-configs.git#d3041825a4f8f235c8f9fa36b55cf29d54e791c8&path:packages/prettier-config",
|
|
40
40
|
"esbuild": "0.25.9",
|
|
41
41
|
"esbuild-plugin-inline-worker": "0.1.1",
|
|
42
42
|
"esbuild-plugins-node-modules-polyfill": "1.7.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"randombytes": "2.1.0",
|
|
62
62
|
"stream-browserify": "3.0.0",
|
|
63
63
|
"tslib": "2.8.1",
|
|
64
|
-
"@asgardeo/javascript": "0.
|
|
64
|
+
"@asgardeo/javascript": "0.8.1"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|