@liveblocks/node 3.21.0-rc1 → 3.22.0-file1
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.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@ var _core = require('@liveblocks/core');
|
|
|
3
3
|
|
|
4
4
|
// src/version.ts
|
|
5
5
|
var PKG_NAME = "@liveblocks/node";
|
|
6
|
-
var PKG_VERSION = "3.
|
|
6
|
+
var PKG_VERSION = "3.22.0-file1";
|
|
7
7
|
var PKG_FORMAT = "cjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
@@ -1176,6 +1176,18 @@ var Liveblocks = class {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
return await res.json();
|
|
1178
1178
|
}
|
|
1179
|
+
async getStorageFile(params, options) {
|
|
1180
|
+
const { roomId, fileId } = params;
|
|
1181
|
+
const res = await this.#get(
|
|
1182
|
+
_core.url`/v2/rooms/${roomId}/storage-files/${fileId}`,
|
|
1183
|
+
void 0,
|
|
1184
|
+
options
|
|
1185
|
+
);
|
|
1186
|
+
if (!res.ok) {
|
|
1187
|
+
throw await LiveblocksError.from(res);
|
|
1188
|
+
}
|
|
1189
|
+
return await res.json();
|
|
1190
|
+
}
|
|
1179
1191
|
/**
|
|
1180
1192
|
* Creates a new thread. The thread will be created with the specified comment as its first comment.
|
|
1181
1193
|
* If the thread already exists, a `LiveblocksError` will be thrown with status code 409.
|