@secondlayer/sdk 6.54.1 → 7.0.0
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 -2
- package/dist/index.d.ts +10 -583
- package/dist/index.js +41 -394
- package/dist/index.js.map +14 -21
- package/dist/sinks/bun-sqlite.js +2 -24
- package/dist/sinks/bun-sqlite.js.map +3 -3
- package/dist/sinks/core.js +2 -24
- package/dist/sinks/core.js.map +3 -3
- package/dist/sinks/drizzle.js +2 -24
- package/dist/sinks/drizzle.js.map +3 -3
- package/dist/sinks/kysely.js +2 -24
- package/dist/sinks/kysely.js.map +3 -3
- package/dist/streams/index.d.ts +9 -378
- package/dist/streams/index.js +35 -309
- package/dist/streams/index.js.map +9 -15
- package/dist/streams/rows.d.ts +2 -355
- package/dist/streams/rows.js +26 -280
- package/dist/streams/rows.js.map +4 -10
- package/dist/subgraphs/index.d.ts +1 -294
- package/dist/subgraphs/index.js +10 -174
- package/dist/subgraphs/index.js.map +10 -13
- package/dist/x402.js +2 -27
- package/dist/x402.js.map +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,12 +14,12 @@ bun add @secondlayer/sdk
|
|
|
14
14
|
import { SecondLayer } from "@secondlayer/sdk";
|
|
15
15
|
|
|
16
16
|
const sl = new SecondLayer({
|
|
17
|
-
apiKey: process.env.INSTANCE_TOKEN, // from
|
|
17
|
+
apiKey: process.env.INSTANCE_TOKEN, // from secondlayer init; omit on loopback
|
|
18
18
|
// default baseUrl: http://127.0.0.1:3800 (or SL_API_URL)
|
|
19
19
|
});
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Reads hit your instance. Writes use `INSTANCE_TOKEN` from `
|
|
22
|
+
Reads hit your instance. Writes use `INSTANCE_TOKEN` from `secondlayer init` when the
|
|
23
23
|
API is bound beyond loopback. Public archive dumps (`client.dumps`) need no
|
|
24
24
|
instance key.
|
|
25
25
|
|