@dheuv/xgboost-wasm 1.0.0 → 1.0.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/xgboost.d.ts CHANGED
@@ -48,7 +48,7 @@ export declare function init(): Promise<XGBoostModule>;
48
48
  * Main class for interacting with XGBoost WASM.
49
49
  */
50
50
  export declare class XGBoost {
51
- private module;
51
+ module: XGBoostModule;
52
52
  constructor(module: XGBoostModule);
53
53
  /**
54
54
  * Creates a new XGBoost instance by initializing the WASM module.
@@ -78,4 +78,5 @@ export declare class XGBoost {
78
78
  * @param rounds Number of boosting rounds.
79
79
  */
80
80
  train(dtrain: DMatrix, params: Record<string, string>, rounds: number): Promise<Booster>;
81
+ private handleWasmError;
81
82
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dheuv/xgboost-wasm",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "XGBoost WebAssembly library for Node.js and Browser",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -23,8 +23,8 @@
23
23
  "typescript": "^5.0.0",
24
24
  "vitest": "^0.34.0"
25
25
  },
26
- "type": "module",
27
26
  "dependencies": {
28
- "tslib": "^2.8.1"
27
+ "tslib": "^2.8.1",
28
+ "ws": "^8.18.0"
29
29
  }
30
30
  }