From 43753f55fbf12966f1f00ab4d4c110ac5a305280 Mon Sep 17 00:00:00 2001 From: Vishal Shingala Date: Thu, 20 Jun 2024 13:12:40 +0530 Subject: [PATCH 1/3] Update direct access to constructor prototype props to class props --- lib/security/schemas/inputs/tokens/SAMLTokenInput.js | 1 + lib/security/schemas/inputs/tokens/UsernameTokenInput.js | 1 + lib/security/schemas/inputs/transport/TransportBindingInput.js | 1 + lib/utils/SOAPHeader.js | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) 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]; } /** From dc61e6f4ed21c6560be9702675930c301681e535 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 20 Jun 2024 11:27:17 +0000 Subject: [PATCH 2/3] Prepare release v1.12.3 --- CHANGELOG.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44d2f3b3..5a707719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [v1.12.3] - 2024-06-20 + ## [v1.12.2] - 2024-05-21 ### Fixed @@ -106,7 +108,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/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": { From 49c8de845e8e1302316d467648f1354645516aea Mon Sep 17 00:00:00 2001 From: Vishal Shingala Date: Thu, 20 Jun 2024 17:44:01 +0530 Subject: [PATCH 3/3] Added changelogs for v1.12.3 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a707719..0ac6718c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [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