alinea 1.4.7 → 1.4.8
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/.init/content/pages/welcome.json +1 -1
- package/dist/LICENSES.md +120 -120
- package/dist/bundled.d.ts +0 -3
- package/dist/chunks/{chunk-T7IP7EGH.js → chunk-QWP7LPX7.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cloud/CloudRemote.js +2 -2
- package/dist/core/db/CommitRequest.d.ts +0 -3
- package/dist/core/db/CommitRequest.js +0 -14
- package/package.json +1 -1
package/dist/LICENSES.md
CHANGED
|
@@ -28,30 +28,26 @@ SOFTWARE.
|
|
|
28
28
|
|
|
29
29
|
===
|
|
30
30
|
|
|
31
|
-
#
|
|
32
|
-
|
|
33
|
-
The MIT License (MIT)
|
|
34
|
-
|
|
35
|
-
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
31
|
+
# htmlparser2@9.1.0 (MIT)
|
|
36
32
|
|
|
33
|
+
Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
|
|
37
34
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
38
|
-
of this software and associated documentation files (the "Software"), to
|
|
39
|
-
in the Software without restriction, including without limitation the
|
|
40
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
41
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
of this software and associated documentation files (the "Software"), to
|
|
36
|
+
deal in the Software without restriction, including without limitation the
|
|
37
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
38
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
42
39
|
furnished to do so, subject to the following conditions:
|
|
43
|
-
|
|
44
|
-
The above copyright notice and this permission notice shall be included in
|
|
45
|
-
copies or substantial portions of the Software.
|
|
46
|
-
|
|
40
|
+
|
|
41
|
+
The above copyright notice and this permission notice shall be included in
|
|
42
|
+
all copies or substantial portions of the Software.
|
|
43
|
+
|
|
47
44
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
48
45
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
49
46
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
50
47
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
51
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
52
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
53
|
-
SOFTWARE.
|
|
54
|
-
|
|
48
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
49
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
50
|
+
IN THE SOFTWARE.
|
|
55
51
|
|
|
56
52
|
===
|
|
57
53
|
|
|
@@ -82,82 +78,7 @@ SOFTWARE.
|
|
|
82
78
|
|
|
83
79
|
===
|
|
84
80
|
|
|
85
|
-
# @
|
|
86
|
-
|
|
87
|
-
MIT License
|
|
88
|
-
|
|
89
|
-
Copyright (c) 2020 Tailwind Labs
|
|
90
|
-
|
|
91
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
92
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
93
|
-
in the Software without restriction, including without limitation the rights
|
|
94
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
95
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
96
|
-
furnished to do so, subject to the following conditions:
|
|
97
|
-
|
|
98
|
-
The above copyright notice and this permission notice shall be included in all
|
|
99
|
-
copies or substantial portions of the Software.
|
|
100
|
-
|
|
101
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
102
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
103
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
104
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
105
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
106
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
107
|
-
SOFTWARE.
|
|
108
|
-
|
|
109
|
-
===
|
|
110
|
-
|
|
111
|
-
# htmlparser2@9.1.0 (MIT)
|
|
112
|
-
|
|
113
|
-
Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
|
|
114
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
115
|
-
of this software and associated documentation files (the "Software"), to
|
|
116
|
-
deal in the Software without restriction, including without limitation the
|
|
117
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
118
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
119
|
-
furnished to do so, subject to the following conditions:
|
|
120
|
-
|
|
121
|
-
The above copyright notice and this permission notice shall be included in
|
|
122
|
-
all copies or substantial portions of the Software.
|
|
123
|
-
|
|
124
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
126
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
127
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
128
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
129
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
130
|
-
IN THE SOFTWARE.
|
|
131
|
-
|
|
132
|
-
===
|
|
133
|
-
|
|
134
|
-
# @popperjs/core@2.11.8 (MIT)
|
|
135
|
-
|
|
136
|
-
The MIT License (MIT)
|
|
137
|
-
|
|
138
|
-
Copyright (c) 2019 Federico Zivolo
|
|
139
|
-
|
|
140
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
141
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
142
|
-
the Software without restriction, including without limitation the rights to
|
|
143
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
144
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
145
|
-
subject to the following conditions:
|
|
146
|
-
|
|
147
|
-
The above copyright notice and this permission notice shall be included in all
|
|
148
|
-
copies or substantial portions of the Software.
|
|
149
|
-
|
|
150
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
151
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
152
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
153
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
154
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
155
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
===
|
|
159
|
-
|
|
160
|
-
# domutils@3.1.0 (BSD-2-Clause)
|
|
81
|
+
# domhandler@5.0.3 (BSD-2-Clause)
|
|
161
82
|
|
|
162
83
|
Copyright (c) Felix Böhm
|
|
163
84
|
All rights reserved.
|
|
@@ -174,7 +95,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
174
95
|
|
|
175
96
|
===
|
|
176
97
|
|
|
177
|
-
#
|
|
98
|
+
# domutils@3.1.0 (BSD-2-Clause)
|
|
178
99
|
|
|
179
100
|
Copyright (c) Felix Böhm
|
|
180
101
|
All rights reserved.
|
|
@@ -208,11 +129,37 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
208
129
|
|
|
209
130
|
===
|
|
210
131
|
|
|
211
|
-
#
|
|
132
|
+
# @headlessui/react@2.2.0 (MIT)
|
|
212
133
|
|
|
213
134
|
MIT License
|
|
214
135
|
|
|
215
|
-
Copyright (c)
|
|
136
|
+
Copyright (c) 2020 Tailwind Labs
|
|
137
|
+
|
|
138
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
139
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
140
|
+
in the Software without restriction, including without limitation the rights
|
|
141
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
142
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
143
|
+
furnished to do so, subject to the following conditions:
|
|
144
|
+
|
|
145
|
+
The above copyright notice and this permission notice shall be included in all
|
|
146
|
+
copies or substantial portions of the Software.
|
|
147
|
+
|
|
148
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
149
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
150
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
151
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
152
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
153
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
154
|
+
SOFTWARE.
|
|
155
|
+
|
|
156
|
+
===
|
|
157
|
+
|
|
158
|
+
# lib0@0.2.88 (MIT)
|
|
159
|
+
|
|
160
|
+
The MIT License (MIT)
|
|
161
|
+
|
|
162
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
216
163
|
|
|
217
164
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
218
165
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -233,6 +180,49 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
233
180
|
SOFTWARE.
|
|
234
181
|
|
|
235
182
|
|
|
183
|
+
===
|
|
184
|
+
|
|
185
|
+
# dom-serializer@2.0.0 (MIT)
|
|
186
|
+
|
|
187
|
+
License
|
|
188
|
+
|
|
189
|
+
(The MIT License)
|
|
190
|
+
|
|
191
|
+
Copyright (c) 2014 The cheeriojs contributors
|
|
192
|
+
|
|
193
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
194
|
+
|
|
195
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
196
|
+
|
|
197
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
===
|
|
201
|
+
|
|
202
|
+
# @popperjs/core@2.11.8 (MIT)
|
|
203
|
+
|
|
204
|
+
The MIT License (MIT)
|
|
205
|
+
|
|
206
|
+
Copyright (c) 2019 Federico Zivolo
|
|
207
|
+
|
|
208
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
209
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
210
|
+
the Software without restriction, including without limitation the rights to
|
|
211
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
212
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
213
|
+
subject to the following conditions:
|
|
214
|
+
|
|
215
|
+
The above copyright notice and this permission notice shall be included in all
|
|
216
|
+
copies or substantial portions of the Software.
|
|
217
|
+
|
|
218
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
219
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
220
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
221
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
222
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
223
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
224
|
+
|
|
225
|
+
|
|
236
226
|
===
|
|
237
227
|
|
|
238
228
|
# @juggle/resize-observer@3.4.0 (Apache-2.0)
|
|
@@ -442,11 +432,11 @@ SOFTWARE.
|
|
|
442
432
|
|
|
443
433
|
===
|
|
444
434
|
|
|
445
|
-
#
|
|
435
|
+
# prop-types@15.8.1 (MIT)
|
|
446
436
|
|
|
447
437
|
MIT License
|
|
448
438
|
|
|
449
|
-
Copyright (c) Facebook, Inc.
|
|
439
|
+
Copyright (c) 2013-present, Facebook, Inc.
|
|
450
440
|
|
|
451
441
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
452
442
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -469,28 +459,11 @@ SOFTWARE.
|
|
|
469
459
|
|
|
470
460
|
===
|
|
471
461
|
|
|
472
|
-
#
|
|
473
|
-
|
|
474
|
-
License
|
|
475
|
-
|
|
476
|
-
(The MIT License)
|
|
477
|
-
|
|
478
|
-
Copyright (c) 2014 The cheeriojs contributors
|
|
479
|
-
|
|
480
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
481
|
-
|
|
482
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
483
|
-
|
|
484
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
===
|
|
488
|
-
|
|
489
|
-
# y-prosemirror@1.2.15 (MIT)
|
|
462
|
+
# react-is@16.13.1 (MIT)
|
|
490
463
|
|
|
491
|
-
|
|
464
|
+
MIT License
|
|
492
465
|
|
|
493
|
-
Copyright (c)
|
|
466
|
+
Copyright (c) Facebook, Inc. and its affiliates.
|
|
494
467
|
|
|
495
468
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
496
469
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -513,13 +486,13 @@ SOFTWARE.
|
|
|
513
486
|
|
|
514
487
|
===
|
|
515
488
|
|
|
516
|
-
# @headless-tree/
|
|
489
|
+
# @headless-tree/core@0.0.15 (MIT)
|
|
517
490
|
|
|
518
491
|
MIT
|
|
519
492
|
|
|
520
493
|
===
|
|
521
494
|
|
|
522
|
-
# @headless-tree/
|
|
495
|
+
# @headless-tree/react@0.0.15 (MIT)
|
|
523
496
|
|
|
524
497
|
MIT
|
|
525
498
|
|
|
@@ -551,6 +524,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
551
524
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
552
525
|
|
|
553
526
|
|
|
527
|
+
===
|
|
528
|
+
|
|
529
|
+
# y-prosemirror@1.2.15 (MIT)
|
|
530
|
+
|
|
531
|
+
The MIT License (MIT)
|
|
532
|
+
|
|
533
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
534
|
+
|
|
535
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
536
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
537
|
+
in the Software without restriction, including without limitation the rights
|
|
538
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
539
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
540
|
+
furnished to do so, subject to the following conditions:
|
|
541
|
+
|
|
542
|
+
The above copyright notice and this permission notice shall be included in all
|
|
543
|
+
copies or substantial portions of the Software.
|
|
544
|
+
|
|
545
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
546
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
547
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
548
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
549
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
550
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
551
|
+
SOFTWARE.
|
|
552
|
+
|
|
553
|
+
|
|
554
554
|
===
|
|
555
555
|
|
|
556
556
|
# @react-aria/focus@3.19.1 (Apache-2.0)
|
package/dist/bundled.d.ts
CHANGED
|
@@ -1296,10 +1296,8 @@ declare module 'alinea/core/Connection' {
|
|
|
1296
1296
|
|
|
1297
1297
|
declare module 'alinea/core/db/CommitRequest' {
|
|
1298
1298
|
|
|
1299
|
-
import type { CommitApi, SyncApi } from 'alinea/core/Connection';
|
|
1300
1299
|
import type { Change, ChangeFile, ChangesBatch } from 'alinea/core/source/Change';
|
|
1301
1300
|
import type { ReadonlyTree } from 'alinea/core/source/Tree';
|
|
1302
|
-
import type { LocalDB } from 'alinea/core/db/LocalDB';
|
|
1303
1301
|
import type { RemoveFileMutation, UploadFileMutation } from 'alinea/core/db/Mutation';
|
|
1304
1302
|
export interface AddContent extends ChangeFile {
|
|
1305
1303
|
op: 'addContent';
|
|
@@ -1319,7 +1317,6 @@ declare module 'alinea/core/db/CommitRequest' {
|
|
|
1319
1317
|
changes: Array<CommitChange>;
|
|
1320
1318
|
}
|
|
1321
1319
|
export function checkCommit(tree: ReadonlyTree, request: CommitRequest): void;
|
|
1322
|
-
export function attemptCommit(local: LocalDB, remote: CommitApi & SyncApi, request: CommitRequest): Promise<void>;
|
|
1323
1320
|
|
|
1324
1321
|
}
|
|
1325
1322
|
|
package/dist/cli/Serve.js
CHANGED
package/dist/cli/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-QWP7LPX7.js";
|
|
4
4
|
import {
|
|
5
5
|
PLazy
|
|
6
6
|
} from "../chunks/chunk-IKINPSS5.js";
|
|
@@ -347,7 +347,7 @@ async function parseOutcome(expected) {
|
|
|
347
347
|
}
|
|
348
348
|
const output = await response.json();
|
|
349
349
|
if (output.success) {
|
|
350
|
-
return output.
|
|
350
|
+
return output.data;
|
|
351
351
|
}
|
|
352
352
|
if (output.error) {
|
|
353
353
|
throw new HttpError(response.status, output.error);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { CommitApi, SyncApi } from '../Connection.js';
|
|
2
1
|
import type { Change, ChangeFile, ChangesBatch } from '../source/Change.js';
|
|
3
2
|
import type { ReadonlyTree } from '../source/Tree.js';
|
|
4
|
-
import type { LocalDB } from './LocalDB.js';
|
|
5
3
|
import type { RemoveFileMutation, UploadFileMutation } from './Mutation.js';
|
|
6
4
|
export interface AddContent extends ChangeFile {
|
|
7
5
|
op: 'addContent';
|
|
@@ -21,4 +19,3 @@ export interface CommitRequest {
|
|
|
21
19
|
changes: Array<CommitChange>;
|
|
22
20
|
}
|
|
23
21
|
export declare function checkCommit(tree: ReadonlyTree, request: CommitRequest): void;
|
|
24
|
-
export declare function attemptCommit(local: LocalDB, remote: CommitApi & SyncApi, request: CommitRequest): Promise<void>;
|
|
@@ -48,21 +48,7 @@ function checkCommit(tree, request) {
|
|
|
48
48
|
if (entry.sha !== sha) throw new Error(`Entry ${path} has changed`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
async function attemptCommit(local, remote, request) {
|
|
52
|
-
const contentChanges = sourceChanges(request);
|
|
53
|
-
await local.indexChanges(contentChanges);
|
|
54
|
-
try {
|
|
55
|
-
const { sha } = await remote.write(request);
|
|
56
|
-
if (sha === request.intoSha) {
|
|
57
|
-
await local.applyChanges(contentChanges);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
} finally {
|
|
61
|
-
await local.syncWith(remote);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
51
|
export {
|
|
65
|
-
attemptCommit,
|
|
66
52
|
checkCommit,
|
|
67
53
|
commitChanges,
|
|
68
54
|
sourceChanges
|