readify 10.0.0 → 10.0.1

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 CHANGED
@@ -1,3 +1,11 @@
1
+ 2024.08.16, v10.0.1
2
+
3
+ feature:
4
+ - cba73a1 readify: @cloudcmd/formatify v2.0.0
5
+ - 76b6045 readify: putout v36.0.3
6
+ - a4597a1 readify: eslint v9.9.0
7
+ - 0511e66 readify: c8 v10.1.2
8
+
1
9
  2024.03.29, v10.0.0
2
10
 
3
11
  feature:
package/README.md CHANGED
@@ -53,6 +53,7 @@ console.log(data);
53
53
  readify('/', {
54
54
  type: 'raw',
55
55
  }).then(console.log);
56
+
56
57
  // output
57
58
  ({
58
59
  path: '/',
@@ -71,6 +72,7 @@ readify('/', {
71
72
  sort: 'size',
72
73
  order: 'desc',
73
74
  }).then(console.log);
75
+
74
76
  // output
75
77
  ({
76
78
  path: '/',
package/lib/readdir.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const {join, extname} = require('path');
4
- const {readdir} = require('fs/promises');
3
+ const {join, extname} = require('node:path');
4
+ const {readdir} = require('node:fs/promises');
5
5
 
6
6
  const tryToCatch = require('try-to-catch');
7
7
  const superstat = require('superstat');
package/lib/readify.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const process = require('node:process');
4
- const isUndefined = (a) => typeof a === 'undefined';
4
+
5
5
  const format = require('format-io');
6
6
  const currify = require('currify');
7
7
  const tryToCatch = require('try-to-catch');
@@ -9,9 +9,9 @@ const tryToCatch = require('try-to-catch');
9
9
  const sortify = require('@cloudcmd/sortify');
10
10
  const formatify = require('@cloudcmd/formatify');
11
11
 
12
- const WIN = process.platform === 'win32';
13
-
14
12
  const readdir = require('./readdir');
13
+ const WIN = process.platform === 'win32';
14
+ const isUndefined = (a) => typeof a === 'undefined';
15
15
  const nicki = !WIN && require('nicki');
16
16
  const replaceProperty = currify(_replaceProperty);
17
17
  const ifRaw = currify(_ifRaw);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "readify",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Read directory content with file attributes: size, date, owner, mode",
@@ -20,7 +20,7 @@
20
20
  "watcher": "madrun watcher"
21
21
  },
22
22
  "dependencies": {
23
- "@cloudcmd/formatify": "^1.0.0",
23
+ "@cloudcmd/formatify": "^2.0.0",
24
24
  "@cloudcmd/sortify": "^2.0.0",
25
25
  "currify": "^4.0.0",
26
26
  "format-io": "^2.0.0",
@@ -47,14 +47,13 @@
47
47
  "node": ">=18"
48
48
  },
49
49
  "devDependencies": {
50
- "c8": "^9.1.0",
51
- "eslint": "^8.57.0",
52
- "eslint-plugin-n": "^16.6.2",
50
+ "c8": "^10.1.2",
51
+ "eslint": "^9.9.0",
53
52
  "eslint-plugin-putout": "^22.5.0",
54
53
  "madrun": "^10.0.1",
55
54
  "mock-require": "^3.0.2",
56
55
  "nodemon": "^3.1.0",
57
- "putout": "^35.7.6",
56
+ "putout": "^36.0.3",
58
57
  "supertape": "^10.5.0",
59
58
  "try-catch": "^3.0.0"
60
59
  },