zklighter-perps 1.0.299 → 1.0.300

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.
@@ -301,4 +301,3 @@ models/WithdrawHistory.ts
301
301
  models/WithdrawHistoryItem.ts
302
302
  models/ZkLighterInfo.ts
303
303
  models/index.ts
304
- runtime.ts
@@ -21,3 +21,8 @@
21
21
  #docs/*.md
22
22
  # Then explicitly reverse the ignore rule for a single file:
23
23
  #!docs/README.md
24
+
25
+ # runtime.ts is hand-patched to declare `RequestCredentials` locally instead of taking it
26
+ # from lib.dom, so React Native consumers (perps-fe-mobile) can compile without the DOM lib.
27
+ # This file is spec-independent boilerplate, so freezing it costs us nothing per regeneration.
28
+ runtime.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.299",
3
+ "version": "1.0.300",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {
@@ -22,6 +22,6 @@
22
22
  },
23
23
  "homepage": "https://github.com/elliottech/zklighter-perps-ts#readme",
24
24
  "devDependencies": {
25
- "typescript": "5.9.3"
25
+ "typescript": "7.0.2"
26
26
  }
27
27
  }
package/runtime.ts CHANGED
@@ -13,6 +13,10 @@
13
13
  */
14
14
 
15
15
 
16
+ // Declared locally rather than taken from lib.dom, so consumers compiled without the DOM lib
17
+ // (e.g. React Native, where it is spelled `RequestCredentials_`) can use this package.
18
+ export type RequestCredentials = 'omit' | 'same-origin' | 'include';
19
+
16
20
  export const BASE_PATH = "https://mainnet.zklighter.elliot.ai".replace(/\/+$/, "");
17
21
 
18
22
  export interface ConfigurationParameters {
package/tsconfig.json CHANGED
@@ -7,7 +7,6 @@
7
7
  // from previous generations and no longer in .openapi-generator/FILES) are not
8
8
  // part of the public API surface and are intentionally not checked.
9
9
  "compilerOptions": {
10
- "esModuleInterop": false,
11
10
  "skipLibCheck": true,
12
11
  "target": "ESNext",
13
12
  "allowJs": false,