@sap/xss-secure
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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 @@ |
@@ -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<4'\nxssSecure.encodeHTML('\\x00'); // returns '�'\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"} |
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
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
7
94
23231
1