@livestore/common-cf 0.4.0-dev.6 → 0.4.0-dev.7
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.
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type * as CF from '@cloudflare/workers-types';
|
|
2
|
+
export declare const ReadableStream: typeof CF.ReadableStream;
|
|
3
|
+
export declare const Request: typeof CF.Request;
|
|
4
|
+
export declare const Response: typeof CF.Response;
|
|
5
|
+
export declare const WebSocket: typeof CF.WebSocket;
|
|
6
|
+
export declare const Rpc: typeof CF.Rpc;
|
|
7
|
+
export declare const WebSocketPair: typeof CF.WebSocketPair;
|
|
8
|
+
export declare const WebSocketRequestResponsePair: typeof CF.WebSocketRequestResponsePair;
|
|
2
9
|
//# sourceMappingURL=cf-declare.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cf-declare.d.ts","sourceRoot":"","sources":["../../src/declare/cf-declare.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cf-declare.d.ts","sourceRoot":"","sources":["../../src/declare/cf-declare.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEpD,eAAO,MAAM,cAAc,EAA2C,OAAO,EAAE,CAAC,cAAc,CAAA;AAC9F,eAAO,MAAM,OAAO,EAAoC,OAAO,EAAE,CAAC,OAAO,CAAA;AACzE,eAAO,MAAM,QAAQ,EAAqC,OAAO,EAAE,CAAC,QAAQ,CAAA;AAC5E,eAAO,MAAM,SAAS,EAAsC,OAAO,EAAE,CAAC,SAAS,CAAA;AAC/E,eAAO,MAAM,GAAG,EAAgC,OAAO,EAAE,CAAC,GAAG,CAAA;AAE7D,eAAO,MAAM,aAAa,EAA0C,OAAO,EAAE,CAAC,aAAa,CAAA;AAC3F,eAAO,MAAM,4BAA4B,EAEe,OAAO,EAAE,CAAC,4BAA4B,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
// globalThis.WebSocketRequestResponsePair as unknown as typeof CF.WebSocketRequestResponsePair
|
|
1
|
+
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
+
export const ReadableStream = globalThis.ReadableStream;
|
|
3
|
+
export const Request = globalThis.Request;
|
|
4
|
+
export const Response = globalThis.Response;
|
|
5
|
+
export const WebSocket = globalThis.WebSocket;
|
|
6
|
+
export const Rpc = globalThis.Rpc;
|
|
7
|
+
// @ts-expect-error WebSocketPair is not defined in the globalThis object
|
|
8
|
+
export const WebSocketPair = globalThis.WebSocketPair;
|
|
9
|
+
export const WebSocketRequestResponsePair =
|
|
10
|
+
// @ts-expect-error WebSocketRequestResponsePair is not defined in the globalThis object
|
|
11
|
+
globalThis.WebSocketRequestResponsePair;
|
|
13
12
|
//# sourceMappingURL=cf-declare.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cf-declare.js","sourceRoot":"","sources":["../../src/declare/cf-declare.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"cf-declare.js","sourceRoot":"","sources":["../../src/declare/cf-declare.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAMnD,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC,cAAqD,CAAA;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC,OAAuC,CAAA;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAyC,CAAA;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC,SAA2C,CAAA;AAC/E,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAAC,GAA+B,CAAA;AAC7D,yEAAyE;AACzE,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC,aAAmD,CAAA;AAC3F,MAAM,CAAC,MAAM,4BAA4B;AACvC,wFAAwF;AACxF,UAAU,CAAC,4BAAiF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/common-cf",
|
|
3
|
-
"version": "0.4.0-dev.
|
|
3
|
+
"version": "0.4.0-dev.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@cloudflare/workers-types": "4.20250823.0",
|
|
12
|
-
"@livestore/common": "0.4.0-dev.
|
|
13
|
-
"@livestore/utils": "0.4.0-dev.
|
|
12
|
+
"@livestore/common": "0.4.0-dev.7",
|
|
13
|
+
"@livestore/utils": "0.4.0-dev.7"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"vitest": "3.2.4",
|
|
17
17
|
"wrangler": "^4.32.0",
|
|
18
|
-
"@livestore/utils-dev": "0.4.0-dev.
|
|
18
|
+
"@livestore/utils-dev": "0.4.0-dev.7"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
ReadableStream,
|
|
3
|
-
Request,
|
|
4
|
-
Response,
|
|
5
|
-
Rpc,
|
|
6
|
-
WebSocket,
|
|
7
|
-
WebSocketPair,
|
|
8
|
-
WebSocketRequestResponsePair,
|
|
9
|
-
} from '@cloudflare/workers-types'
|
|
1
|
+
/// <reference types="@cloudflare/workers-types" />
|
|
10
2
|
|
|
11
|
-
//
|
|
3
|
+
// TODO we should figure out a way to avoid needing this entire file/module to begin with (cc Sunil Pai)
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
import type * as CF from '@cloudflare/workers-types'
|
|
6
|
+
|
|
7
|
+
export const ReadableStream = globalThis.ReadableStream as unknown as typeof CF.ReadableStream
|
|
8
|
+
export const Request = globalThis.Request as unknown as typeof CF.Request
|
|
9
|
+
export const Response = globalThis.Response as unknown as typeof CF.Response
|
|
10
|
+
export const WebSocket = globalThis.WebSocket as unknown as typeof CF.WebSocket
|
|
11
|
+
export const Rpc = globalThis.Rpc as unknown as typeof CF.Rpc
|
|
12
|
+
// @ts-expect-error WebSocketPair is not defined in the globalThis object
|
|
13
|
+
export const WebSocketPair = globalThis.WebSocketPair as unknown as typeof CF.WebSocketPair
|
|
14
|
+
export const WebSocketRequestResponsePair =
|
|
15
|
+
// @ts-expect-error WebSocketRequestResponsePair is not defined in the globalThis object
|
|
16
|
+
globalThis.WebSocketRequestResponsePair as unknown as typeof CF.WebSocketRequestResponsePair
|