@saltify/milky-node-sdk 0.1.0-beta.1 → 0.1.0-beta.2
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/README.md +2 -0
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import EventEmitter from "events";
|
|
3
|
+
if (typeof globalThis.WebSocket === "undefined") {
|
|
4
|
+
console.error("WebSocket is not supported in this environment.");
|
|
5
|
+
process.exit(1);
|
|
6
|
+
}
|
|
3
7
|
var MilkyClient = class {
|
|
4
8
|
/**
|
|
5
9
|
* @param address The address of the Milky API server
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltify/milky-node-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.2",
|
|
5
5
|
"description": "Node.js SDK for Milky protocol",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/node": "^22.17.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@saltify/milky-types": "^1.0.0-draft.
|
|
22
|
+
"@saltify/milky-types": "^1.0.0-draft.7",
|
|
23
23
|
"zod": "^4.0.17"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|