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

comb

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comb - npm Package Compare versions

Comparing version 0.2.10 to 0.2.11

.idea/libraries/comb_node_modules.xml

12

History.md

@@ -0,1 +1,5 @@

# 0.2.11
* Added `comb.string.escapeHtml`
# 0.2.10

@@ -141,3 +145,3 @@

* Changed appenders to register themselves for dynamic appender creation
* Updated docs
* Updated docs

@@ -148,3 +152,3 @@ #0.1.2/2012-07-17

* Added comb.array.multiply
* Updated docs to use [coddoc](https://github.comb/doug-martin/coddoc)
* Updated docs to use [coddoc](https://github.comb/doug-martin/coddoc)

@@ -188,9 +192,9 @@ #0.1.1/2012-04-20

* Fixed logging appender level setting, before the appenders level would always be overriden on initialization
#0.0.8 / 2012-02-9
* Added new MethodMissing plugin
* Added new MethodMissing plugin
* Bug fixes

@@ -197,0 +201,0 @@ * Changed inflections to underscore between word boundaries and numbers and vice versa with camelize.

@@ -1185,4 +1185,21 @@ var comb = exports, date,

return ret;
},
/**
* Escapes an HTML string by replacing <>&" characters.
*
* @example
* comb.string.escapeHtml('<script>alert("test")</script>'); // &lt;script&gt;alert("test")&lt;/script&gt;
*
* @param {String} str The string to escape.
*/
escapeHtml: function(str) {
return String(str)
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}
};
{
"name": "comb",
"description": "A framework for node",
"version": "0.2.10",
"version": "0.2.11",
"keywords": ["OO", "Object Oriented", "Collections", "Tree", "HashTable", "Pool", "Logging", "Promise", "Promises", "Proxy"],

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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