hexo-include
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -7,6 +7,5 @@ /* | ||
*/ | ||
'use strict'; | ||
var pathFn = require('path'); | ||
var fs = require('hexo-fs'); | ||
var pathFn = require('path'); | ||
@@ -13,0 +12,0 @@ module.exports = function(ctx) { |
@@ -13,3 +13,2 @@ /** | ||
*/ | ||
'use strict'; | ||
@@ -16,0 +15,0 @@ var include = require('./include')(hexo); |
{ | ||
"name": "hexo-include", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A Hexo plugin for including raw content of any text file into a post", | ||
@@ -29,11 +29,16 @@ "license": "MIT", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.7.1", | ||
"eslint-config-hexo": "^1.0.3", | ||
"hexo": "^3.2.2", | ||
"hexo-fs": "^0.1.6", | ||
"mocha": "^3.1.1" | ||
"mocha": "^3.1.1", | ||
"xo": "^0.17.0" | ||
}, | ||
"scripts": { | ||
"test": "test/test.js" | ||
"test": "xo && mocha test/test.js" | ||
}, | ||
"xo": { | ||
"extends": "hexo", | ||
"root": true, | ||
"globals": ["hexo"] | ||
} | ||
} |
@@ -1,8 +0,8 @@ | ||
'use strict'; | ||
/* eslint-env node, mocha */ | ||
var should = require('chai').should(); // eslint-disable-line | ||
var pathFn = require('path'); | ||
var should = require('chai').should(); | ||
var Hexo = require('hexo'); | ||
var fs = require('hexo-fs'); | ||
var Hexo = require('hexo'); | ||
var hexo = new Hexo(pathFn.join(__dirname, 'include_test')); | ||
@@ -12,3 +12,3 @@ | ||
describe('include tag', function() { | ||
describe('Include tag', function() { | ||
var filePath = pathFn.join(hexo.source_dir, 'test_dir/test.html'); | ||
@@ -15,0 +15,0 @@ var emptyPath = pathFn.join(hexo.source_dir, 'test_dir/empty.html'); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5604
7
92
1