diff --git a/CHANGELOG.md b/CHANGELOG.md index 44d2f3b3..0ac6718c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [v1.12.3] - 2024-06-20 + +### Fixed + +- Updated direct access to constructor prototype props to class props to make sure minification with keepClass attributes doesn't affect conversion. + ## [v1.12.2] - 2024-05-21 ### Fixed @@ -106,7 +112,9 @@ Newer releases follow the [Keep a Changelog](https://keepachangelog.com) format. - Stable release - Removed libxmljs from package.json -[Unreleased]: https://github.com/postmanlabs/wsdl-to-postman/compare/v1.12.2...HEAD +[Unreleased]: https://github.com/postmanlabs/wsdl-to-postman/compare/v1.12.3...HEAD + +[v1.12.3]: https://github.com/postmanlabs/wsdl-to-postman/compare/v1.12.2...v1.12.3 [v1.12.2]: https://github.com/postmanlabs/wsdl-to-postman/compare/v1.12.1...v1.12.2 diff --git a/lib/security/schemas/inputs/tokens/SAMLTokenInput.js b/lib/security/schemas/inputs/tokens/SAMLTokenInput.js index 7d24f9e9..a097280a 100644 --- a/lib/security/schemas/inputs/tokens/SAMLTokenInput.js +++ b/lib/security/schemas/inputs/tokens/SAMLTokenInput.js @@ -1,5 +1,6 @@ class SAMLTokenInput { constructor() { + this.constructor_name = 'SAMLTokenInput'; this.includeToken = ''; this.issuerInfo = ''; this.claims = ''; diff --git a/lib/security/schemas/inputs/tokens/UsernameTokenInput.js b/lib/security/schemas/inputs/tokens/UsernameTokenInput.js index cab09293..8dac0203 100644 --- a/lib/security/schemas/inputs/tokens/UsernameTokenInput.js +++ b/lib/security/schemas/inputs/tokens/UsernameTokenInput.js @@ -1,5 +1,6 @@ class UsernameTokenInput { constructor() { + this.constructor_name = 'UsernameTokenInput'; this.includeToken = ''; this.issuerInfo = ''; this.claims = ''; diff --git a/lib/security/schemas/inputs/transport/TransportBindingInput.js b/lib/security/schemas/inputs/transport/TransportBindingInput.js index a762181c..34cbf281 100644 --- a/lib/security/schemas/inputs/transport/TransportBindingInput.js +++ b/lib/security/schemas/inputs/transport/TransportBindingInput.js @@ -1,5 +1,6 @@ class TransportBindingInput { constructor() { + this.constructor_name = 'TransportBindingInput'; this.transportToken = ''; this.algorithmSuite = ''; this.layout = ''; diff --git a/lib/utils/SOAPHeader.js b/lib/utils/SOAPHeader.js index 1eb71a7d..f6bc76ac 100644 --- a/lib/utils/SOAPHeader.js +++ b/lib/utils/SOAPHeader.js @@ -158,7 +158,7 @@ class SOAPHeader { 'TransportBindingInput': this.processSSLTransport, 'SAMLTokenInput': this.processSAMLToken }; - return handlers[element.constructor.name]; + return handlers[element.constructor_name]; } /** diff --git a/package-lock.json b/package-lock.json index 5cf22a0e..f774cd61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@postman/wsdl-to-postman", - "version": "1.12.2", + "version": "1.12.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@postman/wsdl-to-postman", - "version": "1.12.2", + "version": "1.12.3", "license": "Apache-2.0", "dependencies": { "ajv": "8.1.0", diff --git a/package.json b/package.json index 74def4b7..5629bf44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@postman/wsdl-to-postman", - "version": "1.12.2", + "version": "1.12.3", "description": "Convert a given WSDL specification (1.1) to Postman Collection", "main": "index.js", "bin": {