Comparing version 2.3.1 to 2.3.2
@@ -642,3 +642,7 @@ "use strict"; | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
xsd.parseFile(path.join(path.resolve(__dirname), '../schemas/saml-schema-protocol-2.0.xsd'), function (err, schema) { | ||
// https://github.com/albanm/node-libxml-xsd/issues/11 | ||
var currentDirectory = path.resolve(''); | ||
process.chdir(path.resolve(__dirname, '../schemas')); | ||
xsd.parseFile(path.resolve('saml-schema-protocol-2.0.xsd'), function (err, schema) { | ||
process.chdir(currentDirectory); | ||
if (err) { | ||
@@ -645,0 +649,0 @@ return reject(err.message); |
{ | ||
"name": "samlify", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "High-level API for Single Sign On (SAML 2.0)", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -205,4 +205,4 @@ /** | ||
let rawSamlRequest; | ||
if (initSetting.loginRequestTemplate) { | ||
const template = customTagReplacement(initSetting.loginRequestTemplate.context); | ||
if (initSetting.logoutRequestTemplate) { | ||
const template = customTagReplacement(initSetting.logoutRequestTemplate.context); | ||
id = get<string>(template, 'id'); | ||
@@ -209,0 +209,0 @@ rawSamlRequest = get<string>(template, 'context'); |
@@ -701,3 +701,7 @@ /** | ||
return new Promise((resolve, reject) => { | ||
xsd.parseFile(path.join(path.resolve(__dirname), '../schemas/saml-schema-protocol-2.0.xsd'), (err, schema) => { | ||
// https://github.com/albanm/node-libxml-xsd/issues/11 | ||
const currentDirectory = path.resolve(''); | ||
process.chdir(path.resolve(__dirname, '../schemas')); | ||
xsd.parseFile(path.resolve('saml-schema-protocol-2.0.xsd'), (err, schema) => { | ||
process.chdir(currentDirectory); | ||
if (err) { | ||
@@ -704,0 +708,0 @@ return reject(err.message); |
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
5358150
6125