@notifiles/sdk 1.1.4 → 1.1.5
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/package.json +1 -1
- package/src/lib/cloudLibrary/bunny/index.js +4 -0
- package/src/lib/cloudLibrary/bunny/previewRemoteUrl.js +21 -0
- package/src/lib/cloudLibrary/bunny/remove.js +14 -0
- package/src/lib/cloudLibrary/bunny/syncFolder.js +14 -0
- package/src/lib/cloudLibrary/bunny/uploadFolder.js +14 -0
- package/src/lib/cloudLibrary/minio/previewRemoteUrl.js +1 -1
- package/src/template/attach/path.js +1 -1
- package/src/template/build/path.js +1 -1
- package/src/template/cloudify/path.js +1 -1
- package/src/template/consolidate/path.js +1 -1
- package/src/template/format/path.js +1 -1
- package/src/template/index.js +0 -4
- package/src/template/optimize/path.js +1 -1
- package/src/template/sync/path.js +1 -1
package/package.json
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { default as isValid } from './isValid.js'
|
|
2
2
|
export { default as upload } from './upload.js'
|
|
3
|
+
export { default as syncFolder } from './syncFolder.js'
|
|
4
|
+
export { default as remove } from './remove.js'
|
|
5
|
+
export { default as previewRemoteUrl } from './previewRemoteUrl.js'
|
|
6
|
+
// export { default as uploadFolder } from './uploadFolder.js'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default async ({
|
|
2
|
+
filename,
|
|
3
|
+
auth,
|
|
4
|
+
// contentType = 'image/png'
|
|
5
|
+
}) => {
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const {
|
|
9
|
+
accessKey,
|
|
10
|
+
storageZoneName,
|
|
11
|
+
pullZone
|
|
12
|
+
} = auth
|
|
13
|
+
|
|
14
|
+
const url = `https://${pullZone}.b-cdn.net/${filename}`
|
|
15
|
+
return url
|
|
16
|
+
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.error(e)
|
|
19
|
+
}
|
|
20
|
+
return null
|
|
21
|
+
}
|
package/src/template/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
1
|
export * as build from './build/index.js'
|
|
3
|
-
export * as cloudify from './cloudify/index.js'
|
|
4
|
-
export * as consolidate from './consolidate/index.js'
|
|
5
|
-
export * as contain from './consolidate/index.js'
|
|
6
2
|
export * as sync from './sync/index.js'
|
|
7
3
|
export * as update from './update/index.js'
|
|
8
4
|
export { default as create } from './new/index.js'
|