@xhmikosr/bin-wrapper 13.0.4 → 13.0.6
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/index.js +3 -6
- package/package.json +13 -9
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {promises as fs} from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import binCheck from '@xhmikosr/bin-check';
|
|
4
|
-
import
|
|
4
|
+
import binaryVersionCheck from 'binary-version-check';
|
|
5
5
|
import download from '@xhmikosr/downloader';
|
|
6
6
|
import osFilterObject from '@xhmikosr/os-filter-obj';
|
|
7
7
|
|
|
@@ -127,7 +127,7 @@ export default class BinWrapper {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
if (this.version()) {
|
|
130
|
-
return
|
|
130
|
+
return binaryVersionCheck(this.path(), this.version());
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -163,10 +163,7 @@ export default class BinWrapper {
|
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
const urls =
|
|
167
|
-
for (const file of files) {
|
|
168
|
-
urls.push(file.url);
|
|
169
|
-
}
|
|
166
|
+
const urls = files.map(file => file.url);
|
|
170
167
|
|
|
171
168
|
return Promise.all(
|
|
172
169
|
urls.map(url =>
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xhmikosr/bin-wrapper",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.6",
|
|
4
4
|
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/XhmikosR/bin-wrapper.git"
|
|
9
|
+
},
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"access": "public"
|
|
9
12
|
},
|
|
@@ -39,21 +42,22 @@
|
|
|
39
42
|
],
|
|
40
43
|
"dependencies": {
|
|
41
44
|
"@xhmikosr/bin-check": "^7.0.3",
|
|
42
|
-
"@xhmikosr/downloader": "^15.0.
|
|
45
|
+
"@xhmikosr/downloader": "^15.0.2",
|
|
43
46
|
"@xhmikosr/os-filter-obj": "^3.0.0",
|
|
44
|
-
"
|
|
47
|
+
"binary-version-check": "^6.1.0"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"ava": "
|
|
48
|
-
"c8": "^
|
|
49
|
-
"isexe": "^
|
|
50
|
-
"nock": "^
|
|
50
|
+
"ava": "~6.2.0",
|
|
51
|
+
"c8": "^10.1.3",
|
|
52
|
+
"isexe": "^3.1.1",
|
|
53
|
+
"nock": "^14.0.5",
|
|
51
54
|
"path-exists": "^5.0.0",
|
|
52
55
|
"tempy": "^3.1.0",
|
|
53
|
-
"xo": "^0.
|
|
56
|
+
"xo": "^0.60.0"
|
|
54
57
|
},
|
|
55
58
|
"xo": {
|
|
56
59
|
"rules": {
|
|
60
|
+
"promise/prefer-await-to-then": "off",
|
|
57
61
|
"unicorn/prevent-abbreviations": "off"
|
|
58
62
|
}
|
|
59
63
|
}
|