@kokimoki/app 1.15.2 → 1.16.1
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/kokimoki-awareness.d.ts +3 -5
- package/dist/kokimoki-awareness.js +5 -40
- package/dist/kokimoki-client.d.ts +9 -6
- package/dist/kokimoki-client.js +7 -2
- package/dist/kokimoki-local-store.d.ts +1 -1
- package/dist/kokimoki-store.d.ts +8 -4
- package/dist/kokimoki-store.js +50 -27
- package/dist/kokimoki-transaction.d.ts +1 -1
- package/dist/kokimoki.min.d.ts +20 -16
- package/dist/kokimoki.min.js +142 -69
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/room-subscription.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +14 -2
|
@@ -34,6 +34,9 @@ export class RoomSubscription {
|
|
|
34
34
|
// Set defaults if doc is empty after sync (only possible in ReadWrite mode)
|
|
35
35
|
if (this.store.mode === RoomSubscriptionMode.ReadWrite) {
|
|
36
36
|
await this.kmClient.transact([this.store], ([state]) => {
|
|
37
|
+
if (!("_connections" in state)) {
|
|
38
|
+
state._connections = {};
|
|
39
|
+
}
|
|
37
40
|
for (const key in this.store.defaultValue) {
|
|
38
41
|
if (!state.hasOwnProperty(key)) {
|
|
39
42
|
state[key] = this.store.defaultValue[key];
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const KOKIMOKI_APP_VERSION = "1.
|
|
1
|
+
export declare const KOKIMOKI_APP_VERSION = "1.16.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const KOKIMOKI_APP_VERSION = "1.
|
|
1
|
+
export const KOKIMOKI_APP_VERSION = "1.16.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kokimoki/app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kokimoki app",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"ts-node": {
|
|
12
|
+
"esm": true,
|
|
13
|
+
"experimentalSpecifierResolution": "node"
|
|
14
|
+
},
|
|
11
15
|
"scripts": {
|
|
12
|
-
"test": "
|
|
16
|
+
"test": "NODE_OPTIONS='--import tsx' mocha",
|
|
13
17
|
"prebuild": "node -p \"'export const KOKIMOKI_APP_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
14
18
|
"build": "tsc",
|
|
15
19
|
"postbuild": "rollup --config",
|
|
@@ -25,9 +29,17 @@
|
|
|
25
29
|
"@rollup/plugin-replace": "^5.0.5",
|
|
26
30
|
"@rollup/plugin-terser": "^0.4.4",
|
|
27
31
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
32
|
+
"@types/chai": "^4",
|
|
33
|
+
"@types/mocha": "^10",
|
|
34
|
+
"@types/node": "^18",
|
|
28
35
|
"@types/ws": "^8.5.5",
|
|
36
|
+
"bson-objectid": "^2.0.4",
|
|
37
|
+
"chai": "^4",
|
|
38
|
+
"mocha": "^10",
|
|
29
39
|
"rollup": "^4.13.0",
|
|
30
40
|
"rollup-plugin-dts": "^6.1.0",
|
|
41
|
+
"ts-node": "^10",
|
|
42
|
+
"tsx": "^4",
|
|
31
43
|
"typedoc": "^0.24.8",
|
|
32
44
|
"typescript": "^5.1.6"
|
|
33
45
|
},
|