Skip to content

Commit e12adad

Browse files
committed
Remove dependency
1 parent 2860ad6 commit e12adad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
var information = require('property-information');
55
var camelcase = require('camelcase');
66
var vfileLocation = require('vfile-location');
7-
var has = require('has');
87
var h = require('hastscript');
98

109
/* Expose. */
1110
module.exports = wrapper;
1211

12+
var own = {}.hasOwnProperty;
13+
1314
/* Handlers. */
1415
var map = {
1516
'#document': root,
@@ -41,7 +42,7 @@ function wrapper(ast, options) {
4142

4243
/* Transform a node. */
4344
function transform(ast, config) {
44-
var fn = has(map, ast.nodeName) ? map[ast.nodeName] : element;
45+
var fn = own.call(map, ast.nodeName) ? map[ast.nodeName] : element;
4546
var children;
4647
var node;
4748
var position;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
],
2121
"dependencies": {
2222
"camelcase": "^3.0.0",
23-
"has": "^1.0.1",
2423
"hastscript": "^3.0.0",
2524
"property-information": "^3.1.0",
2625
"vfile-location": "^2.0.0"

0 commit comments

Comments
 (0)