Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when we are creating the Collection from the JSON file then we are missing the raw field in the Request Inside the Item #1212

Open
hardikbeladiya opened this issue Aug 9, 2021 · 0 comments

Comments

@hardikbeladiya
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/postman-collection/lib/collection/url.js b/node_modules/postman-collection/lib/collection/url.js
index 0d94925..31bcb21 100644
--- a/node_modules/postman-collection/lib/collection/url.js
+++ b/node_modules/postman-collection/lib/collection/url.js
@@ -60,6 +60,7 @@ _.assign(Url.prototype, /** @lends Url.prototype */ {
     update (url) {
         !url && (url = E);
         var parsedUrl = _.isString(url) ? Url.parse(url) : url,
+            raw = parsedUrl.raw,
             auth = parsedUrl.auth,
             protocol = parsedUrl.protocol,
             port = parsedUrl.port,
@@ -106,6 +107,10 @@ _.assign(Url.prototype, /** @lends Url.prototype */ {
         _.isString(host) && (host = host.split(regexes.splitDomain));
 
         _.assign(this, /** @lends Url.prototype */ {
+            /**
+             * @type {String}
+             */
+            raw: raw,
             /**
              * @type {{ user: String, password: String }}
              */

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant