Skip to content

Commit

Permalink
Update dependencies (#513)
Browse files Browse the repository at this point in the history
* Update dependencies.

* Update standard.

* dont use assert.strict

* fixup! dont use assert.strict

* Back to brfs 1

* Update `debug`.

* Update `strip-ansi`.

* Update streams modules.

* Fix hash
  • Loading branch information
goto-bus-stop authored Jun 22, 2019
1 parent 37a7ece commit e906d76
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions http.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module.exports = start
function start (entry, opts) {
opts = opts || {}

assert.equal(typeof entry, 'string', 'bankai/http: entry should be type string')
assert.equal(typeof opts, 'object', 'bankai/http: opts should be type object')
assert.strictEqual(typeof entry, 'string', 'bankai/http: entry should be type string')
assert.strictEqual(typeof opts, 'object', 'bankai/http: opts should be type object')

opts = Object.assign({ reload: true }, opts)
var compiler = bankai(entry, opts)
Expand Down
30 changes: 15 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function Bankai (entry, opts) {
this.local = localization(opts.language || 'en-US')
this.log = pino(opts.logStream || process.stdout)

assert.equal(typeof entry, 'string', 'bankai: entry should be type string')
assert.strictEqual(typeof entry, 'string', 'bankai: entry should be type string')
assert.ok(path.isAbsolute(entry), 'bankai: entry should be an absolute path. Received: ' + entry)
assert.equal(typeof opts, 'object', 'bankai: opts should be type object')
assert.strictEqual(typeof opts, 'object', 'bankai: opts should be type object')

var self = this
var methods = [
Expand Down Expand Up @@ -142,8 +142,8 @@ function Bankai (entry, opts) {
Bankai.prototype = Object.create(Emitter.prototype)

Bankai.prototype.scripts = function (filename, cb) {
assert.equal(typeof filename, 'string')
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof filename, 'string')
assert.strictEqual(typeof cb, 'function')
var stepName = 'scripts'
var edgeName = filename.split('.')[0]
var self = this
Expand All @@ -155,8 +155,8 @@ Bankai.prototype.scripts = function (filename, cb) {
}

Bankai.prototype.styles = function (filename, cb) {
assert.equal(typeof filename, 'string')
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof filename, 'string')
assert.strictEqual(typeof cb, 'function')
var stepName = 'styles'
var edgeName = filename.split('.')[0]
var self = this
Expand All @@ -168,8 +168,8 @@ Bankai.prototype.styles = function (filename, cb) {
}

Bankai.prototype.documents = function (url, cb) {
assert.equal(typeof url, 'string')
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof url, 'string')
assert.strictEqual(typeof cb, 'function')

var filename = url.split('?')[0]

Expand All @@ -185,7 +185,7 @@ Bankai.prototype.documents = function (url, cb) {
}

Bankai.prototype.manifest = function (cb) {
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof cb, 'function')
var stepName = 'manifest'
var edgeName = 'bundle'
var self = this
Expand All @@ -197,7 +197,7 @@ Bankai.prototype.manifest = function (cb) {
}

Bankai.prototype.serviceWorker = function (cb) {
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof cb, 'function')
var stepName = 'service-worker'
var edgeName = 'bundle'
var self = this
Expand All @@ -209,8 +209,8 @@ Bankai.prototype.serviceWorker = function (cb) {
}

Bankai.prototype.assets = function (filename, cb) {
assert.equal(typeof filename, 'string')
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof filename, 'string')
assert.strictEqual(typeof cb, 'function')
var stepName = 'assets'
var self = this
this.queue[stepName].add(function () {
Expand All @@ -222,9 +222,9 @@ Bankai.prototype.assets = function (filename, cb) {
}

Bankai.prototype.sourceMaps = function (stepName, edgeName, cb) {
assert.equal(typeof stepName, 'string')
assert.equal(typeof edgeName, 'string')
assert.equal(typeof cb, 'function')
assert.strictEqual(typeof stepName, 'string')
assert.strictEqual(typeof edgeName, 'string')
assert.strictEqual(typeof cb, 'function')
edgeName = /\.map$/.test(edgeName) ? edgeName : edgeName + '.map'
var self = this
var data = self.graph.data[stepName][edgeName]
Expand Down
2 changes: 1 addition & 1 deletion lib/cmd-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function start (entry, opts) {

render()

getPort({port: 8080})
getPort({ port: 8080 })
.then(function (port) {
server.listen(port, function () {
state.port = port
Expand Down
4 changes: 2 additions & 2 deletions lib/exorcise.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = exorcise

function exorcise (buf, name, done) {
assert.ok(Buffer.isBuffer(buf), 'lib/exorcise: buf should be a buffer')
assert.equal(typeof name, 'string', 'lib/exorcise: name should be type string')
assert.equal(typeof done, 'function', 'lib/exorcise: done should be type function')
assert.strictEqual(typeof name, 'string', 'lib/exorcise: name should be type string')
assert.strictEqual(typeof done, 'function', 'lib/exorcise: done should be type function')

done = once(done)

Expand Down
2 changes: 1 addition & 1 deletion lib/graph-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function node (state, createEdge) {
function renderApp (done) {
ssr.render(route, function (err, content) {
if (err) {
self.emit('ssr', {success: false, error: err})
self.emit('ssr', { success: false, error: err })
return done(err)
}
done(null, content)
Expand Down
2 changes: 1 addition & 1 deletion lib/graph-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var defaultBrowsers = [
module.exports = node

function node (state, createEdge) {
assert.equal(typeof state.metadata.entry, 'string', 'state.metadata.entries should be type string')
assert.strictEqual(typeof state.metadata.entry, 'string', 'state.metadata.entries should be type string')

this.emit('progress', 'scripts', 0)

Expand Down
2 changes: 1 addition & 1 deletion lib/graph-service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function node (state, createEdge) {
var self = this
var unwatch

assert.equal(typeof entry, 'string', 'bankai.service-worker: state.metadata.entries should be type string')
assert.strictEqual(typeof entry, 'string', 'bankai.service-worker: state.metadata.entries should be type string')

var basedir = state.metadata.dirname

Expand Down
2 changes: 1 addition & 1 deletion lib/graph-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var clean = new Clean(createCleanCssOptions())
module.exports = node

function node (state, createEdge) {
assert.equal(typeof state.metadata.entry, 'string', 'state.metadata.entries should be type string')
assert.strictEqual(typeof state.metadata.entry, 'string', 'state.metadata.entries should be type string')

assert.ok(state.scripts.bundle, 'bankai/node-style: state.script.bundle exists')
assert.ok(state.scripts.style, 'bankai/node-style: state.script.style exists')
Expand Down
4 changes: 2 additions & 2 deletions lib/http-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function createDevServer (connectionHandler) {
net.createServer(tcpConnection).listen(port, onNetListen)

function onNetListen () {
getPort({port: 8080}).then(function (port) {
getPort({ port: 8080 }).then(function (port) {
httpPort = port
var httpServer = http.createServer(httpConnection)
.listen(port, onHttpListen)
Expand All @@ -55,7 +55,7 @@ function createDevServer (connectionHandler) {
var cert = keys.cert
var key = keys.key

getPort({port: 4443}).then(function (port) {
getPort({ port: 4443 }).then(function (port) {
httpsPort = port
var serverOpts = { cert, key, allowHTTP1: true }
var http2Server = createSecureServer(serverOpts, connectionHandler)
Expand Down
4 changes: 2 additions & 2 deletions lib/track-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Tracker.prototype.start = function (basedir, dirnames, opts) {
opts = opts || {}
var watch = opts.watch === undefined ? false : opts.watch

assert.equal(typeof basedir, 'string', 'lib/track-dir: basedir should be type string')
assert.strictEqual(typeof basedir, 'string', 'lib/track-dir: basedir should be type string')
assert.ok(Array.isArray(dirnames), 'lib/track-dir: basedir should be an Array')
assert.equal(this.watching, false, 'lib/track-dir: already watching a set of directories')
assert.strictEqual(this.watching, false, 'lib/track-dir: already watching a set of directories')

// Read out all files in all directories once.
async.mapLimit(dirnames, 1, init, function (err) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function createUi (compiler, state) {
}

function onresize () {
diff.resize({width: process.stdout.columns, height: process.stdout.rows})
diff.resize({ width: process.stdout.columns, height: process.stdout.rows })
state.log.resize({ width: process.stdout.columns, height: process.stdout.rows - 2 })
clearScreen()
render()
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"brfs": "^1.4.4",
"brfs": "^1.6.1",
"brotli": "^1.3.2",
"browserify": "^16.0.0",
"browserslist": "^3.1.1",
"browserslist": "^4.1.1",
"buffer-graph": "^4.1.0",
"clean-css": "^4.1.9",
"concat-stream": "^1.6.0",
"concat-stream": "^2.0.0",
"css-extract": "^1.2.0",
"debug": "^3.1.0",
"debug": "^4.1.1",
"dedent": "^0.7.0",
"disc": "^1.3.3",
"documentify": "^3.1.0",
Expand All @@ -42,9 +42,9 @@
"fast-json-parse": "^1.0.3",
"flush-write-stream": "^1.0.2",
"fs-compare": "^0.0.4",
"get-port": "^3.2.0",
"get-port": "^4.0.0",
"glslify": "^6.1.0",
"gzip-size": "^4.1.0",
"gzip-size": "^5.0.0",
"hstream": "^1.1.0",
"html-minifier": "^3.5.8",
"http-gzip-maybe": "^1.0.0",
Expand All @@ -59,7 +59,7 @@
"on-idle": "^3.1.4",
"open": "^6.3.0",
"p-wait-all": "^1.0.0",
"pino": "^4.10.4",
"pino": "^5.5.0",
"pino-colada": "^1.4.2",
"prettier-bytes": "^1.0.4",
"pump": "^3.0.0",
Expand All @@ -74,10 +74,10 @@
"server-router": "^6.0.0",
"sheetify": "^7.1.0",
"split-require": "^3.1.1",
"split2": "^2.2.0",
"strip-ansi": "^4.0.0",
"split2": "^3.0.0",
"strip-ansi": "^5.0.0",
"tfilter": "^1.0.1",
"through2": "^2.0.3",
"through2": "^3.0.0",
"tinyify": "^2.4.0",
"v8-compile-cache": "^2.0.0",
"wasm-brotli": "^1.0.2",
Expand All @@ -91,7 +91,7 @@
"choo-devtools": "^2.3.3",
"choo-service-worker": "^2.4.0",
"read-file-tree": "^1.1.0",
"standard": "^11.0",
"standard": "^12.0.1",
"tachyons": "^4.9.1",
"tape": "^4.8.0",
"tmp": "github:raszi/node-tmp#310c60f",
Expand Down
2 changes: 1 addition & 1 deletion ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var choo = require('./choo')

module.exports = class ServerRender {
constructor (entry) {
assert.equal(typeof entry, 'string', 'bankai/ssr/index.js: entry should be type string')
assert.strictEqual(typeof entry, 'string', 'bankai/ssr/index.js: entry should be type string')

this.entry = entry
this.error = null
Expand Down

0 comments on commit e906d76

Please sign in to comment.