abysshub 0.1.1-dev.3 → 0.1.1-dev.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.
package/README.md CHANGED
@@ -20,6 +20,14 @@ try {
20
20
 
21
21
  `Abyss` is the package's default export, the form each Widget's page shows. The named form, `import { Abyss } from "abysshub"`, works too and is the same class.
22
22
 
23
+ From CommonJS, `require()` loads the same module on Node 20.19+ and 22.12+:
24
+
25
+ ```js
26
+ const { Abyss, file } = require("abysshub");
27
+ ```
28
+
29
+ A bare `require("abysshub")` returns the module, not the class, so destructure it. On an older Node, `require()` fails with `ERR_REQUIRE_ESM`: use `const { Abyss, file } = await import("abysshub")` there, or upgrade Node.
30
+
23
31
  `run()` presses the Widget and waits for the run to end, however long it takes, then returns the succeeded run. A refusal or a failed run raises `AbyssError`.
24
32
 
25
33
  It runs on Node 20+, Bun and Deno, with no dependencies. An API key is a server-side secret, so in a browser `new Abyss()` throws.
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** This package's version, written from package.json by scripts/version.js at build. */
2
- export declare const VERSION = "0.1.1-dev.3";
2
+ export declare const VERSION = "0.1.1-dev.4";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** This package's version, written from package.json by scripts/version.js at build. */
2
- export const VERSION = "0.1.1-dev.3";
2
+ export const VERSION = "0.1.1-dev.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abysshub",
3
- "version": "0.1.1-dev.3",
3
+ "version": "0.1.1-dev.4",
4
4
  "description": "The official JavaScript library for the Abyss API.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/Abysshub/abysshub-sdk/tree/main/js#readme",
@@ -16,7 +16,8 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
19
+ "import": "./dist/index.js",
20
+ "default": "./dist/index.js"
20
21
  }
21
22
  },
22
23
  "files": [