Comparing version 1.14.0 to 1.15.0
1.15.0 / 2018-09-12 | ||
================== | ||
**features** | ||
* [[`e3ae527`](http://github.com/node-modules/utility/commit/e3ae5277161e8870e097897f0dd41cd783170182)] - feat: add utility.unescape (#38) (Yiyu He <<dead_horse@qq.com>>) | ||
**others** | ||
* [[`50fb750`](http://github.com/node-modules/utility/commit/50fb750d0f24b7b47f0ef6e2ba5c42e5b2c7166a)] - chore: use ^ as deps version (#37) (fengmk2 <<fengmk2@gmail.com>>) | ||
1.14.0 / 2018-06-29 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -12,3 +12,13 @@ 'use strict'; | ||
/** | ||
* Unescape the given string from html | ||
* @param {String} html | ||
* @param {String} type | ||
* @return {String} | ||
* @public | ||
*/ | ||
exports.unescape = require('unescape'); | ||
/** | ||
* Safe encodeURIComponent, won't throw any error. | ||
@@ -15,0 +25,0 @@ * If `encodeURIComponent` error happen, just return the original value. |
This software is licensed under the MIT License. | ||
Copyright(c) 2012 - 2017 node-modules and other contributors. | ||
Copyright(c) 2012 - present node-modules and other contributors. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "utility", | ||
"version": "1.14.0", | ||
"version": "1.15.0", | ||
"description": "A collection of useful utilities.", | ||
@@ -15,14 +15,15 @@ "main": "lib/utility.js", | ||
"ci": "npm run lint && npm run test-cov", | ||
"autod": "autod -w --prefix '~' -e benchmark", | ||
"autod": "autod -w --prefix '^' -e benchmark", | ||
"test-optimized": "node --allow-natives-syntax --trace_opt --trace_deopt test/optimized.js" | ||
}, | ||
"dependencies": { | ||
"copy-to": "~2.0.1", | ||
"escape-html": "~1.0.3", | ||
"mkdirp": "~0.5.1", | ||
"mz": "~2.7.0" | ||
"copy-to": "^2.0.1", | ||
"escape-html": "^1.0.3", | ||
"mkdirp": "^0.5.1", | ||
"mz": "^2.7.0", | ||
"unescape": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"autod": "*", | ||
"ava": "~0.22.0", | ||
"ava": "^0.25.0", | ||
"beautify-benchmark": "*", | ||
@@ -32,7 +33,7 @@ "benchmark": "^2.1.0", | ||
"jshint": "*", | ||
"moment": "~2.19.1", | ||
"moment": "^2.22.2", | ||
"nyc": "6", | ||
"object-assign": "^4.1.1", | ||
"optimized": "~1.2.0", | ||
"rimraf": "~2.6.2" | ||
"optimized": "^1.2.0", | ||
"rimraf": "^2.6.2" | ||
}, | ||
@@ -39,0 +40,0 @@ "homepage": "https://github.com/node-modules/utility", |
@@ -85,4 +85,5 @@ # utility | ||
// html escape | ||
utils.escape('<script/>"& &'); // '<script/>"& &' | ||
// html escape and unescape | ||
utils.escape('<script/>"& &'); // '<script/>"& &amp;' | ||
utils.unescape('<script/>"& &amp;'); // '<script/>"& &' | ||
@@ -89,0 +90,0 @@ // Safe encodeURIComponent and decodeURIComponent |
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
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
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
38583
825
310
0
5
+ Addedunescape@^1.0.1
+ Addedextend-shallow@2.0.1(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedunescape@1.0.1(transitive)
Updatedcopy-to@^2.0.1
Updatedescape-html@^1.0.3
Updatedmkdirp@^0.5.1
Updatedmz@^2.7.0