@notifiles/sdk 1.5.0 → 1.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@notifiles/sdk",
3
3
  "type": "module",
4
- "version": "1.5.0",
4
+ "version": "1.5.2",
5
5
  "description": "",
6
6
  "author": {
7
7
  "name": "adoucoure",
@@ -11,7 +11,9 @@ export default async (props) => {
11
11
  } = entry
12
12
 
13
13
  const sharedItemsPath = `${path}/attachments`
14
- let sharedItems = await fs.promises.readdir(sharedItemsPath)
14
+ let sharedItems = (await checkFileExists(sharedItemsPath))
15
+ ? await fs.promises.readdir(sharedItemsPath)
16
+ : []
15
17
  let items = (await Promise.all(sharedItems.map(async item => {
16
18
  const folderPath = fsPath.join(sharedItemsPath, item)
17
19
  const folderPathStat = await fs.promises.stat(folderPath)
@@ -14,7 +14,7 @@ import {
14
14
  } from './lib/cache.js'
15
15
  import runWithConcurrency from '../../lib/async/runWithConcurrency.js'
16
16
 
17
- const DEFAULT_CONCURRENCY = 4
17
+ const DEFAULT_CONCURRENCY = 10
18
18
 
19
19
  export default async ({
20
20
  path,