@cocreate/crdt 1.17.6 → 1.17.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/CHANGELOG.md +14 -0
- package/demo/index.html +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.17.8](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.17.7...v1.17.8) (2023-04-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* replaced substr with substring ([8cc4fd8](https://github.com/CoCreate-app/CoCreate-crdt/commit/8cc4fd847b9972f2fac6dcb8a200082593b31acc))
|
|
7
|
+
|
|
8
|
+
## [1.17.7](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.17.6...v1.17.7) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump cdn to 1.49.2 ([c8b1f7c](https://github.com/CoCreate-app/CoCreate-crdt/commit/c8b1f7c72f479795dd55da8d2ef9eeb66a16d71f))
|
|
14
|
+
|
|
1
15
|
## [1.17.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.17.5...v1.17.6) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/demo/index.html
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
<!--<script src="../dist/CoCreate-crdt.js"></script>-->
|
|
43
|
-
<!-- <script src="https://cdn.cocreate.app/1.49.
|
|
43
|
+
<!-- <script src="https://cdn.cocreate.app/1.49.2/CoCreate.min.js" ></script> -->
|
|
44
44
|
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
|
|
45
45
|
</body>
|
|
46
46
|
</html>
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -167,7 +167,7 @@ function insertChange(data, flag) {
|
|
|
167
167
|
}
|
|
168
168
|
let string = doc.get('text') || '';
|
|
169
169
|
if (change.length > 0)
|
|
170
|
-
change.removedValue = string.
|
|
170
|
+
change.removedValue = string.substring(change.start, change.length);
|
|
171
171
|
|
|
172
172
|
if (flag == 'replace') {
|
|
173
173
|
// ToDo get current string and create new changeLog array then push new change
|