Skip to content

Commit 13c6905

Browse files
committed
0.15.0 - Update 'lokijs-collections' dependency to 0.32.*
1 parent 0cccf69 commit 13c6905

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
### [0.14.0](N/A) - 2022-01-02
7+
### [0.15.0](N/A) - 2022-02-21
8+
#### Changed
9+
* Update `lokijs-collections` dependency from `0.31.*` to `0.32.*`
10+
11+
12+
--------
13+
### [0.14.0](https://github.com/TeamworkGuy2/lokijs-collections-syncing/commit/0cccf69f66d8e20be78a7766f913898c7b3a8716) - 2022-01-02
814
#### Changed
915
* Update to TypeScript 4.4
1016

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lokijs-collections-syncing",
3-
"version": "0.14.0",
3+
"version": "0.15.0",
44
"description": "lokijs-collections syncing to and from a remote data source",
55
"author": "TeamworkGuy2",
66
"homepage": "https://github.com/TeamworkGuy2/lokijs-collections-syncing",
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/TeamworkGuy2/lokijs-collections-syncing.git"
1111
},
1212
"dependencies": {
13-
"lokijs-collections": "~0.31.0",
13+
"lokijs-collections": "~0.32.0",
1414
"ts-promises": "~0.9.0"
1515
},
1616
"devDependencies": {

sync/SyncSettingsBuilder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class SyncSettingsBuilder<E extends F, F, P, S, U, R> implements SyncSettingsBui
162162
): { addFilterFuncs: (findFilterFunc: (item: S) => F) => SyncSettingsBuilder.BuilderEnd<E, F, P, S, U, R> } {
163163

164164
var collModel = localCollection.getDataModel();
165-
var collFuncs = <DtoAllFuncs<E, S>>localCollection.getDataModelFuncs();
165+
var collFuncs = localCollection.getDataModelFuncs();
166166
var inst = new SyncSettingsBuilder<E, F, P, S, U, R>();
167167
// sync settings
168168
inst.localCollection = localCollection;
@@ -171,10 +171,10 @@ class SyncSettingsBuilder<E extends F, F, P, S, U, R> implements SyncSettingsBui
171171
inst.copyObjectFunc = collFuncs.copyFunc;
172172
// sync down
173173
inst.syncDownFunc = syncDownFunc;
174-
inst.toLocalObject = collFuncs.toLocalObject;
174+
inst.toLocalObject = collFuncs.toLocalObject!;
175175
// sync up
176176
inst.syncUpFunc = syncUpFunc;
177-
inst.toSvcObject = collFuncs.toSvcObject;
177+
inst.toSvcObject = collFuncs.toSvcObject!;
178178

179179
return {
180180
addFilterFuncs: function (findFilterFunc: (item: S) => F) {

0 commit comments

Comments
 (0)