@abtnode/util 1.16.6-beta-4562aa60 → 1.16.6-beta-4ea1eb90

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.
@@ -1,5 +1,6 @@
1
1
  const semverClean = require('to-semver');
2
2
  const semverSort = require('semver-sort');
3
+ const sortBy = require('lodash/sortBy');
3
4
  const axios = require('./axios');
4
5
 
5
6
  module.exports = async (name, { includePrereleases = false, limit = 10 } = {}) => {
@@ -16,5 +17,5 @@ module.exports = async (name, { includePrereleases = false, limit = 10 } = {}) =
16
17
  .map((version) => ({ version, publishedAt: time[version] }))
17
18
  .slice(0, limit);
18
19
 
19
- return result;
20
+ return sortBy(result, 'publishedAt').reverse();
20
21
  };
package/lib/run-script.js CHANGED
@@ -86,6 +86,7 @@ const runScript = (script, label, options = {}) => {
86
86
 
87
87
  child = spawn(command, args, {
88
88
  timeout: 2 * 60 * 1000,
89
+ windowsHide: true, // required for Windows
89
90
  detached: false,
90
91
  shell: false,
91
92
  stdio: ['ignore', 'pipe', 'pipe'],
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.6-beta-4562aa60",
6
+ "version": "1.16.6-beta-4ea1eb90",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,10 +18,10 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.6-beta-4562aa60",
22
- "@abtnode/logger": "1.16.6-beta-4562aa60",
21
+ "@abtnode/constant": "1.16.6-beta-4ea1eb90",
22
+ "@abtnode/logger": "1.16.6-beta-4ea1eb90",
23
23
  "@arcblock/jwt": "1.18.72",
24
- "@blocklet/constant": "1.16.6-beta-4562aa60",
24
+ "@blocklet/constant": "1.16.6-beta-4ea1eb90",
25
25
  "@ocap/client": "1.18.72",
26
26
  "@ocap/mcrypto": "1.18.72",
27
27
  "@ocap/util": "1.18.72",
@@ -73,5 +73,5 @@
73
73
  "jest": "^27.5.1",
74
74
  "unzipper": "^0.10.11"
75
75
  },
76
- "gitHead": "e49856099ffc3c16eda77480a7ad93b2e9760764"
76
+ "gitHead": "0f0f63b552a88343a3f8e0d434b47c3bca6a75b9"
77
77
  }