Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d29dcc5a1c | |||
d22e0cde8f |
5
dist/smartfile.fs.js
vendored
5
dist/smartfile.fs.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartfile",
|
"name": "smartfile",
|
||||||
"version": "4.2.12",
|
"version": "4.2.13",
|
||||||
"description": "offers smart ways to work with files in nodejs",
|
"description": "offers smart ways to work with files in nodejs",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -164,8 +164,11 @@ tap.test('.Smartfile -> should produce vinyl compatible files', async () => {
|
|||||||
let localSmartfile = smartfileArray[ 0 ]
|
let localSmartfile = smartfileArray[ 0 ]
|
||||||
expect(localSmartfile).to.be.instanceof(smartfile.Smartfile)
|
expect(localSmartfile).to.be.instanceof(smartfile.Smartfile)
|
||||||
expect(localSmartfile.contents).to.be.instanceof(Buffer)
|
expect(localSmartfile.contents).to.be.instanceof(Buffer)
|
||||||
|
// tslint:disable-next-line:no-unused-expression
|
||||||
expect(localSmartfile.isBuffer()).to.be.true
|
expect(localSmartfile.isBuffer()).to.be.true
|
||||||
|
// tslint:disable-next-line:no-unused-expression
|
||||||
expect(localSmartfile.isDirectory()).to.be.false
|
expect(localSmartfile.isDirectory()).to.be.false
|
||||||
|
// tslint:disable-next-line:no-unused-expression
|
||||||
expect(localSmartfile.isNull()).to.be.false
|
expect(localSmartfile.isNull()).to.be.false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
okidoks
|
1
test/testfolder/subfolder/subtestfile.txt
Normal file
1
test/testfolder/subfolder/subtestfile.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
hi
|
@ -375,7 +375,8 @@ export let listFileTree = (dirPathArg: string, miniMatchFilter: string): Promise
|
|||||||
}
|
}
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
cwd: dirPath
|
cwd: dirPath,
|
||||||
|
nodir: true
|
||||||
}
|
}
|
||||||
plugins.glob(miniMatchFilter, options, (err, files: string[]) => {
|
plugins.glob(miniMatchFilter, options, (err, files: string[]) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Reference in New Issue
Block a user