@liveblocks/client 1.1.0 → 1.1.1-dual2
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/index.d.mts +15 -0
- package/dist/index.mjs +17 -0
- package/package.json +17 -3
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { BaseUserMeta, BroadcastOptions, Client, History, Immutable, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, Others, Room, Status, StorageStatus, StorageUpdate, User, createClient, shallow, toPlainLson } from '@liveblocks/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Helper type to help users adopt to Lson types from interface definitions.
|
|
5
|
+
* You should only use this to wrap interfaces you don't control. For more
|
|
6
|
+
* information, see
|
|
7
|
+
* https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
|
|
8
|
+
*/
|
|
9
|
+
declare type EnsureJson<T> = [
|
|
10
|
+
unknown
|
|
11
|
+
] extends [T] ? T : T extends (...args: unknown[]) => unknown ? T : {
|
|
12
|
+
[K in keyof T]: EnsureJson<T[K]>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { EnsureJson };
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-dual2",
|
|
4
4
|
"description": "A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"default": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
8
21
|
"files": [
|
|
9
22
|
"dist/**",
|
|
10
23
|
"README.md"
|
|
@@ -12,13 +25,14 @@
|
|
|
12
25
|
"scripts": {
|
|
13
26
|
"dev": "tsup --watch",
|
|
14
27
|
"build": "tsup",
|
|
15
|
-
"format": "eslint --fix src
|
|
28
|
+
"format": "(eslint --fix src/ || true) && prettier --write src/",
|
|
16
29
|
"lint": "eslint src/",
|
|
30
|
+
"lint:package": "publint --strict && attw --pack",
|
|
17
31
|
"test": "jest --silent --verbose --color=always --passWithNoTests",
|
|
18
32
|
"test:watch": "jest --silent --verbose --color=always --passWithNoTests --watch"
|
|
19
33
|
},
|
|
20
34
|
"dependencies": {
|
|
21
|
-
"@liveblocks/core": "1.1.
|
|
35
|
+
"@liveblocks/core": "1.1.1-dual2"
|
|
22
36
|
},
|
|
23
37
|
"devDependencies": {
|
|
24
38
|
"@liveblocks/eslint-config": "*",
|