@or-sdk/files 3.1.3-beta.1092.0 → 3.2.0
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/CHANGELOG.md +9 -0
- package/package.json +3 -2
- package/src/Files.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.2.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/files@3.1.2...@or-sdk/files@3.2.0) (2023-03-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Files:** Add an option to check that file exist in getUrl method ([cd02d25](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/cd02d257ac5f9a7dbecd73c9dde6d669a9217995))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [3.1.2](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/files@3.1.1...@or-sdk/files@3.1.2) (2023-03-16)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @or-sdk/files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/files",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -28,5 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"gitHead": "be37521e992d1eddaaec83af8897cf3cb0e76d8e"
|
|
32
33
|
}
|
package/src/Files.ts
CHANGED
|
@@ -266,7 +266,7 @@ export class Files extends Base {
|
|
|
266
266
|
* @param key folder name
|
|
267
267
|
* @param isPublic does this file public or private
|
|
268
268
|
* @param expireMs how long PRIVATE file link will be accessible in seconds
|
|
269
|
-
* @param checkFileExist
|
|
269
|
+
* @param checkFileExist check that file exists in database
|
|
270
270
|
* @return file url
|
|
271
271
|
*/
|
|
272
272
|
async getDownloadUrl(key: string, isPublic: boolean, expireMs = 86400000, checkFileExist?: boolean): Promise<string> {
|