@narrative.io/data-collaboration-sdk-ts 0.0.37 → 0.0.39

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.
@@ -86,6 +86,6 @@ export class DatasetApi extends BaseApi {
86
86
  * @public
87
87
  */
88
88
  async getDatasetFileDownloadUrl(datasetId, snapshotId, fileId) {
89
- return await this.get(`${resourceName}/${datasetId}/snapshots/${snapshotId}/files-added/${fileId}/download`);
89
+ return await this.post(`${resourceName}/${datasetId}/snapshots/${snapshotId}/files-added/${fileId}/download`);
90
90
  }
91
91
  }
@@ -12,8 +12,9 @@ class InstallationsApi extends BaseApi {
12
12
  * @returns {Promise<ApiRecords<Installation>>} - Promise resolving with the list of installations.
13
13
  */
14
14
  async getInstallations(appCategory) {
15
- const appCategoryQuery = `?app_category=${appCategory ?? ''}`;
16
- return await this.get(`${resourceName}${appCategoryQuery}`);
15
+ const appCategoryQuery = appCategory !== undefined ? `?app_category=${appCategory}` : '';
16
+ const url = `${resourceName}${appCategoryQuery}`;
17
+ return await this.get(url);
17
18
  }
18
19
  }
19
20
  export { InstallationsApi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",