Skip to content

Commit

Permalink
Merge pull request #91 from YoshinoriN/drop-object-assign-package
Browse files Browse the repository at this point in the history
refactor(package): delete object-assign package and use Object.assign instead of it
  • Loading branch information
segayuu committed Apr 13, 2019
2 parents e53bd50 + dbcbd44 commit d6e6afc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -3,9 +3,8 @@
'use strict';

var renderer = require('./lib/renderer');
var assign = require('object-assign');

hexo.config.marked = assign({
hexo.config.marked = Object.assign({
gfm: true,
pedantic: false,
sanitize: false,
Expand Down
3 changes: 1 addition & 2 deletions lib/renderer.js
@@ -1,7 +1,6 @@
'use strict';

var marked = require('marked');
var assign = require('object-assign');
var stripIndent = require('strip-indent');
var util = require('hexo-util');

Expand Down Expand Up @@ -101,7 +100,7 @@ marked.setOptions({
});

module.exports = function(data, options) {
return marked(data.text, assign({
return marked(data.text, Object.assign({
renderer: new Renderer()
}, this.config.marked, options));
};
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -26,7 +26,6 @@
"dependencies": {
"hexo-util": "^0.6.2",
"marked": "^0.6.1",
"object-assign": "^4.1.1",
"strip-indent": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit d6e6afc

Please sign in to comment.