postman-code-generators
Advanced tools
Comparing version 1.9.1-beta.1 to 1.9.1-beta.2
@@ -112,3 +112,3 @@ const _ = require('./lodash'); | ||
/** | ||
* Encode param except the following characters- [,{,},],% | ||
* Encode param except the following characters- [,{,},],%,+ | ||
* | ||
@@ -124,2 +124,3 @@ * @param {String} param | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -126,0 +127,0 @@ .replace(/'/g, '%27'); |
@@ -20,10 +20,10 @@ { | ||
"OPTIONS /post HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"LINK /request HTTP/1.1\nHost: mockbin.org\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"UNLINK /request HTTP/1.1\nHost: mockbin.org\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"LOCK /request HTTP/1.1\nHost: mockbin.org\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"UNLOCK /request HTTP/1.1\nHost: mockbin.org", | ||
"PROPFIND /request HTTP/1.1\nHost: mockbin.org\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"VIEW /request HTTP/1.1\nHost: mockbin.org\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"PURGE / HTTP/1.1\nHost: 9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"COPY / HTTP/1.1\nHost: 9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"LINK /request HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"UNLINK /request HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"LOCK /request HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"UNLOCK /request HTTP/1.1\nHost: postman-echo.com", | ||
"PROPFIND /request HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"VIEW /request HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 256\n\nDuis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat.", | ||
"PURGE / HTTP/1.1\nHost: postman-echo.com", | ||
"COPY / HTTP/1.1\nHost: postman-echo.com", | ||
"POST /post HTTP/1.1\nHost: postman-echo.com\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Length: 180\n\n------WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Disposition: form-data; name=\"file\"; filename=\"file.txt\"\nContent-Type: text/plain\n\n(data)\n------WebKitFormBoundary7MA4YWxkTrZu0gW--\n", | ||
@@ -30,0 +30,0 @@ "POST /post HTTP/1.1\nHost: postman-echo.com\nContent-Type: text/plain\nContent-Length: 22\n\n\"<file contents here>\"", |
@@ -995,3 +995,3 @@ { | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1014,3 +1014,3 @@ "response": [] | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1033,3 +1033,3 @@ "response": [] | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1047,3 +1047,3 @@ "response": [] | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1066,3 +1066,3 @@ "response": [] | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1085,3 +1085,3 @@ "response": [] | ||
}, | ||
"url": "https://mockbin.org/request" | ||
"url": "https://postman-echo.com/request" | ||
}, | ||
@@ -1099,3 +1099,3 @@ "response": [] | ||
}, | ||
"url": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io" | ||
"url": "https://postman-echo.com" | ||
}, | ||
@@ -1113,3 +1113,3 @@ "response": [] | ||
}, | ||
"url": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io" | ||
"url": "https://postman-echo.com" | ||
}, | ||
@@ -1126,3 +1126,3 @@ "response": [ | ||
}, | ||
"url": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io" | ||
"url": "https://postman-echo.com" | ||
}, | ||
@@ -1129,0 +1129,0 @@ "status": "OK", |
@@ -6,3 +6,3 @@ var _ = require('./lodash'), | ||
/** | ||
* Encode param except the following characters- [,],% | ||
* Encode param except the following characters- [,],%,+ | ||
* Characters { and } are kept encoded because unirest does not support them | ||
@@ -17,2 +17,3 @@ * | ||
.replace(/%5D/g, ']') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -19,0 +20,0 @@ .replace(/'/g, '%27'); |
@@ -161,3 +161,3 @@ const _ = require('./lodash'); | ||
/** | ||
* Encode param except the following characters- [,{,},],% | ||
* Encode param except the following characters- [,{,},],%,+ | ||
* | ||
@@ -173,2 +173,3 @@ * @param {String} param | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -175,0 +176,0 @@ .replace(/'/g, '%27'); |
@@ -163,3 +163,3 @@ const _ = require('./lodash'); | ||
/** | ||
* Encode param except the following characters- [,{,},],% | ||
* Encode param except the following characters- [,{,},],%,+ | ||
* | ||
@@ -175,2 +175,3 @@ * @param {String} param | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -177,0 +178,0 @@ .replace(/'/g, '%27'); |
@@ -994,9 +994,7 @@ { | ||
"url": { | ||
"raw": "https://bf1621bb-f962-46b8-bf28-459e03b513ff.mock.pstmn.io/head", | ||
"raw": "https://postman-echo.com/head", | ||
"protocol": "https", | ||
"host": [ | ||
"bf1621bb-f962-46b8-bf28-459e03b513ff", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1026,7 +1024,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1056,7 +1054,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1086,7 +1084,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1108,7 +1106,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1138,7 +1136,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1168,7 +1166,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1190,9 +1188,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1211,9 +1207,7 @@ }, | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1307,3 +1301,3 @@ } | ||
"responseTime": "375", | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io\"\n}" | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://postman-echo.com\"\n}" | ||
} | ||
@@ -1319,9 +1313,7 @@ ] | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1339,9 +1331,7 @@ } | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1356,3 +1346,3 @@ } | ||
"responseTime": "0", | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io\"\n}" | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://postman-echo.com\"\n}" | ||
} | ||
@@ -1359,0 +1349,0 @@ ] |
@@ -187,2 +187,3 @@ const _ = require('./lodash'); | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -189,0 +190,0 @@ .replace(/'/g, '%27'); |
@@ -177,2 +177,3 @@ const _ = require('../lodash'); | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -179,0 +180,0 @@ .replace(/'/g, '%27'); |
@@ -1017,7 +1017,7 @@ { | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1047,7 +1047,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1077,7 +1077,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1099,7 +1099,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1129,7 +1129,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1159,7 +1159,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1181,9 +1181,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1202,9 +1200,7 @@ }, | ||
"url": { | ||
"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io", | ||
"raw": "https://postman-echo.com", | ||
"protocol": "https", | ||
"host": [ | ||
"9c76407d-5b8d-4b22-99fb-8c47a85d9848", | ||
"mock", | ||
"pstmn", | ||
"io" | ||
"postman-echo", | ||
"com" | ||
] | ||
@@ -1298,3 +1294,3 @@ } | ||
"responseTime": "375", | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io\"\n}" | ||
"body": "{\n \"args\": {},\n \"data\": \"Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat.\",\n \"files\": {},\n \"form\": {},\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"content-length\": \"256\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-type\": \"text/plain\",\n \"cookie\": \"sails.sid=s%3A1wOi4AdoZEbqBjGi6oSUC5Vlfje8wJvs.DHQfRLXfIBvZ%2Bv0KhLAThMDz%2FXvxh9gyxWYa0u1EZOU\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\"\n },\n \"json\": null,\n \"url\": \"https://postman-echo.com\"\n}" | ||
} | ||
@@ -1310,7 +1306,7 @@ ] | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1332,7 +1328,7 @@ "path": [ | ||
"url": { | ||
"raw": "https://mockbin.org/request", | ||
"raw": "https://postman-echo.com/request", | ||
"protocol": "https", | ||
"host": [ | ||
"mockbin", | ||
"org" | ||
"postman-echo", | ||
"com" | ||
], | ||
@@ -1449,3 +1445,3 @@ "path": [ | ||
"httpOnly": true, | ||
"domain": "mockbin.org", | ||
"domain": "postman-echo.com", | ||
"path": "/", | ||
@@ -1457,3 +1453,3 @@ "secure": false, | ||
], | ||
"body": "{\n \"startedDateTime\": \"2018-03-14T09:06:37.443Z\",\n \"clientIPAddress\": \"106.51.70.154\",\n \"method\": \"COPY\",\n \"url\": \"https://mockbin.org/request\",\n \"httpVersion\": \"HTTP/1.1\",\n \"cookies\": {\n \"__cfduid\": \"dfb94a3e1f3f8a9956138e4896847caf21521013330\"\n },\n \"headers\": {\n \"host\": \"mockbin.org\",\n \"connection\": \"close\",\n \"accept-encoding\": \"gzip\",\n \"x-forwarded-for\": \"106.51.70.154, 172.68.255.127\",\n \"cf-ray\": \"3fb595d5facaa302-HKG\",\n \"x-forwarded-proto\": \"http\",\n \"cf-visitor\": \"{\\\"scheme\\\":\\\"https\\\"}\",\n \"cache-control\": \"no-cache\",\n \"postman-token\": \"8d5b9832-75df-432f-90a3-284dacef0478\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"accept\": \"*/*\",\n \"cookie\": \"__cfduid=dfb94a3e1f3f8a9956138e4896847caf21521013330\",\n \"cf-connecting-ip\": \"106.51.70.154\",\n \"x-request-id\": \"0e41473d-5130-4a6e-968d-b2a16cda3364\",\n \"x-forwarded-port\": \"80\",\n \"via\": \"1.1 vegur\",\n \"connect-time\": \"2\",\n \"x-request-start\": \"1521018397437\",\n \"total-route-time\": \"0\",\n \"content-length\": \"0\"\n },\n \"queryString\": {},\n \"postData\": {\n \"mimeType\": \"application/octet-stream\",\n \"text\": \"\",\n \"params\": []\n },\n \"headersSize\": 637,\n \"bodySize\": 0\n}" | ||
"body": "{\n \"startedDateTime\": \"2018-03-14T09:06:37.443Z\",\n \"clientIPAddress\": \"106.51.70.154\",\n \"method\": \"COPY\",\n \"url\": \"https://postman-echo.com/request\",\n \"httpVersion\": \"HTTP/1.1\",\n \"cookies\": {\n \"__cfduid\": \"dfb94a3e1f3f8a9956138e4896847caf21521013330\"\n },\n \"headers\": {\n \"host\": \"postman-echo.com\",\n \"connection\": \"close\",\n \"accept-encoding\": \"gzip\",\n \"x-forwarded-for\": \"106.51.70.154, 172.68.255.127\",\n \"cf-ray\": \"3fb595d5facaa302-HKG\",\n \"x-forwarded-proto\": \"http\",\n \"cf-visitor\": \"{\\\"scheme\\\":\\\"https\\\"}\",\n \"cache-control\": \"no-cache\",\n \"postman-token\": \"8d5b9832-75df-432f-90a3-284dacef0478\",\n \"user-agent\": \"PostmanRuntime/7.1.1\",\n \"accept\": \"*/*\",\n \"cookie\": \"__cfduid=dfb94a3e1f3f8a9956138e4896847caf21521013330\",\n \"cf-connecting-ip\": \"106.51.70.154\",\n \"x-request-id\": \"0e41473d-5130-4a6e-968d-b2a16cda3364\",\n \"x-forwarded-port\": \"80\",\n \"via\": \"1.1 vegur\",\n \"connect-time\": \"2\",\n \"x-request-start\": \"1521018397437\",\n \"total-route-time\": \"0\",\n \"content-length\": \"0\"\n },\n \"queryString\": {},\n \"postData\": {\n \"mimeType\": \"application/octet-stream\",\n \"text\": \"\",\n \"params\": []\n },\n \"headersSize\": 637,\n \"bodySize\": 0\n}" | ||
} | ||
@@ -1460,0 +1456,0 @@ ] |
@@ -118,2 +118,3 @@ const _ = require('./lodash'); | ||
.replace(/%7D/g, '}') | ||
.replace(/%2B/g, '+') | ||
.replace(/%25/g, '%') | ||
@@ -120,0 +121,0 @@ .replace(/'/g, '%27'); |
{ | ||
"name": "postman-code-generators", | ||
"version": "1.9.1-beta.1", | ||
"version": "1.9.1-beta.2", | ||
"description": "Generates code snippets for a postman collection", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
2605432
562
45815