Skip to content

Commit

Permalink
upgrade: fast-copy to v3 (#379)
Browse files Browse the repository at this point in the history
* upgrade: fast-copy to v3

* fix: createCopier
  • Loading branch information
ilteoood authored Oct 5, 2022
1 parent 06ebefe commit 00fc6af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const fastCopy = require('fast-copy')
const { createCopier } = require('fast-copy')
const dateformat = require('dateformat')
const SonicBoom = require('sonic-boom')
const stringifySafe = require('fast-safe-stringify')
Expand All @@ -18,6 +18,8 @@ const {
DATE_FORMAT_SIMPLE
} = require('./constants')

const fastCopy = createCopier({})

module.exports = {
isObject,
prettifyErrorLog,
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 @@
"dependencies": {
"colorette": "^2.0.7",
"dateformat": "^4.6.3",
"fast-copy": "^2.1.1",
"fast-copy": "^3.0.0",
"fast-safe-stringify": "^2.1.1",
"joycon": "^3.1.1",
"help-me": "^4.0.1",
Expand Down
3 changes: 2 additions & 1 deletion test/lib/utils.internals.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
process.env.TZ = 'UTC'

const tap = require('tap')
const fastCopy = require('fast-copy')
const { createCopier } = require('fast-copy')
const stringifySafe = require('fast-safe-stringify')
const { internals } = require('../../lib/utils')
const fastCopy = createCopier({})

tap.test('#joinLinesWithIndentation', t => {
t.test('joinLinesWithIndentation adds indentation to beginning of subsequent lines', async t => {
Expand Down

0 comments on commit 00fc6af

Please sign in to comment.