@boxyhq/saml20
Advanced tools
Comparing version 1.4.11 to 1.4.12
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createPostForm = void 0; | ||
const escapeHtml = (unsafeHtml) => { | ||
return unsafeHtml | ||
.replace(/&/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>') | ||
.replace(/"/g, '"') | ||
.replace(/'/g, '''); | ||
}; | ||
const createPostForm = (postUrl, params) => { | ||
const parr = (params || []).map(({ name, value }) => { | ||
return `<input type="hidden" name="${name}" value="${value}"/>`; | ||
return `<input type="hidden" name="${name}" value="${escapeHtml(value)}"/>`; | ||
}); | ||
@@ -8,0 +16,0 @@ const formElements = [ |
{ | ||
"name": "@boxyhq/saml20", | ||
"version": "1.4.11", | ||
"version": "1.4.12", | ||
"description": "SAML 2.0 token parser for Node.js", | ||
@@ -51,6 +51,6 @@ "keywords": [ | ||
"@types/mocha": "10.0.6", | ||
"@types/node": "20.11.17", | ||
"@types/node": "20.11.19", | ||
"@types/xml2js": "0.4.14", | ||
"@typescript-eslint/eslint-plugin": "7.0.1", | ||
"@typescript-eslint/parser": "7.0.1", | ||
"@typescript-eslint/eslint-plugin": "7.0.2", | ||
"@typescript-eslint/parser": "7.0.2", | ||
"eslint": "8.56.0", | ||
@@ -61,3 +61,3 @@ "eslint-config-prettier": "9.1.0", | ||
"prettier": "3.2.5", | ||
"release-it": "17.0.3", | ||
"release-it": "17.1.1", | ||
"ts-node": "10.9.2", | ||
@@ -64,0 +64,0 @@ "tsconfig-paths": "4.2.0", |
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
61864
1301