hexo-renderer-ejs
Advanced tools
Comparing version 0.3.1 to 1.0.0
@@ -5,4 +5,4 @@ /* global hexo */ | ||
var renderer = require('./lib/renderer'); | ||
const renderer = require('./lib/renderer'); | ||
hexo.extend.renderer.register('ejs', 'html', renderer, true); |
'use strict'; | ||
var ejs = require('ejs'); | ||
var assign = require('object-assign'); | ||
const ejs = require('ejs'); | ||
function ejsRenderer(data, locals) { | ||
return ejs.render(data.text, assign({filename: data.path}, locals)); | ||
return ejs.render(data.text, Object.assign({filename: data.path}, locals)); | ||
} | ||
@@ -9,0 +8,0 @@ |
{ | ||
"name": "hexo-renderer-ejs", | ||
"version": "0.3.1", | ||
"version": "1.0.0", | ||
"description": "EJS renderer plugin for Hexo", | ||
@@ -8,6 +8,12 @@ "main": "index", | ||
"eslint": "eslint .", | ||
"jscs": "jscs .", | ||
"test": "mocha test/index.js", | ||
"test-cov": "istanbul cover --print both _mocha -- test/index.js" | ||
"test-cov": "nyc npm run test" | ||
}, | ||
"directories": { | ||
"lib": "./lib" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"lib/" | ||
], | ||
"repository": "hexojs/hexo-renderer-ejs", | ||
@@ -25,15 +31,15 @@ "keywords": [ | ||
"dependencies": { | ||
"ejs": "^2.3.4", | ||
"object-assign": "^4.0.1" | ||
"ejs": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.4.1", | ||
"eslint": "^1.10.3", | ||
"eslint-config-hexo": "^1.0.2", | ||
"hexo-fs": "^0.2.0", | ||
"istanbul": "^0.4.1", | ||
"jscs": "^2.7.0", | ||
"jscs-preset-hexo": "^1.0.1", | ||
"mocha": "^2.3.4" | ||
"chai": "^4.2.0", | ||
"eslint": "^6.0.1", | ||
"eslint-config-hexo": "^3.0.0", | ||
"hexo-fs": "^2.0.0", | ||
"mocha": "^6.0.2", | ||
"nyc": "^14.1.1" | ||
}, | ||
"engines": { | ||
"node": ">=8.6.0" | ||
} | ||
} |
# [EJS] renderer | ||
[![Build Status](https://travis-ci.org/hexojs/hexo-renderer-ejs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-renderer-ejs) [![NPM version](https://badge.fury.io/js/hexo-renderer-ejs.svg)](http://badge.fury.io/js/hexo-renderer-ejs) [![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-renderer-ejs.svg)](https://coveralls.io/r/hexojs/hexo-renderer-ejs?branch=master) | ||
[![Build Status](https://travis-ci.org/hexojs/hexo-renderer-ejs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-renderer-ejs) | ||
[![NPM version](https://badge.fury.io/js/hexo-renderer-ejs.svg)](https://www.npmjs.com/package/hexo-renderer-ejs) | ||
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-renderer-ejs.svg)](https://coveralls.io/r/hexojs/hexo-renderer-ejs?branch=master) | ||
@@ -5,0 +7,0 @@ Add support for [EJS]. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
6
1
18
2920
5
15
1
- Removedobject-assign@^4.0.1
- Removedobject-assign@4.1.1(transitive)
Updatedejs@^2.6.1