@defensestation/ysync-go 0.1.0-dev.12.d04ad84
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 +145 -0
- package/dist/client/connect-yjs-provider.d.ts +107 -0
- package/dist/client/connect-yjs-provider.d.ts.map +1 -0
- package/dist/client/connect-yjs-provider.js +333 -0
- package/dist/client/connect-yjs-provider.js.map +1 -0
- package/dist/client/id.d.ts +2 -0
- package/dist/client/id.d.ts.map +1 -0
- package/dist/client/id.js +21 -0
- package/dist/client/id.js.map +1 -0
- package/dist/client/provider-status.d.ts +8 -0
- package/dist/client/provider-status.d.ts.map +1 -0
- package/dist/client/provider-status.js +2 -0
- package/dist/client/provider-status.js.map +1 -0
- package/dist/client/websocket-yjs-provider.d.ts +51 -0
- package/dist/client/websocket-yjs-provider.d.ts.map +1 -0
- package/dist/client/websocket-yjs-provider.js +270 -0
- package/dist/client/websocket-yjs-provider.js.map +1 -0
- package/dist/compaction/cli.d.ts +3 -0
- package/dist/compaction/cli.d.ts.map +1 -0
- package/dist/compaction/cli.js +124 -0
- package/dist/compaction/cli.js.map +1 -0
- package/dist/compaction/compaction.d.ts +67 -0
- package/dist/compaction/compaction.d.ts.map +1 -0
- package/dist/compaction/compaction.js +153 -0
- package/dist/compaction/compaction.js.map +1 -0
- package/dist/compaction/index.d.ts +3 -0
- package/dist/compaction/index.d.ts.map +1 -0
- package/dist/compaction/index.js +2 -0
- package/dist/compaction/index.js.map +1 -0
- package/dist/gen/ysync/v1/sync_pb.d.ts +630 -0
- package/dist/gen/ysync/v1/sync_pb.d.ts.map +1 -0
- package/dist/gen/ysync/v1/sync_pb.js +133 -0
- package/dist/gen/ysync/v1/sync_pb.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file ysync/v1/sync.proto (package ysync.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ysync/v1/sync.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_ysync_v1_sync = /*@__PURE__*/ fileDesc("ChN5c3luYy92MS9zeW5jLnByb3RvEgh5c3luYy52MSLXAQoLU3luY1JlcXVlc3QSDgoGZG9jX2lkGAEgASgJEhEKCWNsaWVudF9pZBgCIAEoCRIiCgRqb2luGAogASgLMhIueXN5bmMudjEuU3luY0pvaW5IABIUCgp5anNfdXBkYXRlGAsgASgMSAASGgoQYXdhcmVuZXNzX3VwZGF0ZRgMIAEoDEgAEh4KBHBpbmcYDSABKAsyDi55c3luYy52MS5QaW5nSAASJAoFbGVhdmUYDiABKAsyEy55c3luYy52MS5TeW5jTGVhdmVIAEIJCgdwYXlsb2FkIjQKDFN5bmNSZXNwb25zZRIkCgVmcmFtZRgBIAEoCzIVLnlzeW5jLnYxLlNlcnZlckZyYW1lIiAKCFN5bmNKb2luEhQKDHN0YXRlX3ZlY3RvchgBIAEoDCILCglTeW5jTGVhdmUi5QEKC1NlcnZlckZyYW1lEg4KBmRvY19pZBgBIAEoCRIYChBzZW5kZXJfY2xpZW50X2lkGAIgASgJEhAKCHNlcXVlbmNlGAMgASgEEhUKC3N5bmNfdXBkYXRlGAogASgMSAASFAoKeWpzX3VwZGF0ZRgLIAEoDEgAEhoKEGF3YXJlbmVzc191cGRhdGUYDCABKAxIABIeCgRwb25nGA0gASgLMg4ueXN5bmMudjEuUG9uZ0gAEiYKBWVycm9yGA4gASgLMhUueXN5bmMudjEuU2VydmVyRXJyb3JIAEIJCgdwYXlsb2FkIk4KE0pvaW5Eb2N1bWVudFJlcXVlc3QSDgoGZG9jX2lkGAEgASgJEhEKCWNsaWVudF9pZ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25zZRJnChRTdHJlYW1Eb2N1bWVudEZyYW1lcxIlLnlzeW5jLnYxLlN0cmVhbURvY3VtZW50RnJhbWVzUmVxdWVzdBomLnlzeW5jLnYxLlN0cmVhbURvY3VtZW50RnJhbWVzUmVzcG9uc2UwARJQCg1MZWF2ZURvY3VtZW50Eh4ueXN5bmMudjEuTGVhdmVEb2N1bWVudFJlcXVlc3QaHy55c3luYy52MS5MZWF2ZURvY3VtZW50UmVzcG9uc2USYgoTTGlzdERvY3VtZW50VXBkYXRlcxIkLnlzeW5jLnYxLkxpc3REb2N1bWVudFVwZGF0ZXNSZXF1ZXN0GiUueXN5bmMudjEuTGlzdERvY3VtZW50VXBkYXRlc1Jlc3BvbnNlElYKD0NvbXBhY3REb2N1bWVudBIgLnlzeW5jLnYxLkNvbXBhY3REb2N1bWVudFJlcXVlc3QaIS55c3luYy52MS5Db21wYWN0RG9jdW1lbnRSZXNwb25zZUI8WjpnaXRodWIuY29tL2RlZmVuc2VzdGF0aW9uL3lzeW5jLWdvL2dlbi9nby95c3luYy92MTt5c3luY3YxYgZwcm90bzM");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message ysync.v1.SyncRequest.
|
|
11
|
+
* Use `create(SyncRequestSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const SyncRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message ysync.v1.SyncResponse.
|
|
16
|
+
* Use `create(SyncResponseSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const SyncResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message ysync.v1.SyncJoin.
|
|
21
|
+
* Use `create(SyncJoinSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const SyncJoinSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 2);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message ysync.v1.SyncLeave.
|
|
26
|
+
* Use `create(SyncLeaveSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const SyncLeaveSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 3);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message ysync.v1.ServerFrame.
|
|
31
|
+
* Use `create(ServerFrameSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ServerFrameSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 4);
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message ysync.v1.JoinDocumentRequest.
|
|
36
|
+
* Use `create(JoinDocumentRequestSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const JoinDocumentRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 5);
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message ysync.v1.JoinDocumentResponse.
|
|
41
|
+
* Use `create(JoinDocumentResponseSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const JoinDocumentResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 6);
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message ysync.v1.PushYjsUpdateRequest.
|
|
46
|
+
* Use `create(PushYjsUpdateRequestSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export const PushYjsUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 7);
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message ysync.v1.PushYjsUpdateResponse.
|
|
51
|
+
* Use `create(PushYjsUpdateResponseSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export const PushYjsUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 8);
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message ysync.v1.PushAwarenessUpdateRequest.
|
|
56
|
+
* Use `create(PushAwarenessUpdateRequestSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const PushAwarenessUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 9);
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message ysync.v1.PushAwarenessUpdateResponse.
|
|
61
|
+
* Use `create(PushAwarenessUpdateResponseSchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export const PushAwarenessUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 10);
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message ysync.v1.StreamDocumentFramesRequest.
|
|
66
|
+
* Use `create(StreamDocumentFramesRequestSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const StreamDocumentFramesRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 11);
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message ysync.v1.StreamDocumentFramesResponse.
|
|
71
|
+
* Use `create(StreamDocumentFramesResponseSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const StreamDocumentFramesResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 12);
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message ysync.v1.LeaveDocumentRequest.
|
|
76
|
+
* Use `create(LeaveDocumentRequestSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export const LeaveDocumentRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 13);
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message ysync.v1.LeaveDocumentResponse.
|
|
81
|
+
* Use `create(LeaveDocumentResponseSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export const LeaveDocumentResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 14);
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message ysync.v1.ListDocumentUpdatesRequest.
|
|
86
|
+
* Use `create(ListDocumentUpdatesRequestSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export const ListDocumentUpdatesRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 15);
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message ysync.v1.ListDocumentUpdatesResponse.
|
|
91
|
+
* Use `create(ListDocumentUpdatesResponseSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const ListDocumentUpdatesResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 16);
|
|
94
|
+
/**
|
|
95
|
+
* Describes the message ysync.v1.DocumentUpdateRecord.
|
|
96
|
+
* Use `create(DocumentUpdateRecordSchema)` to create a new message.
|
|
97
|
+
*/
|
|
98
|
+
export const DocumentUpdateRecordSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 17);
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message ysync.v1.CompactDocumentRequest.
|
|
101
|
+
* Use `create(CompactDocumentRequestSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const CompactDocumentRequestSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 18);
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message ysync.v1.CompactDocumentResponse.
|
|
106
|
+
* Use `create(CompactDocumentResponseSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const CompactDocumentResponseSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 19);
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message ysync.v1.Ping.
|
|
111
|
+
* Use `create(PingSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export const PingSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 20);
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message ysync.v1.Pong.
|
|
116
|
+
* Use `create(PongSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export const PongSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 21);
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message ysync.v1.ServerError.
|
|
121
|
+
* Use `create(ServerErrorSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export const ServerErrorSchema = /*@__PURE__*/ messageDesc(file_ysync_v1_sync, 22);
|
|
124
|
+
/**
|
|
125
|
+
* YjsSyncService is the public Connect RPC contract for synchronizing
|
|
126
|
+
* Yjs documents. Yjs updates remain the canonical document state; projections,
|
|
127
|
+
* imports, exports, AI, search, and editor-specific formats belong outside this
|
|
128
|
+
* wire API.
|
|
129
|
+
*
|
|
130
|
+
* @generated from service ysync.v1.YjsSyncService
|
|
131
|
+
*/
|
|
132
|
+
export const YjsSyncService = /*@__PURE__*/ serviceDesc(file_ysync_v1_sync, 0);
|
|
133
|
+
//# sourceMappingURL=sync_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync_pb.js","sourceRoot":"","sources":["../../../../src/gen/ysync/v1/sync_pb.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,6EAA6E;AAC7E,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAY,aAAa,CACtD,QAAQ,CAAC,ygHAAygH,CAAC,CAAC;AAoDthH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAYrC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAYrC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAQrC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAyDrC;;;GAGG;AACH,MAAM,CAAC,M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CAAgC,GAA2C,aAAa,CACnG,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA4C,aAAa,CACrG,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAgDtC;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAyBtC;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AActC;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAqB,aAAa,CACvD,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAqB,aAAa,CACvD,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAiBtC;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GA6FtB,aAAa,CAChB,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ConnectYjsProvider } from "./client/connect-yjs-provider.js";
|
|
2
|
+
export type { ConnectYjsProviderOptions, YjsSyncRpcClient } from "./client/connect-yjs-provider.js";
|
|
3
|
+
export { WebSocketYjsProvider } from "./client/websocket-yjs-provider.js";
|
|
4
|
+
export type { WebSocketYjsProviderOptions } from "./client/websocket-yjs-provider.js";
|
|
5
|
+
export { makeClientId } from "./client/id.js";
|
|
6
|
+
export type { YjsProviderStatus, YjsProviderStatusListener, YjsProviderIdentity, YjsProviderIdentityListener } from "./client/provider-status.js";
|
|
7
|
+
export * from "./gen/ysync/v1/sync_pb.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,YAAY,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAClJ,cAAc,2BAA2B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ConnectYjsProvider } from "./client/connect-yjs-provider.js";
|
|
2
|
+
export { WebSocketYjsProvider } from "./client/websocket-yjs-provider.js";
|
|
3
|
+
export { makeClientId } from "./client/id.js";
|
|
4
|
+
export * from "./gen/ysync/v1/sync_pb.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,2BAA2B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@defensestation/ysync-go",
|
|
3
|
+
"version": "0.1.0-dev.12.d04ad84",
|
|
4
|
+
"description": "Browser Yjs providers (Connect RPC and WebSocket) for the ysync-go collaboration backend",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/defensestation/ysync-go.git",
|
|
9
|
+
"directory": "npm"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/defensestation/ysync-go#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/defensestation/ysync-go/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"yjs",
|
|
17
|
+
"crdt",
|
|
18
|
+
"collaboration",
|
|
19
|
+
"realtime",
|
|
20
|
+
"connectrpc",
|
|
21
|
+
"websocket"
|
|
22
|
+
],
|
|
23
|
+
"private": false,
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./compaction": {
|
|
34
|
+
"types": "./dist/compaction/index.d.ts",
|
|
35
|
+
"import": "./dist/compaction/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./ysync/v1": {
|
|
38
|
+
"types": "./dist/gen/ysync/v1/sync_pb.d.ts",
|
|
39
|
+
"import": "./dist/gen/ysync/v1/sync_pb.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"bin": {
|
|
43
|
+
"ysync-compact": "dist/compaction/cli.js"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"scripts": {
|
|
49
|
+
"generate": "cd .. && PATH=\"./npm/node_modules/.bin:$PATH\" buf generate --template npm/buf.gen.yaml",
|
|
50
|
+
"build": "npm run generate && tsc -p tsconfig.json",
|
|
51
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"prepack": "npm run build"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@bufbuild/protobuf": "^2.12.1",
|
|
57
|
+
"@connectrpc/connect": "^2.1.2",
|
|
58
|
+
"@connectrpc/connect-web": "^2.1.2",
|
|
59
|
+
"y-protocols": "^1.0.6",
|
|
60
|
+
"yjs": "^13.6.27"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@bufbuild/buf": "^1.57.2",
|
|
64
|
+
"@bufbuild/protoc-gen-es": "^2.12.1",
|
|
65
|
+
"@types/ws": "^8.18.1",
|
|
66
|
+
"typescript": "^5.9.2",
|
|
67
|
+
"vitest": "^3.2.4",
|
|
68
|
+
"ws": "^8.18.3"
|
|
69
|
+
}
|
|
70
|
+
}
|