Skip to content

Commit e906d76

Browse files
Update dependencies (#513)
* 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
1 parent 37a7ece commit e906d76

File tree

13 files changed

+41
-41
lines changed

13 files changed

+41
-41
lines changed

http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ module.exports = start
1313
function start (entry, opts) {
1414
opts = opts || {}
1515

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

1919
opts = Object.assign({ reload: true }, opts)
2020
var compiler = bankai(entry, opts)

index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ function Bankai (entry, opts) {
3030
this.local = localization(opts.language || 'en-US')
3131
this.log = pino(opts.logStream || process.stdout)
3232

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

3737
var self = this
3838
var methods = [
@@ -142,8 +142,8 @@ function Bankai (entry, opts) {
142142
Bankai.prototype = Object.create(Emitter.prototype)
143143

144144
Bankai.prototype.scripts = function (filename, cb) {
145-
assert.equal(typeof filename, 'string')
146-
assert.equal(typeof cb, 'function')
145+
assert.strictEqual(typeof filename, 'string')
146+
assert.strictEqual(typeof cb, 'function')
147147
var stepName = 'scripts'
148148
var edgeName = filename.split('.')[0]
149149
var self = this
@@ -155,8 +155,8 @@ Bankai.prototype.scripts = function (filename, cb) {
155155
}
156156

157157
Bankai.prototype.styles = function (filename, cb) {
158-
assert.equal(typeof filename, 'string')
159-
assert.equal(typeof cb, 'function')
158+
assert.strictEqual(typeof filename, 'string')
159+
assert.strictEqual(typeof cb, 'function')
160160
var stepName = 'styles'
161161
var edgeName = filename.split('.')[0]
162162
var self = this
@@ -168,8 +168,8 @@ Bankai.prototype.styles = function (filename, cb) {
168168
}
169169

170170
Bankai.prototype.documents = function (url, cb) {
171-
assert.equal(typeof url, 'string')
172-
assert.equal(typeof cb, 'function')
171+
assert.strictEqual(typeof url, 'string')
172+
assert.strictEqual(typeof cb, 'function')
173173

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

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

187187
Bankai.prototype.manifest = function (cb) {
188-
assert.equal(typeof cb, 'function')
188+
assert.strictEqual(typeof cb, 'function')
189189
var stepName = 'manifest'
190190
var edgeName = 'bundle'
191191
var self = this
@@ -197,7 +197,7 @@ Bankai.prototype.manifest = function (cb) {
197197
}
198198

199199
Bankai.prototype.serviceWorker = function (cb) {
200-
assert.equal(typeof cb, 'function')
200+
assert.strictEqual(typeof cb, 'function')
201201
var stepName = 'service-worker'
202202
var edgeName = 'bundle'
203203
var self = this
@@ -209,8 +209,8 @@ Bankai.prototype.serviceWorker = function (cb) {
209209
}
210210

211211
Bankai.prototype.assets = function (filename, cb) {
212-
assert.equal(typeof filename, 'string')
213-
assert.equal(typeof cb, 'function')
212+
assert.strictEqual(typeof filename, 'string')
213+
assert.strictEqual(typeof cb, 'function')
214214
var stepName = 'assets'
215215
var self = this
216216
this.queue[stepName].add(function () {
@@ -222,9 +222,9 @@ Bankai.prototype.assets = function (filename, cb) {
222222
}
223223

224224
Bankai.prototype.sourceMaps = function (stepName, edgeName, cb) {
225-
assert.equal(typeof stepName, 'string')
226-
assert.equal(typeof edgeName, 'string')
227-
assert.equal(typeof cb, 'function')
225+
assert.strictEqual(typeof stepName, 'string')
226+
assert.strictEqual(typeof edgeName, 'string')
227+
assert.strictEqual(typeof cb, 'function')
228228
edgeName = /\.map$/.test(edgeName) ? edgeName : edgeName + '.map'
229229
var self = this
230230
var data = self.graph.data[stepName][edgeName]

lib/cmd-start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function start (entry, opts) {
2929

3030
render()
3131

32-
getPort({port: 8080})
32+
getPort({ port: 8080 })
3333
.then(function (port) {
3434
server.listen(port, function () {
3535
state.port = port

lib/exorcise.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module.exports = exorcise
99

1010
function exorcise (buf, name, done) {
1111
assert.ok(Buffer.isBuffer(buf), 'lib/exorcise: buf should be a buffer')
12-
assert.equal(typeof name, 'string', 'lib/exorcise: name should be type string')
13-
assert.equal(typeof done, 'function', 'lib/exorcise: done should be type function')
12+
assert.strictEqual(typeof name, 'string', 'lib/exorcise: name should be type string')
13+
assert.strictEqual(typeof done, 'function', 'lib/exorcise: done should be type function')
1414

1515
done = once(done)
1616

lib/graph-document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function node (state, createEdge) {
5252
function renderApp (done) {
5353
ssr.render(route, function (err, content) {
5454
if (err) {
55-
self.emit('ssr', {success: false, error: err})
55+
self.emit('ssr', { success: false, error: err })
5656
return done(err)
5757
}
5858
done(null, content)

lib/graph-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var defaultBrowsers = [
3232
module.exports = node
3333

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

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

lib/graph-service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function node (state, createEdge) {
2323
var self = this
2424
var unwatch
2525

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

2828
var basedir = state.metadata.dirname
2929

lib/graph-style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var clean = new Clean(createCleanCssOptions())
77
module.exports = node
88

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

1212
assert.ok(state.scripts.bundle, 'bankai/node-style: state.script.bundle exists')
1313
assert.ok(state.scripts.style, 'bankai/node-style: state.script.style exists')

lib/http-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function createDevServer (connectionHandler) {
3636
net.createServer(tcpConnection).listen(port, onNetListen)
3737

3838
function onNetListen () {
39-
getPort({port: 8080}).then(function (port) {
39+
getPort({ port: 8080 }).then(function (port) {
4040
httpPort = port
4141
var httpServer = http.createServer(httpConnection)
4242
.listen(port, onHttpListen)
@@ -55,7 +55,7 @@ function createDevServer (connectionHandler) {
5555
var cert = keys.cert
5656
var key = keys.key
5757

58-
getPort({port: 4443}).then(function (port) {
58+
getPort({ port: 4443 }).then(function (port) {
5959
httpsPort = port
6060
var serverOpts = { cert, key, allowHTTP1: true }
6161
var http2Server = createSecureServer(serverOpts, connectionHandler)

lib/track-dir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Tracker.prototype.start = function (basedir, dirnames, opts) {
3333
opts = opts || {}
3434
var watch = opts.watch === undefined ? false : opts.watch
3535

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

4040
// Read out all files in all directories once.
4141
async.mapLimit(dirnames, 1, init, function (err) {

0 commit comments

Comments
 (0)