Comparing version 0.5.1 to 0.5.2
@@ -1,1 +0,1 @@ | ||
{"languages":["1c","accesslog","actionscript","apache","applescript","armasm","xml","asciidoc","aspectj","autohotkey","autoit","avrasm","axapta","bash","brainfuck","cal","capnproto","ceylon","clojure","clojure-repl","cmake","coffeescript","cpp","crmsh","crystal","cs","css","d","markdown","dart","delphi","diff","django","dns","dockerfile","dos","dust","elixir","elm","ruby","erb","erlang-repl","erlang","fix","fortran","fsharp","gams","gcode","gherkin","glsl","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","http","inform7","ini","irpf90","java","javascript","json","julia","kotlin","lasso","less","lisp","livecodeserver","livescript","lua","makefile","mathematica","matlab","mel","mercury","mizar","perl","mojolicious","monkey","nginx","nimrod","nix","nsis","objectivec","ocaml","openscad","oxygene","parser3","pf","php","powershell","processing","profile","prolog","protobuf","puppet","python","q","r","rib","roboconf","rsl","ruleslanguage","rust","scala","scheme","scilab","scss","smali","smalltalk","sml","sqf","sql","stata","step21","stylus","swift","tcl","tex","thrift","tp","twig","typescript","vala","vbnet","vbscript","vbscript-html","verilog","vhdl","vim","x86asm","xl","xquery","zephir"],"aliases":{"1c":"1c","accesslog":"accesslog","actionscript":"actionscript","as":"actionscript","apache":"apache","apacheconf":"apache","applescript":"applescript","osascript":"applescript","armasm":"armasm","arm":"armasm","xml":"xml","html":"xml","xhtml":"xml","rss":"xml","atom":"xml","xsl":"xml","plist":"xml","asciidoc":"asciidoc","adoc":"asciidoc","aspectj":"aspectj","autohotkey":"autohotkey","autoit":"autoit","avrasm":"avrasm","axapta":"axapta","bash":"bash","sh":"bash","zsh":"bash","brainfuck":"brainfuck","bf":"brainfuck","cal":"cal","capnproto":"capnproto","capnp":"capnproto","ceylon":"ceylon","clojure":"clojure","clj":"clojure","clojure-repl":"clojure-repl","cmake":"cmake","cmake.in":"cmake","coffeescript":"coffeescript","coffee":"coffeescript","cson":"coffeescript","iced":"coffeescript","cpp":"cpp","c":"cpp","cc":"cpp","h":"cpp","c++":"cpp","h++":"cpp","hpp":"cpp","crmsh":"crmsh","crm":"crmsh","pcmk":"crmsh","crystal":"crystal","cr":"crystal","cs":"cs","csharp":"cs","css":"css","d":"d","markdown":"markdown","md":"markdown","mkdown":"markdown","mkd":"markdown","dart":"dart","delphi":"delphi","diff":"diff","patch":"diff","django":"django","jinja":"django","dns":"dns","bind":"dns","zone":"dns","dockerfile":"dockerfile","docker":"dockerfile","dos":"dos","bat":"dos","cmd":"dos","dust":"dust","dst":"dust","elixir":"elixir","elm":"elm","ruby":"ruby","rb":"ruby","gemspec":"ruby","podspec":"ruby","thor":"ruby","irb":"ruby","erb":"erb","erlang-repl":"erlang-repl","erlang":"erlang","erl":"erlang","fix":"fix","fortran":"fortran","f90":"fortran","f95":"fortran","fsharp":"fsharp","fs":"fsharp","gams":"gams","gms":"gams","gcode":"gcode","nc":"gcode","gherkin":"gherkin","feature":"gherkin","glsl":"glsl","go":"go","golang":"go","golo":"golo","gradle":"gradle","groovy":"groovy","haml":"haml","handlebars":"handlebars","hbs":"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars","haskell":"haskell","hs":"haskell","haxe":"haxe","hx":"haxe","http":"http","https":"http","inform7":"inform7","i7":"inform7","ini":"ini","toml":"ini","irpf90":"irpf90","java":"java","jsp":"java","javascript":"javascript","js":"javascript","json":"json","julia":"julia","kotlin":"kotlin","lasso":"lasso","ls":"livescript","lassoscript":"lasso","less":"less","lisp":"lisp","livecodeserver":"livecodeserver","livescript":"livescript","lua":"lua","makefile":"makefile","mk":"makefile","mak":"makefile","mathematica":"mathematica","mma":"mathematica","matlab":"matlab","mel":"mel","mercury":"mercury","m":"mercury","moo":"mercury","mizar":"mizar","perl":"perl","pl":"perl","mojolicious":"mojolicious","monkey":"monkey","nginx":"nginx","nginxconf":"nginx","nimrod":"nimrod","nim":"nimrod","nix":"nix","nixos":"nix","nsis":"nsis","objectivec":"objectivec","mm":"objectivec","objc":"objectivec","obj-c":"objectivec","ocaml":"ocaml","ml":"sml","openscad":"openscad","scad":"openscad","oxygene":"oxygene","parser3":"parser3","pf":"pf","pf.conf":"pf","php":"php","php3":"php","php4":"php","php5":"php","php6":"php","powershell":"powershell","ps":"powershell","processing":"processing","profile":"profile","prolog":"prolog","protobuf":"protobuf","puppet":"puppet","pp":"puppet","python":"python","py":"python","gyp":"python","q":"q","k":"q","kdb":"q","r":"r","rib":"rib","roboconf":"roboconf","graph":"roboconf","instances":"roboconf","rsl":"rsl","ruleslanguage":"ruleslanguage","rust":"rust","rs":"rust","scala":"scala","scheme":"scheme","scilab":"scilab","sci":"scilab","scss":"scss","smali":"smali","smalltalk":"smalltalk","st":"smalltalk","sml":"sml","sqf":"sqf","sql":"sql","stata":"stata","do":"stata","ado":"stata","step21":"step21","p21":"step21","step":"step21","stp":"step21","stylus":"stylus","styl":"stylus","swift":"swift","tcl":"tcl","tk":"tcl","tex":"tex","thrift":"thrift","tp":"tp","twig":"twig","craftcms":"twig","typescript":"typescript","ts":"typescript","vala":"vala","vbnet":"vbnet","vb":"vbnet","vbscript":"vbscript","vbs":"vbscript","vbscript-html":"vbscript-html","verilog":"verilog","v":"verilog","vhdl":"vhdl","vim":"vim","x86asm":"x86asm","xl":"xl","tao":"xl","xquery":"xquery","xpath":"xquery","xq":"xquery","zephir":"zephir","zep":"zephir"}} | ||
{"languages":["1c","accesslog","actionscript","apache","applescript","arduino","armasm","xml","asciidoc","aspectj","autohotkey","autoit","avrasm","axapta","bash","basic","brainfuck","cal","capnproto","ceylon","clojure","clojure-repl","cmake","coffeescript","cos","cpp","crmsh","crystal","cs","css","d","markdown","dart","delphi","diff","django","dns","dockerfile","dos","dts","dust","elixir","elm","ruby","erb","erlang-repl","erlang","fix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","http","inform7","ini","irpf90","java","javascript","json","julia","kotlin","lasso","less","lisp","livecodeserver","livescript","lua","makefile","mathematica","matlab","mel","mercury","mipsasm","mizar","perl","mojolicious","monkey","nginx","nimrod","nix","nsis","objectivec","ocaml","openscad","oxygene","parser3","pf","php","powershell","processing","profile","prolog","protobuf","puppet","python","q","r","rib","roboconf","rsl","ruleslanguage","rust","scala","scheme","scilab","scss","smali","smalltalk","sml","sqf","sql","stan","stata","step21","stylus","swift","tcl","tex","thrift","tp","twig","typescript","vala","vbnet","vbscript","vbscript-html","verilog","vhdl","vim","x86asm","xl","xquery","yaml","zephir"],"aliases":{"1c":"1c","accesslog":"accesslog","actionscript":"actionscript","as":"actionscript","apache":"apache","apacheconf":"apache","applescript":"applescript","osascript":"applescript","arduino":"arduino","armasm":"armasm","arm":"armasm","xml":"xml","html":"xml","xhtml":"xml","rss":"xml","atom":"xml","xsl":"xml","plist":"xml","asciidoc":"asciidoc","adoc":"asciidoc","aspectj":"aspectj","autohotkey":"autohotkey","autoit":"autoit","avrasm":"avrasm","axapta":"axapta","bash":"bash","sh":"bash","zsh":"bash","basic":"basic","brainfuck":"brainfuck","bf":"brainfuck","cal":"cal","capnproto":"capnproto","capnp":"capnproto","ceylon":"ceylon","clojure":"clojure","clj":"clojure","clojure-repl":"clojure-repl","cmake":"cmake","cmake.in":"cmake","coffeescript":"coffeescript","coffee":"coffeescript","cson":"coffeescript","iced":"coffeescript","cos":"cos","cls":"cos","cpp":"cpp","c":"cpp","cc":"cpp","h":"cpp","c++":"cpp","h++":"cpp","hpp":"cpp","crmsh":"crmsh","crm":"crmsh","pcmk":"crmsh","crystal":"crystal","cr":"crystal","cs":"cs","csharp":"cs","css":"css","d":"d","markdown":"markdown","md":"markdown","mkdown":"markdown","mkd":"markdown","dart":"dart","delphi":"delphi","diff":"diff","patch":"diff","django":"django","jinja":"django","dns":"dns","bind":"dns","zone":"dns","dockerfile":"dockerfile","docker":"dockerfile","dos":"dos","bat":"dos","cmd":"dos","dts":"dts","dust":"dust","dst":"dust","elixir":"elixir","elm":"elm","ruby":"ruby","rb":"ruby","gemspec":"ruby","podspec":"ruby","thor":"ruby","irb":"ruby","erb":"erb","erlang-repl":"erlang-repl","erlang":"erlang","erl":"erlang","fix":"fix","fortran":"fortran","f90":"fortran","f95":"fortran","fsharp":"fsharp","fs":"fsharp","gams":"gams","gms":"gams","gauss":"gauss","gss":"gauss","gcode":"gcode","nc":"gcode","gherkin":"gherkin","feature":"gherkin","glsl":"glsl","go":"go","golang":"go","golo":"golo","gradle":"gradle","groovy":"groovy","haml":"haml","handlebars":"handlebars","hbs":"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars","haskell":"haskell","hs":"haskell","haxe":"haxe","hx":"haxe","hsp":"hsp","http":"http","https":"http","inform7":"inform7","i7":"inform7","ini":"ini","toml":"ini","irpf90":"irpf90","java":"java","jsp":"java","javascript":"javascript","js":"javascript","json":"json","julia":"julia","kotlin":"kotlin","lasso":"lasso","ls":"livescript","lassoscript":"lasso","less":"less","lisp":"lisp","livecodeserver":"livecodeserver","livescript":"livescript","lua":"lua","makefile":"makefile","mk":"makefile","mak":"makefile","mathematica":"mathematica","mma":"mathematica","matlab":"matlab","mel":"mel","mercury":"mercury","m":"mercury","moo":"mercury","mipsasm":"mipsasm","mips":"mipsasm","mizar":"mizar","perl":"perl","pl":"perl","mojolicious":"mojolicious","monkey":"monkey","nginx":"nginx","nginxconf":"nginx","nimrod":"nimrod","nim":"nimrod","nix":"nix","nixos":"nix","nsis":"nsis","objectivec":"objectivec","mm":"objectivec","objc":"objectivec","obj-c":"objectivec","ocaml":"ocaml","ml":"sml","openscad":"openscad","scad":"openscad","oxygene":"oxygene","parser3":"parser3","pf":"pf","pf.conf":"pf","php":"php","php3":"php","php4":"php","php5":"php","php6":"php","powershell":"powershell","ps":"powershell","processing":"processing","profile":"profile","prolog":"prolog","protobuf":"protobuf","puppet":"puppet","pp":"puppet","python":"python","py":"python","gyp":"python","q":"q","k":"q","kdb":"q","r":"r","rib":"rib","roboconf":"roboconf","graph":"roboconf","instances":"roboconf","rsl":"rsl","ruleslanguage":"ruleslanguage","rust":"rust","rs":"rust","scala":"scala","scheme":"scheme","scilab":"scilab","sci":"scilab","scss":"scss","smali":"smali","smalltalk":"smalltalk","st":"smalltalk","sml":"sml","sqf":"sqf","sql":"sql","stan":"stan","stata":"stata","do":"stata","ado":"stata","step21":"step21","p21":"step21","step":"step21","stp":"step21","stylus":"stylus","styl":"stylus","swift":"swift","tcl":"tcl","tk":"tcl","tex":"tex","thrift":"thrift","tp":"tp","twig":"twig","craftcms":"twig","typescript":"typescript","ts":"typescript","vala":"vala","vbnet":"vbnet","vb":"vbnet","vbscript":"vbscript","vbs":"vbscript","vbscript-html":"vbscript-html","verilog":"verilog","v":"verilog","vhdl":"vhdl","vim":"vim","x86asm":"x86asm","xl":"xl","tao":"xl","xquery":"xquery","xpath":"xquery","xq":"xquery","yaml":"yaml","yml":"yaml","YAML":"yaml","zephir":"zephir","zep":"zephir"}} |
'use strict'; | ||
var spawn = require('child_process').spawn; | ||
var spawn = require('cross-spawn'); | ||
var Promise = require('bluebird'); | ||
@@ -5,0 +5,0 @@ var CacheStream = require('./cache_stream'); |
'use strict'; | ||
// https://github.com/azer/strip/blob/master/index.js#L5 | ||
var rStrip = /<\/?([a-z][a-z0-9]*)\b[^>]*>?/gi; | ||
function stripHTML(str) { | ||
if (typeof str !== 'string') throw new TypeError('str must be a string!'); | ||
return str.replace(rStrip, '').trim(); | ||
} | ||
module.exports = stripHTML; | ||
module.exports = require('striptags'); |
{ | ||
"name": "hexo-util", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Utilities for Hexo.", | ||
@@ -10,3 +10,5 @@ "main": "lib/index", | ||
"test": "mocha test/index.js", | ||
"test-cov": "istanbul cover --print both _mocha -- test/index.js" | ||
"test-cov": "istanbul cover --print both _mocha -- test/index.js", | ||
"build:highlight": "mkdir -p build && node scripts/build_highlight_alias.js > build/highlight_alias.json", | ||
"postinstall": "npm run build:highlight" | ||
}, | ||
@@ -17,3 +19,3 @@ "directories": { | ||
"repository": "hexojs/hexo-util", | ||
"homepage": "http://hexo.io/", | ||
"homepage": "https://hexo.io/", | ||
"keywords": [ | ||
@@ -39,5 +41,7 @@ "hexo", | ||
"camel-case": "^1.2.0", | ||
"cross-spawn": "^2.1.5", | ||
"highlight.js": "^9.0.0", | ||
"html-entities": "^1.2.0" | ||
"html-entities": "^1.2.0", | ||
"striptags": "^2.1.1" | ||
} | ||
} |
'use strict'; | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var hljs = require('highlight.js'); | ||
var languages = hljs.listLanguages(); | ||
var dest = path.join(__dirname, '../build/highlight_alias.json'); | ||
var result = { | ||
@@ -27,6 +24,2 @@ languages: languages, | ||
fs.writeFile(dest, JSON.stringify(result), function(err) { | ||
if (err) return console.error(err); | ||
console.log('Highlight alias build success'); | ||
}); | ||
console.log(JSON.stringify(result)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
37126
617
3
0
6
1
1
+ Addedcross-spawn@^2.1.5
+ Addedstriptags@^2.1.1
+ Addedbuffer-from@1.1.2(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcross-spawn@2.2.3(transitive)
+ Addedcross-spawn-async@2.2.5(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedos-shim@0.1.3(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedspawn-sync@1.0.15(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstriptags@2.2.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)