Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

utility

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utility - npm Package Compare versions

Comparing version 1.14.0 to 1.15.0

9

History.md
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.

2

LICENSE.txt
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/>"& &amp;'); // '&lt;script/&gt;&quot;&amp; &amp;'
// html escape and unescape
utils.escape('<script/>"& &amp;'); // '&lt;script/&gt;&quot;&amp; &amp;amp;'
utils.unescape('&lt;script/&gt;&quot;&amp; &amp;amp;'); // '<script/>"& &amp;'

@@ -89,0 +90,0 @@ // Safe encodeURIComponent and decodeURIComponent

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc