Skip to content

Commit

Permalink
Bump standard devDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Jun 7, 2021
1 parent 37bd9c9 commit d74d7a8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict'

var resolve = require('path').resolve
var isWindows = process.platform === 'win32'
var info = isWindows ? require('bindings')('VersionInfo').getInfo : null
const resolve = require('path').resolve
const isWindows = process.platform === 'win32'
const info = isWindows ? require('bindings')('VersionInfo').getInfo : null

module.exports = function (file) {
if (typeof file !== 'string') {
var t = typeof file
const t = typeof file
throw new Error('win-version-info requires a string filename, got: ' + t)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"hallmark": "^2.0.0",
"prebuild": "^10.0.0",
"prebuild-ci": "^3.0.0",
"standard": "^14.0.0",
"standard": "^16.0.3",
"tape": "^5.0.0",
"win-dummy-exe": "0.0.1",
"xtend": "^4.0.1"
Expand Down
4 changes: 2 additions & 2 deletions test/basic-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (process.platform !== 'win32') {
const gen = require('win-dummy-exe')
const xtend = require('xtend')

var dummyDefaults = {
const dummyDefaults = {
InternalName: 'dummy.exe',
OriginalFilename: 'dummy.exe'
}
Expand Down Expand Up @@ -121,7 +121,7 @@ if (process.platform !== 'win32') {
})

test('binding throws on non-string', function (t) {
var info = require('bindings')('VersionInfo').getInfo
const info = require('bindings')('VersionInfo').getInfo

t.plan(1)

Expand Down
24 changes: 12 additions & 12 deletions test/mem-test-manual.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ const gc = global.gc
test('memory usage', function (t) {
t.plan(2)

var company = 'beep'
var TOTAL = 2e5
var STEP = 1e4
const company = 'beep'
const TOTAL = 2e5
const STEP = 1e4

gen({ assemblyCompany: company }, function (err, exe) {
t.ifError(err, 'no gen error')

var n = 0
var base = process.memoryUsage().rss
let n = 0
const base = process.memoryUsage().rss

;(function next () {
for (var i = 0; i < STEP; i++, n++) {
for (let i = 0; i < STEP; i++, n++) {
if (vi(exe).CompanyName !== company) throw new Error('Info wrong')
}

Expand All @@ -41,15 +41,15 @@ test('memory usage', function (t) {
test('memory usage with unfound executable', function (t) {
t.plan(1)

var TOTAL = 2e5
var STEP = 1e4
const TOTAL = 2e5
const STEP = 1e4

var n = 0
var base = process.memoryUsage().rss
let n = 0
const base = process.memoryUsage().rss

;(function next () {
for (var i = 0; i < STEP; i++, n++) {
var err = null
for (let i = 0; i < STEP; i++, n++) {
let err = null
try { vi('nope.exe') } catch (e) { err = e }
if (!err) throw new Error('Expected an error')
}
Expand Down

0 comments on commit d74d7a8

Please sign in to comment.