Skip to content

Commit 60482b3

Browse files
ChristianMurphywooorm
authored andcommitted
Remove object-assign dependency
Closes GH-4. Reviewed-by: Titus Wormer <[email protected]>
1 parent 049c254 commit 60482b3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict'
22

3-
var assign = require('object-assign')
4-
53
module.exports = u
64

75
function u(type, props, value) {
@@ -15,7 +13,7 @@ function u(type, props, value) {
1513
props = {}
1614
}
1715

18-
node = assign({type: String(type)}, props)
16+
node = Object.assign({type: String(type)}, props)
1917

2018
if (Array.isArray(value)) {
2119
node.children = value

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
"types/index.d.ts"
2929
],
3030
"types": "types/index.d.ts",
31-
"dependencies": {
32-
"object-assign": "^4.1.0"
33-
},
31+
"dependencies": {},
3432
"devDependencies": {
3533
"@types/mdast": "^3.0.0",
3634
"dtslint": "^0.9.9",

0 commit comments

Comments
 (0)