@e-mc/file-manager 0.8.9 → 0.8.10

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.
Files changed (3) hide show
  1. package/README.md +10 -10
  2. package/index.js +3 -2
  3. package/package.json +10 -10
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { DataSource, IncrementalMatch, TaskAction } from "./squared";
@@ -191,15 +191,15 @@ interface FileManagerConstructor extends HostConstructor {
191
191
 
192
192
  ## References
193
193
 
194
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/squared.d.ts
195
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/asset.d.ts
196
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/core.d.ts
197
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/filemanager.d.ts
198
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/logger.d.ts
199
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/module.d.ts
200
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/node.d.ts
201
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/request.d.ts
202
- - https://www.unpkg.com/@e-mc/types@0.8.9/lib/settings.d.ts
194
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/squared.d.ts
195
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/asset.d.ts
196
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/core.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/filemanager.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/logger.d.ts
199
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/module.d.ts
200
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/node.d.ts
201
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/request.d.ts
202
+ - https://www.unpkg.com/@e-mc/types@0.8.10/lib/settings.d.ts
203
203
 
204
204
  ## LICENSE
205
205
 
package/index.js CHANGED
@@ -128,7 +128,8 @@ function resetAssets() {
128
128
  }
129
129
  function recurseDir(output, subDirs, options) {
130
130
  const { ignore, sortBy, recursive } = options;
131
- const items = fs.readdirSync(path.join(...subDirs), { withFileTypes: true })
131
+ const baseDir = path.join(...subDirs);
132
+ const items = fs.readdirSync(baseDir, { withFileTypes: true })
132
133
  .filter(item => item.name)
133
134
  .sort((a, b) => {
134
135
  if (sortBy > 0) {
@@ -143,7 +144,7 @@ function recurseDir(output, subDirs, options) {
143
144
  });
144
145
  for (const item of items) {
145
146
  if (!item.isDirectory()) {
146
- const pathname = path.join(item.path, item.name);
147
+ const pathname = path.join(baseDir, item.name);
147
148
  if (!ignore.includes(pathname)) {
148
149
  output.push(pathname);
149
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/file-manager",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "description": "FileManager constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,15 +20,15 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "0.8.9",
24
- "@e-mc/compress": "0.8.9",
25
- "@e-mc/core": "0.8.9",
26
- "@e-mc/document": "0.8.9",
27
- "@e-mc/image": "0.8.9",
28
- "@e-mc/request": "0.8.9",
29
- "@e-mc/task": "0.8.9",
30
- "@e-mc/types": "0.8.9",
31
- "@e-mc/watch": "0.8.9",
23
+ "@e-mc/cloud": "0.8.10",
24
+ "@e-mc/compress": "0.8.10",
25
+ "@e-mc/core": "0.8.10",
26
+ "@e-mc/document": "0.8.10",
27
+ "@e-mc/image": "0.8.10",
28
+ "@e-mc/request": "0.8.10",
29
+ "@e-mc/task": "0.8.10",
30
+ "@e-mc/types": "0.8.10",
31
+ "@e-mc/watch": "0.8.10",
32
32
  "picomatch": "^3.0.1"
33
33
  }
34
34
  }