chore(deps): update major dependencies

pull/210/head
Romain 4 years ago
parent 6a38bac5db
commit 7e5ccbfbaa

@ -0,0 +1,4 @@
recursive: true
require:
- test/helpers.js
- test/log.js

830
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -54,10 +54,10 @@
"lodash": "^4.17.19",
"micromatch": "^4.0.2",
"moment": "^2.27.0",
"readdir-enhanced": "^2.2.4",
"readdir-enhanced": "^6.0.3",
"resolve-pkg": "^2.0.0",
"slugify": "^1.4.4",
"through2": "^3.0.1",
"through2": "^4.0.2",
"thumbsup-downsize": "^2.4.2",
"url-join": "^4.0.1",
"yargs": "^15.4.1",
@ -69,16 +69,16 @@
"injectmd": "^1.0.0",
"istanbul": "^0.4.5",
"markdown-toc": "^1.1.0",
"mocha": "^7.2.0",
"mocha": "^8.0.1",
"mock-fs": "^4.12.0",
"mock-spawn": "^0.2.6",
"require-all": "^3.0.0",
"require-lint": "^1.4.0",
"require-lint": "^2.0.0",
"should": "^13.2.3",
"sinon": "^9.0.2",
"standard": "^12.0.1",
"stream-mock": "^2.0.5",
"tmp": "^0.1.0"
"tmp": "^0.2.1"
},
"standard": {
"ignore": [

@ -20,9 +20,10 @@ exports.find = function (rootFolder, options, callback) {
exclude: options.exclude || [],
extensions: exports.supportedExtensions(options)
})
const stream = readdir.readdirStreamStat(rootFolder, {
const stream = readdir.stream(rootFolder, {
filter: file => pattern.match(file.path),
deep: dir => pattern.canTraverse(dir.path),
stats: true,
basePath: '',
sep: '/'
})

@ -1,6 +1,5 @@
const fs = require('fs')
const path = require('path')
const os = require('os')
const should = require('should/as-function')
const tmp = require('tmp')
const AlbumMapper = require('../../src/input/album-mapper.js')
@ -43,7 +42,6 @@ describe('Album mapper', function () {
describe('custom function using file://', () => {
it('with an absolute path', () => {
const absolutePath = createTmpFile({
dir: os.tmpdir(),
contents: "module.exports = file => ['my-album']"
})
const mapper = new AlbumMapper([`file://${absolutePath}`])
@ -52,7 +50,7 @@ describe('Album mapper', function () {
it('with a path relative to the current directory', () => {
const absolutePath = createTmpFile({
dir: process.cwd(),
tmpdir: process.cwd(),
contents: "module.exports = file => ['my-album']"
})
const relative = path.basename(absolutePath)
@ -68,7 +66,7 @@ describe('Album mapper', function () {
*/
function createTmpFile (opts) {
const file = tmp.fileSync({
dir: opts.dir,
tmpdir: opts.tmpdir || undefined,
discardDescriptor: true
})
fs.writeFileSync(file.name, opts.contents)

@ -1,3 +0,0 @@
--recursive
--require test/helpers.js
--require test/log.js
Loading…
Cancel
Save