rivetkit 2.0.2 → 2.0.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/dist/schemas/actor-persist/v1.ts +228 -0
- package/dist/schemas/client-protocol/v1.ts +429 -0
- package/dist/schemas/file-system-driver/v1.ts +102 -0
- package/dist/tsup/actor/errors.cjs +69 -0
- package/dist/tsup/actor/errors.cjs.map +1 -0
- package/dist/tsup/actor/errors.d.cts +143 -0
- package/dist/tsup/actor/errors.d.ts +143 -0
- package/dist/tsup/actor/errors.js +69 -0
- package/dist/tsup/actor/errors.js.map +1 -0
- package/dist/tsup/chunk-2CRLFV6Z.cjs +202 -0
- package/dist/tsup/chunk-2CRLFV6Z.cjs.map +1 -0
- package/dist/tsup/chunk-3H7O2A7I.js +525 -0
- package/dist/tsup/chunk-3H7O2A7I.js.map +1 -0
- package/dist/tsup/chunk-42I3OZ3Q.js +15 -0
- package/dist/tsup/chunk-42I3OZ3Q.js.map +1 -0
- package/dist/tsup/chunk-4NSUQZ2H.js +1790 -0
- package/dist/tsup/chunk-4NSUQZ2H.js.map +1 -0
- package/dist/tsup/chunk-6PDXBYI5.js +132 -0
- package/dist/tsup/chunk-6PDXBYI5.js.map +1 -0
- package/dist/tsup/chunk-6WKQDDUD.cjs +1790 -0
- package/dist/tsup/chunk-6WKQDDUD.cjs.map +1 -0
- package/dist/tsup/chunk-CTBOSFUH.cjs +116 -0
- package/dist/tsup/chunk-CTBOSFUH.cjs.map +1 -0
- package/dist/tsup/chunk-EGVZZFE2.js +2857 -0
- package/dist/tsup/chunk-EGVZZFE2.js.map +1 -0
- package/dist/tsup/chunk-FCCPJNMA.cjs +132 -0
- package/dist/tsup/chunk-FCCPJNMA.cjs.map +1 -0
- package/dist/tsup/chunk-FLMTTN27.js +244 -0
- package/dist/tsup/chunk-FLMTTN27.js.map +1 -0
- package/dist/tsup/chunk-GIR3AFFI.cjs +315 -0
- package/dist/tsup/chunk-GIR3AFFI.cjs.map +1 -0
- package/dist/tsup/chunk-INGJP237.js +315 -0
- package/dist/tsup/chunk-INGJP237.js.map +1 -0
- package/dist/tsup/chunk-KJCJLKRM.js +116 -0
- package/dist/tsup/chunk-KJCJLKRM.js.map +1 -0
- package/dist/tsup/chunk-KUPQZYUQ.cjs +15 -0
- package/dist/tsup/chunk-KUPQZYUQ.cjs.map +1 -0
- package/dist/tsup/chunk-O2MBYIXO.cjs +2857 -0
- package/dist/tsup/chunk-O2MBYIXO.cjs.map +1 -0
- package/dist/tsup/chunk-OGAPU3UG.cjs +525 -0
- package/dist/tsup/chunk-OGAPU3UG.cjs.map +1 -0
- package/dist/tsup/chunk-OV6AYD4S.js +4406 -0
- package/dist/tsup/chunk-OV6AYD4S.js.map +1 -0
- package/dist/tsup/chunk-PO4VLDWA.js +47 -0
- package/dist/tsup/chunk-PO4VLDWA.js.map +1 -0
- package/dist/tsup/chunk-R2OPSKIV.cjs +244 -0
- package/dist/tsup/chunk-R2OPSKIV.cjs.map +1 -0
- package/dist/tsup/chunk-TZJKSBUQ.cjs +47 -0
- package/dist/tsup/chunk-TZJKSBUQ.cjs.map +1 -0
- package/dist/tsup/chunk-UBUC5C3G.cjs +189 -0
- package/dist/tsup/chunk-UBUC5C3G.cjs.map +1 -0
- package/dist/tsup/chunk-UIM22YJL.cjs +4406 -0
- package/dist/tsup/chunk-UIM22YJL.cjs.map +1 -0
- package/dist/tsup/chunk-URVFQMYI.cjs +230 -0
- package/dist/tsup/chunk-URVFQMYI.cjs.map +1 -0
- package/dist/tsup/chunk-UVUPOS46.js +230 -0
- package/dist/tsup/chunk-UVUPOS46.js.map +1 -0
- package/dist/tsup/chunk-VRRHBNJC.js +189 -0
- package/dist/tsup/chunk-VRRHBNJC.js.map +1 -0
- package/dist/tsup/chunk-XFSS33EQ.js +202 -0
- package/dist/tsup/chunk-XFSS33EQ.js.map +1 -0
- package/dist/tsup/client/mod.cjs +32 -0
- package/dist/tsup/client/mod.cjs.map +1 -0
- package/dist/tsup/client/mod.d.cts +26 -0
- package/dist/tsup/client/mod.d.ts +26 -0
- package/dist/tsup/client/mod.js +32 -0
- package/dist/tsup/client/mod.js.map +1 -0
- package/dist/tsup/common/log.cjs +13 -0
- package/dist/tsup/common/log.cjs.map +1 -0
- package/dist/tsup/common/log.d.cts +20 -0
- package/dist/tsup/common/log.d.ts +20 -0
- package/dist/tsup/common/log.js +13 -0
- package/dist/tsup/common/log.js.map +1 -0
- package/dist/tsup/common/websocket.cjs +10 -0
- package/dist/tsup/common/websocket.cjs.map +1 -0
- package/dist/tsup/common/websocket.d.cts +3 -0
- package/dist/tsup/common/websocket.d.ts +3 -0
- package/dist/tsup/common/websocket.js +10 -0
- package/dist/tsup/common/websocket.js.map +1 -0
- package/dist/tsup/common-CpqORuCq.d.cts +218 -0
- package/dist/tsup/common-CpqORuCq.d.ts +218 -0
- package/dist/tsup/connection-BR_Ve4ku.d.cts +2117 -0
- package/dist/tsup/connection-BwUMoe6n.d.ts +2117 -0
- package/dist/tsup/driver-helpers/mod.cjs +33 -0
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -0
- package/dist/tsup/driver-helpers/mod.d.cts +18 -0
- package/dist/tsup/driver-helpers/mod.d.ts +18 -0
- package/dist/tsup/driver-helpers/mod.js +33 -0
- package/dist/tsup/driver-helpers/mod.js.map +1 -0
- package/dist/tsup/driver-test-suite/mod.cjs +4619 -0
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -0
- package/dist/tsup/driver-test-suite/mod.d.cts +57 -0
- package/dist/tsup/driver-test-suite/mod.d.ts +57 -0
- package/dist/tsup/driver-test-suite/mod.js +4619 -0
- package/dist/tsup/driver-test-suite/mod.js.map +1 -0
- package/dist/tsup/inspector/mod.cjs +53 -0
- package/dist/tsup/inspector/mod.cjs.map +1 -0
- package/dist/tsup/inspector/mod.d.cts +408 -0
- package/dist/tsup/inspector/mod.d.ts +408 -0
- package/dist/tsup/inspector/mod.js +53 -0
- package/dist/tsup/inspector/mod.js.map +1 -0
- package/dist/tsup/mod.cjs +73 -0
- package/dist/tsup/mod.cjs.map +1 -0
- package/dist/tsup/mod.d.cts +100 -0
- package/dist/tsup/mod.d.ts +100 -0
- package/dist/tsup/mod.js +73 -0
- package/dist/tsup/mod.js.map +1 -0
- package/dist/tsup/router-endpoints-AYkXG8Tl.d.cts +66 -0
- package/dist/tsup/router-endpoints-DAbqVFx2.d.ts +66 -0
- package/dist/tsup/test/mod.cjs +21 -0
- package/dist/tsup/test/mod.cjs.map +1 -0
- package/dist/tsup/test/mod.d.cts +27 -0
- package/dist/tsup/test/mod.d.ts +27 -0
- package/dist/tsup/test/mod.js +21 -0
- package/dist/tsup/test/mod.js.map +1 -0
- package/dist/tsup/utils-CT0cv4jd.d.cts +17 -0
- package/dist/tsup/utils-CT0cv4jd.d.ts +17 -0
- package/dist/tsup/utils.cjs +26 -0
- package/dist/tsup/utils.cjs.map +1 -0
- package/dist/tsup/utils.d.cts +36 -0
- package/dist/tsup/utils.d.ts +36 -0
- package/dist/tsup/utils.js +26 -0
- package/dist/tsup/utils.js.map +1 -0
- package/package.json +208 -5
- package/src/actor/action.ts +182 -0
- package/src/actor/config.ts +765 -0
- package/src/actor/connection.ts +260 -0
- package/src/actor/context.ts +171 -0
- package/src/actor/database.ts +23 -0
- package/src/actor/definition.ts +86 -0
- package/src/actor/driver.ts +84 -0
- package/src/actor/errors.ts +360 -0
- package/src/actor/generic-conn-driver.ts +234 -0
- package/src/actor/instance.ts +1800 -0
- package/src/actor/log.ts +15 -0
- package/src/actor/mod.ts +113 -0
- package/src/actor/persisted.ts +42 -0
- package/src/actor/protocol/old.ts +281 -0
- package/src/actor/protocol/serde.ts +131 -0
- package/src/actor/router-endpoints.ts +685 -0
- package/src/actor/router.ts +263 -0
- package/src/actor/schedule.ts +17 -0
- package/src/actor/unstable-react.ts +110 -0
- package/src/actor/utils.ts +98 -0
- package/src/client/actor-common.ts +30 -0
- package/src/client/actor-conn.ts +804 -0
- package/src/client/actor-handle.ts +208 -0
- package/src/client/client.ts +623 -0
- package/src/client/errors.ts +41 -0
- package/src/client/http-client-driver.ts +326 -0
- package/src/client/log.ts +7 -0
- package/src/client/mod.ts +56 -0
- package/src/client/raw-utils.ts +92 -0
- package/src/client/test.ts +44 -0
- package/src/client/utils.ts +150 -0
- package/src/common/eventsource-interface.ts +47 -0
- package/src/common/eventsource.ts +80 -0
- package/src/common/fake-event-source.ts +266 -0
- package/src/common/inline-websocket-adapter2.ts +445 -0
- package/src/common/log-levels.ts +27 -0
- package/src/common/log.ts +139 -0
- package/src/common/logfmt.ts +228 -0
- package/src/common/network.ts +2 -0
- package/src/common/router.ts +87 -0
- package/src/common/utils.ts +322 -0
- package/src/common/versioned-data.ts +95 -0
- package/src/common/websocket-interface.ts +49 -0
- package/src/common/websocket.ts +43 -0
- package/src/driver-helpers/mod.ts +22 -0
- package/src/driver-helpers/utils.ts +17 -0
- package/src/driver-test-suite/log.ts +7 -0
- package/src/driver-test-suite/mod.ts +213 -0
- package/src/driver-test-suite/test-inline-client-driver.ts +402 -0
- package/src/driver-test-suite/tests/action-features.ts +136 -0
- package/src/driver-test-suite/tests/actor-auth.ts +591 -0
- package/src/driver-test-suite/tests/actor-conn-state.ts +249 -0
- package/src/driver-test-suite/tests/actor-conn.ts +349 -0
- package/src/driver-test-suite/tests/actor-driver.ts +25 -0
- package/src/driver-test-suite/tests/actor-error-handling.ts +158 -0
- package/src/driver-test-suite/tests/actor-handle.ts +259 -0
- package/src/driver-test-suite/tests/actor-inline-client.ts +152 -0
- package/src/driver-test-suite/tests/actor-inspector.ts +570 -0
- package/src/driver-test-suite/tests/actor-metadata.ts +116 -0
- package/src/driver-test-suite/tests/actor-onstatechange.ts +95 -0
- package/src/driver-test-suite/tests/actor-schedule.ts +108 -0
- package/src/driver-test-suite/tests/actor-sleep.ts +413 -0
- package/src/driver-test-suite/tests/actor-state.ts +54 -0
- package/src/driver-test-suite/tests/actor-vars.ts +93 -0
- package/src/driver-test-suite/tests/manager-driver.ts +365 -0
- package/src/driver-test-suite/tests/raw-http-direct-registry.ts +226 -0
- package/src/driver-test-suite/tests/raw-http-request-properties.ts +414 -0
- package/src/driver-test-suite/tests/raw-http.ts +347 -0
- package/src/driver-test-suite/tests/raw-websocket-direct-registry.ts +392 -0
- package/src/driver-test-suite/tests/raw-websocket.ts +484 -0
- package/src/driver-test-suite/tests/request-access.ts +244 -0
- package/src/driver-test-suite/utils.ts +68 -0
- package/src/drivers/default.ts +31 -0
- package/src/drivers/engine/actor-driver.ts +360 -0
- package/src/drivers/engine/api-endpoints.ts +128 -0
- package/src/drivers/engine/api-utils.ts +70 -0
- package/src/drivers/engine/config.ts +39 -0
- package/src/drivers/engine/keys.test.ts +266 -0
- package/src/drivers/engine/keys.ts +89 -0
- package/src/drivers/engine/kv.ts +3 -0
- package/src/drivers/engine/log.ts +7 -0
- package/src/drivers/engine/manager-driver.ts +391 -0
- package/src/drivers/engine/mod.ts +36 -0
- package/src/drivers/engine/ws-proxy.ts +170 -0
- package/src/drivers/file-system/actor.ts +91 -0
- package/src/drivers/file-system/global-state.ts +673 -0
- package/src/drivers/file-system/log.ts +7 -0
- package/src/drivers/file-system/manager.ts +306 -0
- package/src/drivers/file-system/mod.ts +48 -0
- package/src/drivers/file-system/utils.ts +109 -0
- package/src/globals.d.ts +6 -0
- package/src/inline-client-driver/log.ts +7 -0
- package/src/inline-client-driver/mod.ts +385 -0
- package/src/inspector/actor.ts +298 -0
- package/src/inspector/config.ts +83 -0
- package/src/inspector/log.ts +5 -0
- package/src/inspector/manager.ts +86 -0
- package/src/inspector/mod.ts +2 -0
- package/src/inspector/protocol/actor.ts +10 -0
- package/src/inspector/protocol/common.ts +196 -0
- package/src/inspector/protocol/manager.ts +10 -0
- package/src/inspector/protocol/mod.ts +2 -0
- package/src/inspector/utils.ts +76 -0
- package/src/manager/auth.ts +121 -0
- package/src/manager/driver.ts +80 -0
- package/src/manager/hono-websocket-adapter.ts +333 -0
- package/src/manager/log.ts +7 -0
- package/src/manager/mod.ts +2 -0
- package/src/manager/protocol/mod.ts +24 -0
- package/src/manager/protocol/query.ts +89 -0
- package/src/manager/router.ts +1792 -0
- package/src/mod.ts +20 -0
- package/src/registry/config.ts +32 -0
- package/src/registry/log.ts +7 -0
- package/src/registry/mod.ts +124 -0
- package/src/registry/run-config.ts +54 -0
- package/src/registry/serve.ts +53 -0
- package/src/schemas/actor-persist/mod.ts +1 -0
- package/src/schemas/actor-persist/versioned.ts +25 -0
- package/src/schemas/client-protocol/mod.ts +1 -0
- package/src/schemas/client-protocol/versioned.ts +63 -0
- package/src/schemas/file-system-driver/mod.ts +1 -0
- package/src/schemas/file-system-driver/versioned.ts +28 -0
- package/src/serde.ts +84 -0
- package/src/test/config.ts +16 -0
- package/src/test/log.ts +7 -0
- package/src/test/mod.ts +153 -0
- package/src/utils.ts +172 -0
- package/README.md +0 -13
package/src/utils.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export { stringifyError } from "@/common/utils";
|
|
2
|
+
export { assertUnreachable } from "./common/utils";
|
|
3
|
+
|
|
4
|
+
import type { Context as HonoContext, Handler as HonoHandler } from "hono";
|
|
5
|
+
|
|
6
|
+
import pkgJson from "../package.json" with { type: "json" };
|
|
7
|
+
|
|
8
|
+
export const VERSION = pkgJson.version;
|
|
9
|
+
|
|
10
|
+
let _userAgent: string | undefined;
|
|
11
|
+
|
|
12
|
+
export function httpUserAgent(): string {
|
|
13
|
+
// Return cached value if already initialized
|
|
14
|
+
if (_userAgent !== undefined) {
|
|
15
|
+
return _userAgent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Library
|
|
19
|
+
let userAgent = `RivetKit/${VERSION}`;
|
|
20
|
+
|
|
21
|
+
// Navigator
|
|
22
|
+
const navigatorObj = typeof navigator !== "undefined" ? navigator : undefined;
|
|
23
|
+
if (navigatorObj?.userAgent) userAgent += ` ${navigatorObj.userAgent}`;
|
|
24
|
+
|
|
25
|
+
_userAgent = userAgent;
|
|
26
|
+
|
|
27
|
+
return userAgent;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type UpgradeWebSocket = (
|
|
31
|
+
createEvents: (c: HonoContext) => any,
|
|
32
|
+
) => HonoHandler;
|
|
33
|
+
|
|
34
|
+
export function getEnvUniversal(key: string): string | undefined {
|
|
35
|
+
if (typeof Deno !== "undefined") {
|
|
36
|
+
return Deno.env.get(key);
|
|
37
|
+
} else if (typeof process !== "undefined") {
|
|
38
|
+
// Do this after Deno since `process` is sometimes polyfilled
|
|
39
|
+
return process.env[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function dbg<T>(x: T): T {
|
|
44
|
+
console.trace(`=== DEBUG ===\n${x}`);
|
|
45
|
+
return x;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Converts various ArrayBuffer-like types to Uint8Array.
|
|
50
|
+
* Handles ArrayBuffer, ArrayBufferView (including typed arrays), and passes through existing Uint8Array.
|
|
51
|
+
*
|
|
52
|
+
* @param data - The ArrayBuffer or ArrayBufferView to convert
|
|
53
|
+
* @returns A Uint8Array view of the data
|
|
54
|
+
*/
|
|
55
|
+
export function toUint8Array(data: ArrayBuffer | ArrayBufferView): Uint8Array {
|
|
56
|
+
if (data instanceof Uint8Array) {
|
|
57
|
+
return data;
|
|
58
|
+
} else if (data instanceof ArrayBuffer) {
|
|
59
|
+
return new Uint8Array(data);
|
|
60
|
+
} else if (ArrayBuffer.isView(data)) {
|
|
61
|
+
// Handle other ArrayBufferView types (Int8Array, Uint16Array, DataView, etc.)
|
|
62
|
+
return new Uint8Array(
|
|
63
|
+
data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength),
|
|
64
|
+
);
|
|
65
|
+
} else {
|
|
66
|
+
throw new TypeError("Input must be ArrayBuffer or ArrayBufferView");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Long timeouts
|
|
71
|
+
//
|
|
72
|
+
// JavaScript timers use a signed 32-bit integer for delays, so values above 2^31-1 (~24.8 days)
|
|
73
|
+
// are not reliable and may fire immediately or overflow.
|
|
74
|
+
//
|
|
75
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout#maximum_delay_value
|
|
76
|
+
const TIMEOUT_MAX = 2147483647; // 2^31-1
|
|
77
|
+
|
|
78
|
+
export type LongTimeoutHandle = { abort: () => void };
|
|
79
|
+
|
|
80
|
+
export function setLongTimeout(
|
|
81
|
+
listener: () => void,
|
|
82
|
+
after: number,
|
|
83
|
+
): LongTimeoutHandle {
|
|
84
|
+
let timeout: ReturnType<typeof setTimeout> | undefined;
|
|
85
|
+
|
|
86
|
+
function start(remaining: number) {
|
|
87
|
+
if (remaining <= TIMEOUT_MAX) {
|
|
88
|
+
timeout = setTimeout(listener, remaining);
|
|
89
|
+
} else {
|
|
90
|
+
timeout = setTimeout(() => {
|
|
91
|
+
start(remaining - TIMEOUT_MAX);
|
|
92
|
+
}, TIMEOUT_MAX);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
start(after);
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
abort: () => {
|
|
100
|
+
if (timeout !== undefined) clearTimeout(timeout);
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A tiny utility that coalesces/enqueues async operations so only the latest
|
|
107
|
+
* queued task runs per cycle, while callers receive a promise that resolves
|
|
108
|
+
* when the task for the cycle they joined has completed.
|
|
109
|
+
*/
|
|
110
|
+
export class SinglePromiseQueue {
|
|
111
|
+
/** Next operation to execute in the queue. If attempting to enqueue another op, it will override the existing op. */
|
|
112
|
+
#queuedOp?: () => Promise<void>;
|
|
113
|
+
|
|
114
|
+
/** The currently running promise of #drainLoop. Do not await this, instead await `pending` to await the current cycle. */
|
|
115
|
+
runningDrainLoop?: Promise<void>;
|
|
116
|
+
|
|
117
|
+
/** Pending resolver fro the currently queued entry. */
|
|
118
|
+
#pending?: PromiseWithResolvers<void>;
|
|
119
|
+
|
|
120
|
+
/** Queue the next operation and return a promise that resolves when it flushes. */
|
|
121
|
+
enqueue(op: () => Promise<void>): Promise<void> {
|
|
122
|
+
// Replace any previously queued operation with the latest one
|
|
123
|
+
this.#queuedOp = op;
|
|
124
|
+
|
|
125
|
+
// Ensure a shared resolver exists for all callers in this cycle
|
|
126
|
+
if (!this.#pending) {
|
|
127
|
+
this.#pending = Promise.withResolvers<void>();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const waitForThisCycle = this.#pending.promise;
|
|
131
|
+
|
|
132
|
+
// Start runner if not already running
|
|
133
|
+
if (!this.runningDrainLoop) {
|
|
134
|
+
this.runningDrainLoop = this.#drainLoop();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return waitForThisCycle;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Drain queued operations sequentially until there is nothing left. */
|
|
141
|
+
async #drainLoop(): Promise<void> {
|
|
142
|
+
try {
|
|
143
|
+
while (this.#queuedOp) {
|
|
144
|
+
// Capture current cycle resolver then reset for the next cycle
|
|
145
|
+
const resolver = this.#pending;
|
|
146
|
+
this.#pending = undefined;
|
|
147
|
+
|
|
148
|
+
// Capture and clear the currently queued operation
|
|
149
|
+
const op = this.#queuedOp;
|
|
150
|
+
this.#queuedOp = undefined;
|
|
151
|
+
|
|
152
|
+
try {
|
|
153
|
+
await op();
|
|
154
|
+
} catch {
|
|
155
|
+
// Swallow errors: callers only await cycle completion, not success
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Notify all waiters for this cycle
|
|
159
|
+
resolver?.resolve();
|
|
160
|
+
}
|
|
161
|
+
} finally {
|
|
162
|
+
this.runningDrainLoop = undefined;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function bufferToArrayBuffer(buf: Buffer | Uint8Array): ArrayBuffer {
|
|
168
|
+
return buf.buffer.slice(
|
|
169
|
+
buf.byteOffset,
|
|
170
|
+
buf.byteOffset + buf.byteLength,
|
|
171
|
+
) as ArrayBuffer;
|
|
172
|
+
}
|
package/README.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# RivetKit
|
|
2
|
-
|
|
3
|
-
_Lightweight Libraries for Backends_
|
|
4
|
-
|
|
5
|
-
**This is not the RivetKit you are looking for. See [`@rivetkit/actor`](https://www.npmjs.com/package/@rivetkit/core).**
|
|
6
|
-
|
|
7
|
-
[Learn More →](https://github.com/rivet-gg/rivetkit)
|
|
8
|
-
|
|
9
|
-
[Discord](https://rivet.gg/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-gg/rivetkit/issues)
|
|
10
|
-
|
|
11
|
-
## License
|
|
12
|
-
|
|
13
|
-
Apache 2.0
|