@tramvai/safe-strings
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -8,3 +8,4 @@ export * from './safeStringify'; | ||
export * from './encodeForJSContext'; | ||
export * from './encodeForURLContext'; | ||
export * from './error'; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -8,2 +8,3 @@ export { safeStringify } from './safeStringify.es.js'; | ||
export { encodeForJSContext } from './encodeForJSContext.es.js'; | ||
export { ctrlCharactersRegex, encodeForURLContext, whitespaceEscapeCharsRegex } from './encodeForURLContext.es.js'; | ||
export { deserializeError, serializeError } from './error.es.js'; |
@@ -12,2 +12,3 @@ 'use strict'; | ||
var encodeForJSContext = require('./encodeForJSContext.js'); | ||
var encodeForURLContext = require('./encodeForURLContext.js'); | ||
var error = require('./error.js'); | ||
@@ -24,3 +25,6 @@ | ||
exports.encodeForJSContext = encodeForJSContext.encodeForJSContext; | ||
exports.ctrlCharactersRegex = encodeForURLContext.ctrlCharactersRegex; | ||
exports.encodeForURLContext = encodeForURLContext.encodeForURLContext; | ||
exports.whitespaceEscapeCharsRegex = encodeForURLContext.whitespaceEscapeCharsRegex; | ||
exports.deserializeError = error.deserializeError; | ||
exports.serializeError = error.serializeError; |
{ | ||
"name": "@tramvai/safe-strings", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "main": "lib/utils.js", | ||
"type": "git", | ||
"url": "git@github.com:Tinkoff/tramvai.git" | ||
"url": "git+ssh://git@github.com/tramvaijs/tramvai.git" | ||
}, | ||
@@ -15,0 +15,0 @@ "scripts": { |
@@ -28,1 +28,5 @@ # @tramvai/safe-strings | ||
String encoding for JS context - escapes all symbols with possible XSS attack or breaking code - `<`, `>`, `/`, `\u2028`, `\u2029` | ||
### `encodeForURLContext` | ||
String encoding for URL context - escapes all symbols with possible XSS attack or breaking code, removes `javascript:alert('xss')` and other unsafe protocols (`data:`, `vbscript:`) |
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
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
24625
32
559
32