Skip to content

Commit c338aa5

Browse files
committed
Rebuild
1 parent ae801ed commit c338aa5

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

dist/index.browser.umd.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4233,7 +4233,7 @@ var Stat = function () {
42334233
_createClass(Stat, [{
42344234
key: 'isFile',
42354235
value: function isFile() {
4236-
return !!(this.mode & constants.S_IFREG);
4236+
return (this.mode & constants.S_IFMT) == constants.S_IFREG;
42374237
}
42384238

42394239
/**
@@ -4243,7 +4243,7 @@ var Stat = function () {
42434243
}, {
42444244
key: 'isDirectory',
42454245
value: function isDirectory() {
4246-
return !!(this.mode & constants.S_IFDIR);
4246+
return (this.mode & constants.S_IFMT) == constants.S_IFDIR;
42474247
}
42484248

42494249
/**
@@ -4253,7 +4253,7 @@ var Stat = function () {
42534253
}, {
42544254
key: 'isBlockDevice',
42554255
value: function isBlockDevice() {
4256-
return !!(this.mode & constants.S_IFBLK);
4256+
return (this.mode & constants.S_IFMT) == constants.S_IFBLK;
42574257
}
42584258

42594259
/**
@@ -4263,7 +4263,7 @@ var Stat = function () {
42634263
}, {
42644264
key: 'isCharacterDevice',
42654265
value: function isCharacterDevice() {
4266-
return !!(this.mode & constants.S_IFCHR);
4266+
return (this.mode & constants.S_IFMT) == constants.S_IFCHR;
42674267
}
42684268

42694269
/**
@@ -4273,7 +4273,7 @@ var Stat = function () {
42734273
}, {
42744274
key: 'isSymbolicLink',
42754275
value: function isSymbolicLink() {
4276-
return !!(this.mode & constants.S_IFLNK);
4276+
return (this.mode & constants.S_IFMT) == constants.S_IFLNK;
42774277
}
42784278

42794279
/**
@@ -4283,7 +4283,7 @@ var Stat = function () {
42834283
}, {
42844284
key: 'isFIFO',
42854285
value: function isFIFO() {
4286-
return !!(this.mode & constants.S_IFIFO);
4286+
return (this.mode & constants.S_IFMT) == constants.S_IFIFO;
42874287
}
42884288

42894289
/**
@@ -4293,7 +4293,7 @@ var Stat = function () {
42934293
}, {
42944294
key: 'isSocket',
42954295
value: function isSocket() {
4296-
return !!(this.mode & constants.S_IFSOCK);
4296+
return (this.mode & constants.S_IFMT) == constants.S_IFSOCK;
42974297
}
42984298
}]);
42994299

dist/index.node.cjs.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,49 +100,49 @@ class Stat {
100100
* Checks if file.
101101
*/
102102
isFile() {
103-
return !!(this.mode & constants.S_IFREG);
103+
return (this.mode & constants.S_IFMT) == constants.S_IFREG;
104104
}
105105

106106
/**
107107
* Checks if directory.
108108
*/
109109
isDirectory() {
110-
return !!(this.mode & constants.S_IFDIR);
110+
return (this.mode & constants.S_IFMT) == constants.S_IFDIR;
111111
}
112112

113113
/**
114114
* Checks if block device.
115115
*/
116116
isBlockDevice() {
117-
return !!(this.mode & constants.S_IFBLK);
117+
return (this.mode & constants.S_IFMT) == constants.S_IFBLK;
118118
}
119119

120120
/**
121121
* Checks if character device.
122122
*/
123123
isCharacterDevice() {
124-
return !!(this.mode & constants.S_IFCHR);
124+
return (this.mode & constants.S_IFMT) == constants.S_IFCHR;
125125
}
126126

127127
/**
128128
* Checks if symbolic link.
129129
*/
130130
isSymbolicLink() {
131-
return !!(this.mode & constants.S_IFLNK);
131+
return (this.mode & constants.S_IFMT) == constants.S_IFLNK;
132132
}
133133

134134
/**
135135
* Checks if FIFO.
136136
*/
137137
isFIFO() {
138-
return !!(this.mode & constants.S_IFIFO);
138+
return (this.mode & constants.S_IFMT) == constants.S_IFIFO;
139139
}
140140

141141
/**
142142
* Checks if socket.
143143
*/
144144
isSocket() {
145-
return !!(this.mode & constants.S_IFSOCK);
145+
return (this.mode & constants.S_IFMT) == constants.S_IFSOCK;
146146
}
147147

148148
}

dist/index.node.es.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,49 +93,49 @@ class Stat {
9393
* Checks if file.
9494
*/
9595
isFile() {
96-
return !!(this.mode & constants.S_IFREG);
96+
return (this.mode & constants.S_IFMT) == constants.S_IFREG;
9797
}
9898

9999
/**
100100
* Checks if directory.
101101
*/
102102
isDirectory() {
103-
return !!(this.mode & constants.S_IFDIR);
103+
return (this.mode & constants.S_IFMT) == constants.S_IFDIR;
104104
}
105105

106106
/**
107107
* Checks if block device.
108108
*/
109109
isBlockDevice() {
110-
return !!(this.mode & constants.S_IFBLK);
110+
return (this.mode & constants.S_IFMT) == constants.S_IFBLK;
111111
}
112112

113113
/**
114114
* Checks if character device.
115115
*/
116116
isCharacterDevice() {
117-
return !!(this.mode & constants.S_IFCHR);
117+
return (this.mode & constants.S_IFMT) == constants.S_IFCHR;
118118
}
119119

120120
/**
121121
* Checks if symbolic link.
122122
*/
123123
isSymbolicLink() {
124-
return !!(this.mode & constants.S_IFLNK);
124+
return (this.mode & constants.S_IFMT) == constants.S_IFLNK;
125125
}
126126

127127
/**
128128
* Checks if FIFO.
129129
*/
130130
isFIFO() {
131-
return !!(this.mode & constants.S_IFIFO);
131+
return (this.mode & constants.S_IFMT) == constants.S_IFIFO;
132132
}
133133

134134
/**
135135
* Checks if socket.
136136
*/
137137
isSocket() {
138-
return !!(this.mode & constants.S_IFSOCK);
138+
return (this.mode & constants.S_IFMT) == constants.S_IFSOCK;
139139
}
140140

141141
}

0 commit comments

Comments
 (0)