@kitajs/ts-html-plugin
Advanced tools
Comparing version 4.1.0 to 4.1.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnusedSafe = exports.ComponentXss = exports.DoubleEscape = exports.Xss = void 0; | ||
function urlDocs(error) { | ||
return `https://html.kitajs.org/packages/ts-html-plugin#${error}`; | ||
} | ||
exports.Xss = { | ||
code: '0 K601', | ||
message: 'Usage of xss-prone content without `safe` attribute. https://kitajs.github.io/ts-html-plugin#k601' | ||
message: `Usage of xss-prone content without \`safe\` attribute. ${urlDocs('k601')}` | ||
}; | ||
exports.DoubleEscape = { | ||
code: '0 K602', | ||
message: 'Double escaping detected. Please remove the `safe` attribute. https://kitajs.github.io/ts-html-plugin#k602' | ||
message: `Double escaping detected. Please remove the \`safe\` attribute. ${urlDocs('k602')}` | ||
}; | ||
exports.ComponentXss = { | ||
code: '0 K603', | ||
message: 'Xss-prone content inside a Component, wrap it into a Html.escapeHtml() call. https://kitajs.github.io/ts-html-plugin#k603' | ||
message: `Xss-prone content inside a Component, wrap it into a Html.escapeHtml() call. ${urlDocs('k603')}` | ||
}; | ||
exports.UnusedSafe = { | ||
code: '0 K604', | ||
message: 'Unused safe attribute. https://kitajs.github.io/ts-html-plugin#k604' | ||
message: `Unused safe attribute. ${urlDocs('k604')}` | ||
}; | ||
//# sourceMappingURL=errors.js.map |
{ | ||
"name": "@kitajs/ts-html-plugin", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"homepage": "https://github.com/kitajs/html/tree/master/packages/ts-html-plugin#readme", | ||
@@ -24,3 +24,3 @@ "bugs": "https://github.com/kitajs/html/issues", | ||
"chalk": "^4.1.2", | ||
"tslib": "^2.7.0", | ||
"tslib": "^2.8.1", | ||
"yargs": "^17.7.2" | ||
@@ -30,4 +30,4 @@ }, | ||
"@swc-node/register": "^1.10.9", | ||
"@swc/helpers": "^0.5.13", | ||
"@types/node": "^22.5.5", | ||
"@swc/helpers": "^0.5.15", | ||
"@types/node": "^22.9.0", | ||
"@types/yargs": "^17.0.33", | ||
@@ -38,3 +38,3 @@ "fast-defer": "^1.1.8", | ||
"peerDependencies": { | ||
"@kitajs/html": "^4.2.2", | ||
"@kitajs/html": "^4.2.5", | ||
"typescript": "^5.6.2" | ||
@@ -41,0 +41,0 @@ }, |
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
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
92543
531
Updatedtslib@^2.8.1