craterview 0.1.0 → 0.1.3
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 +9 -3
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,15 @@ restoration API.
|
|
|
7
7
|
npm install craterview
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
and
|
|
12
|
-
|
|
10
|
+
**The package ships TypeScript source.** `index.ts` is what npm installs — there is no build
|
|
11
|
+
step and no compiled JavaScript in the tarball — so whatever compiles your own TypeScript
|
|
12
|
+
compiles this too: any bundler, `tsx` or `ts-node`, Bun, Deno, or Node 22.6 and newer with
|
|
13
|
+
type stripping (`--experimental-strip-types`, which recent releases enable by default). A
|
|
14
|
+
plain JavaScript project invoking `node` directly cannot import it.
|
|
15
|
+
|
|
16
|
+
The code itself needs Node 18 or newer, or any modern browser. **Zero runtime
|
|
17
|
+
dependencies** — `fetch`, `Blob` and `crypto.getRandomValues` are standard in both, so the
|
|
18
|
+
client installs without dragging a transitive tree behind it.
|
|
13
19
|
|
|
14
20
|
## Quickstart
|
|
15
21
|
|
package/index.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// Mirrored from package.json, which is the number a release bumps. It cannot be imported
|
|
20
20
|
// from there — this ships as TypeScript, so the import would have to resolve in the
|
|
21
21
|
// consumer's toolchain — so test/version.test.ts asserts the two agree.
|
|
22
|
-
export const VERSION = "0.1.
|
|
22
|
+
export const VERSION = "0.1.3";
|
|
23
23
|
const DEFAULT_BASE_URL = "https://api.craterview.ai";
|
|
24
24
|
// The server rejects a longer wait outright, so asking for one costs a 422 rather than a
|
|
25
25
|
// longer wait. Keep in step with MAX_WAIT_SECONDS in the gateway.
|