Skip to content

Commit f055b36

Browse files
shinnnljharb
authored andcommitted
[New] add fs/promises to the list of core modules
introduced in nodejs/node@329fc78e49
1 parent 70850d2 commit f055b36

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ var current = (process.versions && process.versions.node && process.versions.nod
22

33
function specifierIncluded(specifier) {
44
var parts = specifier.split(' ');
5-
var op = parts[0];
6-
var versionParts = parts[1].split('.');
5+
var op = parts.length > 1 ? parts[0] : '=';
6+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
77

88
for (var i = 0; i < 3; ++i) {
99
var cur = Number(current[i] || 0);

lib/core.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"events": true,
1616
"freelist": "< 6",
1717
"fs": true,
18+
"fs/promises": ">= 10 && < 10.1",
1819
"_http_agent": ">= 0.11.1",
1920
"_http_client": ">= 0.11.1",
2021
"_http_common": ">= 0.11.1",

0 commit comments

Comments
 (0)