cojson-transport-ws 0.13.0 → 0.13.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/tests/createWebSocketPeer.test.js +8 -8
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/tests/createWebSocketPeer.test.ts +8 -8
- package/src/types.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# cojson-transport-nodejs-ws
|
|
2
2
|
|
|
3
|
+
## 0.13.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b19cab7: Relax the WebSocket types on jazz-nodejs
|
|
8
|
+
|
|
9
|
+
## 0.13.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [c551839]
|
|
14
|
+
- cojson@0.13.2
|
|
15
|
+
|
|
3
16
|
## 0.13.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -84,7 +84,7 @@ describe("createWebSocketPeer", () => {
|
|
|
84
84
|
action: "content",
|
|
85
85
|
id: "co_zlow",
|
|
86
86
|
new: {},
|
|
87
|
-
priority:
|
|
87
|
+
priority: 6,
|
|
88
88
|
};
|
|
89
89
|
void peer.outgoing.push(message1);
|
|
90
90
|
await waitFor(() => {
|
|
@@ -145,7 +145,7 @@ describe("createWebSocketPeer", () => {
|
|
|
145
145
|
action: "content",
|
|
146
146
|
id: "co_zlow",
|
|
147
147
|
new: {},
|
|
148
|
-
priority:
|
|
148
|
+
priority: 6,
|
|
149
149
|
};
|
|
150
150
|
void peer.outgoing.push(message1);
|
|
151
151
|
void peer.outgoing.push(message2);
|
|
@@ -166,7 +166,7 @@ describe("createWebSocketPeer", () => {
|
|
|
166
166
|
action: "content",
|
|
167
167
|
id: "co_zlow",
|
|
168
168
|
new: {},
|
|
169
|
-
priority:
|
|
169
|
+
priority: 6,
|
|
170
170
|
};
|
|
171
171
|
void peer.outgoing.push(message1);
|
|
172
172
|
void peer.outgoing.push(message2);
|
|
@@ -185,7 +185,7 @@ describe("createWebSocketPeer", () => {
|
|
|
185
185
|
action: "content",
|
|
186
186
|
id: "co_zlow",
|
|
187
187
|
new: {},
|
|
188
|
-
priority:
|
|
188
|
+
priority: 6,
|
|
189
189
|
};
|
|
190
190
|
const stream = [];
|
|
191
191
|
while (serializeMessages(stream.concat(message1)).length <
|
|
@@ -216,7 +216,7 @@ describe("createWebSocketPeer", () => {
|
|
|
216
216
|
action: "content",
|
|
217
217
|
id: "co_zlow",
|
|
218
218
|
new: {},
|
|
219
|
-
priority:
|
|
219
|
+
priority: 6,
|
|
220
220
|
};
|
|
221
221
|
const stream = [];
|
|
222
222
|
while (serializeMessages(stream.concat(message1)).length <
|
|
@@ -246,7 +246,7 @@ describe("createWebSocketPeer", () => {
|
|
|
246
246
|
action: "content",
|
|
247
247
|
id: "co_zlow",
|
|
248
248
|
new: {},
|
|
249
|
-
priority:
|
|
249
|
+
priority: 6,
|
|
250
250
|
};
|
|
251
251
|
void peer.outgoing.push(message1);
|
|
252
252
|
void peer.outgoing.push(message2);
|
|
@@ -276,7 +276,7 @@ describe("createWebSocketPeer", () => {
|
|
|
276
276
|
action: "content",
|
|
277
277
|
id: "co_zlow",
|
|
278
278
|
new: {},
|
|
279
|
-
priority:
|
|
279
|
+
priority: 6,
|
|
280
280
|
};
|
|
281
281
|
void peer.outgoing.push(message1);
|
|
282
282
|
void peer.outgoing.push(message2);
|
|
@@ -303,7 +303,7 @@ describe("createWebSocketPeer", () => {
|
|
|
303
303
|
action: "content",
|
|
304
304
|
id: "co_zlow",
|
|
305
305
|
new: {},
|
|
306
|
-
priority:
|
|
306
|
+
priority: 6,
|
|
307
307
|
};
|
|
308
308
|
void peer.outgoing.push(message1);
|
|
309
309
|
void peer.outgoing.push(message2);
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,CAAC,SAAS,MAAM,eAAe,EAC9C,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7C,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,GAC1B,IAAI,CAAC;IACR,mBAAmB,CAAC,CAAC,SAAS,MAAM,eAAe,EACjD,IAAI,EAAE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C,KAAK,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CACjC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cojson-transport-ws",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"typescript": "~5.6.2",
|
|
10
|
-
"cojson": "0.13.
|
|
10
|
+
"cojson": "0.13.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/ws": "8.5.10",
|
package/src/index.ts
CHANGED
|
@@ -126,7 +126,7 @@ describe("createWebSocketPeer", () => {
|
|
|
126
126
|
action: "content",
|
|
127
127
|
id: "co_zlow",
|
|
128
128
|
new: {},
|
|
129
|
-
priority:
|
|
129
|
+
priority: 6,
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
void peer.outgoing.push(message1);
|
|
@@ -214,7 +214,7 @@ describe("createWebSocketPeer", () => {
|
|
|
214
214
|
action: "content",
|
|
215
215
|
id: "co_zlow",
|
|
216
216
|
new: {},
|
|
217
|
-
priority:
|
|
217
|
+
priority: 6,
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
void peer.outgoing.push(message1);
|
|
@@ -243,7 +243,7 @@ describe("createWebSocketPeer", () => {
|
|
|
243
243
|
action: "content",
|
|
244
244
|
id: "co_zlow",
|
|
245
245
|
new: {},
|
|
246
|
-
priority:
|
|
246
|
+
priority: 6,
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
void peer.outgoing.push(message1);
|
|
@@ -269,7 +269,7 @@ describe("createWebSocketPeer", () => {
|
|
|
269
269
|
action: "content",
|
|
270
270
|
id: "co_zlow",
|
|
271
271
|
new: {},
|
|
272
|
-
priority:
|
|
272
|
+
priority: 6,
|
|
273
273
|
};
|
|
274
274
|
|
|
275
275
|
const stream: SyncMessage[] = [];
|
|
@@ -316,7 +316,7 @@ describe("createWebSocketPeer", () => {
|
|
|
316
316
|
action: "content",
|
|
317
317
|
id: "co_zlow",
|
|
318
318
|
new: {},
|
|
319
|
-
priority:
|
|
319
|
+
priority: 6,
|
|
320
320
|
};
|
|
321
321
|
|
|
322
322
|
const stream: SyncMessage[] = [];
|
|
@@ -365,7 +365,7 @@ describe("createWebSocketPeer", () => {
|
|
|
365
365
|
action: "content",
|
|
366
366
|
id: "co_zlow",
|
|
367
367
|
new: {},
|
|
368
|
-
priority:
|
|
368
|
+
priority: 6,
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
void peer.outgoing.push(message1);
|
|
@@ -411,7 +411,7 @@ describe("createWebSocketPeer", () => {
|
|
|
411
411
|
action: "content",
|
|
412
412
|
id: "co_zlow",
|
|
413
413
|
new: {},
|
|
414
|
-
priority:
|
|
414
|
+
priority: 6,
|
|
415
415
|
};
|
|
416
416
|
|
|
417
417
|
void peer.outgoing.push(message1);
|
|
@@ -450,7 +450,7 @@ describe("createWebSocketPeer", () => {
|
|
|
450
450
|
action: "content",
|
|
451
451
|
id: "co_zlow",
|
|
452
452
|
new: {},
|
|
453
|
-
priority:
|
|
453
|
+
priority: 6,
|
|
454
454
|
};
|
|
455
455
|
|
|
456
456
|
void peer.outgoing.push(message1);
|