Skip to content

Commit

Permalink
chore: use node: prefix for all builtin modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rprieto committed Dec 10, 2023
1 parent 0399d66 commit 206fb54
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/image/gifsicle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const childProcess = require('child_process')
const childProcess = require('node:child_process')
const trace = require('debug')('thumbsup:trace')
const GIF_FILE = /\.gif$/i

Expand Down
4 changes: 2 additions & 2 deletions lib/image/heic.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const childProcess = require('node:child_process')
const path = require('node:path')
const async = require('async')
const childProcess = require('child_process')
const path = require('path')
const tmp = require('tmp')
const trace = require('debug')('thumbsup:trace')

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('node:fs')
const path = require('node:path')
const async = require('async')
const fs = require('fs')
const path = require('path')
const gifsicle = require('./image/gifsicle')
const gmagick = require('./image/gmagick')
const heic = require('./image/heic')
Expand Down
2 changes: 1 addition & 1 deletion lib/video/ffargs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require('path')
const path = require('node:path')

const DEFAULT_AUDIO_BITRATE = '96k'
const DEFAULT_VIDEO_FPS = 25
Expand Down
2 changes: 1 addition & 1 deletion lib/video/ffmpeg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const childProcess = require('child_process')
const childProcess = require('node:child_process')
const trace = require('debug')('thumbsup:trace')
const debug = require('debug')('thumbsup:debug')
const EventEmitter = require('events')
Expand Down
2 changes: 1 addition & 1 deletion lib/video/ffprobe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const childProcess = require('child_process')
const childProcess = require('node:child_process')
const trace = require('debug')('thumbsup:trace')

exports.getDuration = function (src, callback) {
Expand Down
2 changes: 1 addition & 1 deletion test/clean.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('node:path')
const fs = require('fs-extra')
const path = require('path')

module.exports = async () => {
// Clean up test data before the tests run
Expand Down
2 changes: 1 addition & 1 deletion test/integration/diff.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const childProcess = require('node:child_process')
const _ = require('lodash')
const should = require('should/as-function')
const childProcess = require('child_process')
const gm = require('gm')
const convert = require('../../lib/index')

Expand Down
2 changes: 1 addition & 1 deletion test/integration/video.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const assert = require('node:assert')
const should = require('should/as-function')
const assert = require('assert')
const diff = require('./diff')
const convert = require('../../lib/index')

Expand Down
2 changes: 1 addition & 1 deletion test/unit/ffmpeg.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const childProcess = require('node:child_process')
const should = require('should/as-function')
const childProcess = require('child_process')
const ffmpeg = require('../../lib/video/ffmpeg')
const mockSpawn = require('mock-spawn')
const sinon = require('sinon')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ffprobe.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const childProcess = require('node:child_process')
const should = require('should/as-function')
const sinon = require('sinon')
const childProcess = require('child_process')
const ffprobe = require('../../lib/video/ffprobe')

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gifsicle.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const childProcess = require('node:child_process')
const should = require('should/as-function')
const childProcess = require('child_process')
const sinon = require('sinon')
const gifsicle = require('../../lib/image/gifsicle')

Expand Down
2 changes: 1 addition & 1 deletion test/unit/gmagick.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const should = require('should/as-function')
const gmagick = require('../../lib/image/gmagick')
const sinon = require('sinon')
const gmagick = require('../../lib/image/gmagick')

function gm () {
return {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/heic.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const childProcess = require('node:child_process')
const should = require('should/as-function')
const childProcess = require('child_process')
const async = require('async')
const sinon = require('sinon')
const heic = require('../../lib/image/heic')
Expand Down

0 comments on commit 206fb54

Please sign in to comment.