@fleekhq/space-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -73,2 +73,5 @@ "use strict"; | ||
request.setBucket(bucket || this.defaultBucket); | ||
if (payload.dbId) { | ||
request.setDbid(payload.dbId); | ||
} | ||
this.instance.openFile(request, metadata, (err, res) => { | ||
@@ -75,0 +78,0 @@ if (err) { |
@@ -81,2 +81,5 @@ import { Empty } from 'google-protobuf/google/protobuf/empty_pb'; | ||
request.setBucket(bucket || _this.defaultBucket); | ||
if (payload.dbId) { | ||
request.setDbid(payload.dbId); | ||
} | ||
_this.instance.openFile(request, metadata, function (err, res) { | ||
@@ -83,0 +86,0 @@ if (err) { |
@@ -7,2 +7,3 @@ export interface ListDirectoryPayload { | ||
path: string; | ||
dbId?: string; | ||
bucket?: string; | ||
@@ -9,0 +10,0 @@ } |
{ | ||
"name": "@fleekhq/space-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
@@ -191,3 +191,3 @@ ![Publish Action Status](https://github.com/FleekHQ/space-client/workflows/Publish/badge.svg?branch=master) | ||
#### .openFile({ path: string, bucket?: string }) | ||
#### .openFile({ path: string, bucket?: string. dbId?: string }) | ||
@@ -197,2 +197,4 @@ Copies the file referenced by the path arg to a temp folder and returns a Promise that resolves to the file location. | ||
`dbId` should be used to open shared files. (you can get the `dbId` from `getSharedWithMeFiles` method). | ||
```js | ||
@@ -199,0 +201,0 @@ const asyncFunc = async () => { |
@@ -233,2 +233,6 @@ import grpcWeb, { ClientReadableStream } from 'grpc-web'; | ||
if (payload.dbId) { | ||
request.setDbid(payload.dbId); | ||
} | ||
this.instance.openFile( | ||
@@ -235,0 +239,0 @@ request, |
@@ -8,2 +8,3 @@ export interface ListDirectoryPayload { | ||
path: string; | ||
dbId?: string; | ||
bucket?: string; | ||
@@ -10,0 +11,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2396192
44925
1100