Skip to content

Commit

Permalink
fix: swap clone package for rfdc to improve speed of error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmeulemans committed Nov 22, 2021
1 parent e48d6c9 commit a75c857
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
],
"dependencies": {
"cli-truncate": "^2.1.0",
"clone": "^2.1.2",
"colorette": "^2.0.16",
"log-update": "^4.0.0",
"p-map": "^4.0.0",
"rfdc": "^1.3.0",
"rxjs": "^7.4.0",
"through": "^2.3.8",
"wrap-ansi": "^7.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/utils/general.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as clone from 'clone'
import * as rfdc from 'rfdc'

const clone = rfdc({ circles: true })

/**
* Deep clones a object in the most easiest manner.
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4797,6 +4797,11 @@ rewire@^5.0.0:
dependencies:
eslint "^6.8.0"

rfdc@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b"
integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==

[email protected]:
version "2.6.3"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
Expand Down

0 comments on commit a75c857

Please sign in to comment.