Skip to content

Commit

Permalink
Replace dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 9, 2023
1 parent 932c140 commit 6edcd14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* @typedef {import('../index.js').ProcessCallback} ProcessCallback
*/

import structuredClone from '@ungap/structured-clone'
import {bail} from 'bail'
import isBuffer from 'is-buffer'
import extend from 'extend'
import isPlainObj from 'is-plain-obj'
import {trough} from 'trough'
import {VFile} from 'vfile'
Expand Down Expand Up @@ -77,7 +77,7 @@ function base() {
destination.use(...attachers[index])
}

destination.data(extend(true, {}, namespace))
destination.data(structuredClone(namespace))

return destination
}
Expand Down Expand Up @@ -248,7 +248,7 @@ function base() {

if (entry) {
if (isPlainObj(entry[1]) && isPlainObj(value)) {
value = extend(true, entry[1], value)
value = structuredClone({...entry[1], ...value})
}

entry[1] = value
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@
],
"dependencies": {
"@types/unist": "^3.0.0",
"@ungap/structured-clone": "^1.0.0",
"bail": "^2.0.0",
"extend": "^3.0.0",
"is-buffer": "^2.0.0",
"is-plain-obj": "^4.0.0",
"trough": "^2.0.0",
"vfile": "^6.0.0"
},
"devDependencies": {
"@types/extend": "^3.0.0",
"@types/node": "^20.0.0",
"@types/ungap__structured-clone": "^0.3.0",
"c8": "^8.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
Expand Down

0 comments on commit 6edcd14

Please sign in to comment.