@cocreate/crdt 1.17.7 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  ## [1.17.7](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.17.6...v1.17.7) (2023-04-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.17.7",
3
+ "version": "1.17.8",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "SEE LICENSE",
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.substr(change.start, change.length);
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