Skip to content

Commit a1195eb

Browse files
committed
Update dev-dependencies
1 parent 1d57317 commit a1195eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+146
-146
lines changed

asset/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {Index} from 'flexsearch'
44
import mean from 'compute-mean'
5-
import toDom from 'hast-util-to-dom'
5+
import {toDom} from 'hast-util-to-dom'
66
import {data} from '../generate/data.js'
77
import {search as searchForm} from '../generate/molecule/search.js'
88
import {helperReduceScore} from '../generate/component/project/helper-reduce-score.js'

crawl/ecosystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path'
33
import {promisify} from 'util'
44
import hostedGitInfo from 'hosted-git-info'
55
import randomUseragent from 'random-useragent'
6-
import trough from 'trough'
6+
import {trough} from 'trough'
77
import chalk from 'chalk'
88
import fetch from 'node-fetch'
99
import pAll from 'p-all'

generate/asset.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import {promisify} from 'util'
44
import glob from 'glob'
55
import sharp from 'sharp'
66
import pAll from 'p-all'
7-
import mkdirp from 'vfile-mkdirp'
8-
import trough from 'trough'
9-
import vfile from 'to-vfile'
10-
import reporter from 'vfile-reporter'
7+
import {mkdirp} from 'vfile-mkdirp'
8+
import {trough} from 'trough'
9+
import {toVFile} from 'to-vfile'
10+
import {reporter} from 'vfile-reporter'
1111
import esbuild from 'esbuild'
1212
import postcss from 'postcss'
1313
import postcssPresetEnv from 'postcss-preset-env'
@@ -32,19 +32,19 @@ if (process.env.UNIFIED_OPTIMIZE_IMAGES) {
3232
}
3333

3434
var processPipeline = trough()
35-
.use(vfile.read)
35+
.use(toVFile.read)
3636
.use(processFile)
3737
.use(move)
3838
.use(mkdir)
39-
.use(vfile.write)
39+
.use(toVFile.write)
4040

4141
var copyPipeline = trough().use(move).use(mkdir).use(copy)
4242

43-
var imagePipeline = trough().use(move).use(mkdir).use(vfile.write).use(print)
43+
var imagePipeline = trough().use(move).use(mkdir).use(toVFile.write).use(print)
4444

4545
var filePipeline = trough()
4646
.use(function (fp, next) {
47-
var file = vfile(fp)
47+
var file = toVFile(fp)
4848
var ext = file.extname
4949
var pipeline = ext in externals ? processPipeline : copyPipeline
5050
pipeline.run(file, next)
@@ -62,8 +62,8 @@ trough()
6262
).then((files) => done(null, files), done)
6363
})
6464
.use(function (files, next) {
65-
var contents = new URL(pack.homepage).host + '\n'
66-
vfile.write({dirname: 'build', basename: 'CNAME', contents: contents}, next)
65+
var value = new URL(pack.homepage).host + '\n'
66+
toVFile.write({dirname: 'build', basename: 'CNAME', value}, next)
6767
})
6868
.run('asset/**/*.*', function (error) {
6969
if (error) {
@@ -101,15 +101,15 @@ function copy(file, next) {
101101
function print(file) {
102102
file.stored = true
103103
// Clear memory.
104-
file.contents = null
104+
file.value = null
105105
console.error(reporter(file))
106106
}
107107

108108
function transformCss(file) {
109109
return postcss(postcssPresetEnv({stage: 0}), cssnano({preset: 'advanced'}))
110110
.process(file.toString('utf8'), {from: file.path})
111111
.then(function (result) {
112-
file.contents = result.css
112+
file.value = result.css
113113
})
114114
}
115115

@@ -125,7 +125,7 @@ function bundleJs(file, next) {
125125
if (result.errors.length > 0) throw new Error('esbuild errors')
126126
if (result.warnings.length > 0) throw new Error('esbuild warnings')
127127
const output = result.outputFiles[0]
128-
file.contents = output.contents
128+
file.value = output.contents
129129
next()
130130
}, next)
131131
}
@@ -139,7 +139,7 @@ function transformPng(file, next) {
139139
}
140140

141141
var run = promisify(imagePipeline.run)
142-
var pipeline = sharp(file.contents)
142+
var pipeline = sharp(file.value)
143143

144144
pipeline
145145
.metadata()
@@ -161,9 +161,9 @@ function transformPng(file, next) {
161161
[media.format](options[media.format])
162162
.toBuffer()
163163
.then((buf) => {
164-
var copy = vfile(file.path)
164+
var copy = toVFile(file.path)
165165

166-
copy.contents = buf
166+
copy.value = buf
167167
copy.stem += '-' + media.size
168168
copy.extname = '.' + media.format
169169

generate/atom/box/item.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import h from 'hastscript'
2-
import visit from 'unist-util-visit'
1+
import {h} from 'hastscript'
2+
import {visit, SKIP} from 'unist-util-visit'
33
import {block} from '../macro/block.js'
44

55
export function item(href, main, footer) {
@@ -12,7 +12,7 @@ export function item(href, main, footer) {
1212
function cleanNestedLinks(node, index, parent) {
1313
if (parent && node.tagName === 'a') {
1414
parent.children.splice(index, 1, ...node.children)
15-
return [visit.SKIP, index]
15+
return [SKIP, index]
1616
}
1717
}
1818
}

generate/atom/box/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import h from 'hastscript'
1+
import {h} from 'hastscript'
22
import {list as baseList} from '../macro/list.js'
33

44
export function list(names, map, options) {

generate/atom/box/more.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import h from 'hastscript'
1+
import {h} from 'hastscript'
22
import {block} from '../macro/block.js'
33

44
export function more(href, children) {

generate/atom/card/item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import h from 'hastscript'
1+
import {h} from 'hastscript'
22
import {block} from '../macro/block.js'
33

44
export function item(href, main, footer) {

generate/atom/card/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import h from 'hastscript'
1+
import {h} from 'hastscript'
22
import {list as baseList} from '../macro/list.js'
33

44
export function list(values, map, options) {

generate/atom/card/more.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import h from 'hastscript'
1+
import {h} from 'hastscript'
22
import {block} from '../macro/block.js'
33

44
export function more(href, children) {

generate/atom/icon/downloads.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import s from 'hastscript/svg.js'
1+
import {s} from 'hastscript'
22

33
export function downloads() {
44
return s(

0 commit comments

Comments
 (0)