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

@sap/xss-secure

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/xss-secure - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

npm-shrinkwrap.json

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Change Log

## 2.2.0 - 2018-12-18
### Added
- Node.js version 10 support.
- Release with npm-shrinkwrap.json
## 2.1.0 - 2018-01-08

@@ -10,0 +16,0 @@

2

package.json

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

{"dependencies":{},"description":"XSS Secure","devDependencies":{"eslint":"3.2.2","filter-node-package":"^2.0.0","istanbul":"0.4.5","mocha":"3.0.2","node-style":"^2.0.0","should":"10.0.0"},"engines":{"node":"^0.12.7 || ^4.4.0 || ^6.0.0 || ^8.0.0"},"main":"index.js","maintainers":[{"name":"https-support.sap.com","email":"do-not-reply@sap.com"}],"name":"@sap/xss-secure","optionalDependencies":{},"readme":"@sap/xss-secure\n==============\n\nXSSSecurity Implementation taken from SAP UI5\n\n## Usage\n`var xssSecure = require('@sap/xss-secure');`\n\n## API Reference\n\n#### `encodeCSS(string)`\nEncode the string for inclusion into CSS string literals or identifiers.\n* `string` - The string to be escaped\n\nReturns the escaped `string`.\n```js\nxssSecure.encodeCSS('1<4'); // returns '1\\\\3c 4'\nxssSecure.encodeCSS('a-b'); // returns 'a\\2d b'\n```\n\n#### `encodeHTML(string)`\nEncode the string for inclusion into HTML content/attribute.\n* `string` - The string to be escaped\n\nReturns the escaped `string`.\n```js\nxssSecure.encodeHTML('1<4'); // returns '1&lt;4'\nxssSecure.encodeHTML('\\x00'); // returns '&#xfffd;'\n```\n\n#### `encodeJS(string)`\nEncode the string for inclusion into a JS string literal.\n* `string` - The string to be escaped\n\nReturns the escaped `string`.\n```js\nxssSecure.encodeJS('1<4'); // returns '1\\\\x3c4'\nxssSecure.encodeJS('\\x00'); // returns '\\\\x00'\n```\n\n#### `encodeURL(string)`\nEncode the string for inclusion into an URL parameter.\n* `string` - The string to be escaped\n\nReturns the escaped `string`.\n```js\nxssSecure.encodeURL('http://testing.com/?a=1&b=\"ok\"');\n// returns 'http%3a%2f%2ftesting.com%2f%3fa%3d1%26b%3d%22ok%22'\n```\n\n#### `encodeXML(string)`\nEncode the string for inclusion into XML content/attribute.\n* `string` - The string to be escaped\n\nReturns the escaped `string`.\nThis function is alias to `encodeHTML`.\n","readmeFilename":"README.md","scripts":{"lint":"eslint -f stylish --ignore-path .gitignore .","prepareRelease":"clean-packages && npm prune --production","test":"node node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha test -- --recursive --check-leaks"},"version":"2.1.0","license":"SEE LICENSE IN developer-license-3.1.txt"}
{"bundleDependencies":false,"deprecated":false,"description":"XSS Secure","devDependencies":{"eslint":"3.2.2","filter-node-package":"^2.0.0","istanbul":"0.4.5","mocha":"3.0.2","node-style":"^2.0.0","should":"10.0.0"},"engines":{"node":"^0.12.7 || ^4.4.0 || ^6.0.0 || ^8.0.0 || ^10.0.0"},"main":"index.js","name":"@sap/xss-secure","scripts":{"lint":"eslint -f stylish --ignore-path .gitignore .","prepareRelease":"clean-packages && npm prune --production","test":"node node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha test -- --recursive --check-leaks"},"version":"2.2.0","license":"SEE LICENSE IN developer-license-3.1.txt"}
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