Skip to content

Commit

Permalink
Remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 6, 2020
1 parent e9ab8f5 commit 7824e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

var xtend = require('xtend')
var matters = require('./lib/matters')
var parse = require('./lib/parse')
var compile = require('./lib/compile')
Expand Down Expand Up @@ -32,12 +31,12 @@ function attachParser(parser, matters) {
}

proto.blockMethods = names.concat(proto.blockMethods)
proto.blockTokenizers = xtend(tokenizers, proto.blockTokenizers)
proto.blockTokenizers = Object.assign({}, tokenizers, proto.blockTokenizers)
}

function attachCompiler(compiler, matters) {
var proto = compiler.prototype
proto.visitors = xtend(wrap(compile, matters), proto.visitors)
proto.visitors = Object.assign({}, wrap(compile, matters), proto.visitors)
}

function wrap(func, matters) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
],
"types": "types/index.d.ts",
"dependencies": {
"fault": "^1.0.1",
"xtend": "^4.0.1"
"fault": "^1.0.1"
},
"devDependencies": {
"browserify": "^16.0.0",
Expand Down

0 comments on commit 7824e34

Please sign in to comment.