@gala-chain/launchpad-sdk 3.12.2 → 3.12.4

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.
@@ -55,9 +55,29 @@ export declare const imageExtensionSchema: z.ZodEnum<[".png", ".jpg", ".jpeg", "
55
55
  * Validate filename has allowed image extension
56
56
  */
57
57
  export declare const imageFilenameSchema: z.ZodEffects<z.ZodString, string, string>;
58
- export type FileUpload = z.infer<typeof fileUploadSchema>;
59
- export type BrowserFile = z.infer<typeof browserFileSchema>;
60
- export type BufferFile = z.infer<typeof bufferFileSchema>;
61
- export type FlexibleFile = z.infer<typeof flexibleFileSchema>;
58
+ /**
59
+ * Type for file upload objects with file, name, size, and type properties
60
+ */
61
+ export type FileUpload = {
62
+ file: File | Buffer;
63
+ name: string;
64
+ size: number;
65
+ type: string;
66
+ };
67
+ /**
68
+ * Type for browser File objects
69
+ */
70
+ export type BrowserFile = File;
71
+ /**
72
+ * Type for Node.js Buffer objects used as files
73
+ */
74
+ export type BufferFile = Buffer;
75
+ /**
76
+ * Type for flexible file objects (either File or Buffer)
77
+ */
78
+ export type FlexibleFile = File | Buffer;
79
+ /**
80
+ * Type for allowed image extensions
81
+ */
62
82
  export type ImageExtension = z.infer<typeof imageExtensionSchema>;
63
83
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/schemas/files.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AACH,eAAO,MAAM,gBAAgB,6DAA8D,CAAC;AAE5F;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,mDAAmD;;IAKnD,8BAA8B;;IAE9B,yBAAyB;;IAEzB,gCAAgC;;;;;;;;;;;;EAEhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mHAmB7B,CAAC;AAEF;;;GA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AAM,UAAU,GAAG;IACvB,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-sdk",
3
- "version": "3.12.2",
3
+ "version": "3.12.4",
4
4
  "description": "TypeScript SDK for Gala Launchpad Backend API - Production-ready DeFi token launchpad integration with wallet-based authentication, GalaChain trading, and comprehensive user operations. 100% tested (22/22 endpoints working).",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -36,12 +36,14 @@
36
36
  "test:watch": "jest --watch",
37
37
  "test:coverage": "jest --coverage",
38
38
  "test:ci": "jest --coverage --ci --watchAll=false",
39
+ "test:cjs": "tsx scripts/test-cjs.ts",
40
+ "test:cjs:integration": "tsx scripts/test-cjs-integration.ts",
39
41
  "demo": "tsx examples/complete-sdk-demo.ts",
40
42
  "demo-trades": "tsx examples/demo-trades.ts",
41
43
  "demo-cache": "tsx examples/demo-cache.ts",
42
44
  "demo-fetch-all-pools": "tsx examples/demo-fetch-all-pools.ts",
43
- "lint": "eslint src tests --ext .ts,.tsx --fix",
44
- "lint:check": "eslint src tests --ext .ts,.tsx",
45
+ "lint": "eslint src tests scripts --ext .ts,.tsx --fix",
46
+ "lint:check": "eslint src tests scripts --ext .ts,.tsx",
45
47
  "typecheck": "tsc --noEmit",
46
48
  "typecheck:watch": "tsc --noEmit --watch",
47
49
  "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
@@ -121,12 +123,12 @@
121
123
  "registry": "https://registry.npmjs.org/"
122
124
  },
123
125
  "peerDependencies": {
124
- "ethers": "^6.15.0",
125
126
  "@gala-chain/api": "^2.4.3",
126
127
  "@gala-chain/connect": "^2.4.3",
127
- "socket.io-client": "^4.8.1",
128
128
  "axios": "^1.12.2",
129
129
  "bignumber.js": "^9.1.2",
130
+ "ethers": "^6.15.0",
131
+ "socket.io-client": "^4.8.1",
130
132
  "zod": "^3.25.76"
131
133
  },
132
134
  "browserslist": [
@@ -146,6 +148,7 @@
146
148
  "ethers": "^6.15.0",
147
149
  "socket.io-client": "^4.8.1",
148
150
  "uuid": "^13.0.0",
151
+ "web-file-polyfill": "^1.0.4",
149
152
  "zod": "^3.25.76",
150
153
  "zod-to-json-schema": "^3.24.6"
151
154
  },