@polyguard/sdk 1.2.0 → 1.2.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/sdk.js +10674 -10646
- package/package.json +9 -2
- package/src/index.js +5 -1
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyguard/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "dist/sdk.js",
|
|
5
6
|
"module": "dist/sdk.js",
|
|
6
7
|
"browser": "dist/sdk.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/sdk.js",
|
|
11
|
+
"default": "./dist/sdk.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"scripts": {
|
|
8
|
-
"build": "esbuild src/index.js --bundle --outfile=dist/sdk.js",
|
|
15
|
+
"build": "esbuild src/index.js --bundle --format=esm --outfile=dist/sdk.js",
|
|
9
16
|
"prepare": "npm run build",
|
|
10
17
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
18
|
"regenerate-client": "bash scripts/regenerate-client.sh"
|
package/src/index.js
CHANGED
|
@@ -8,5 +8,9 @@ if (typeof window !== 'undefined') {
|
|
|
8
8
|
Object.assign(window.Polyguard, PolyguardApi);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
// Export PolyguardClient first to ensure it takes precedence
|
|
11
12
|
export { PolyguardClient };
|
|
12
|
-
export
|
|
13
|
+
// Then export everything else from the generated API
|
|
14
|
+
export * from './generated/src/index.js';
|
|
15
|
+
// Default export for easier usage
|
|
16
|
+
export default PolyguardClient;
|