+9
-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 @@ ================== |
+10
-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. |
+1
-1
| 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 |
+11
-10
| { | ||
| "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", |
+3
-2
@@ -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 |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
38583
1.87%825
0.98%310
0.32%0
-100%5
25%+ Added
+ Added
+ Added
+ Added
Updated
Updated
Updated
Updated