Skip to content

Commit

Permalink
Bugfix for unwanted conversion of Postman query variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Aug 16, 2021
1 parent 7b00b47 commit 566a501
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 29 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/.jsbeautifyrc
/.jsdoc-config.json
/ava.config.js
/tmp
/build
/doc
/example
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.5.1] - 2020-08-16

### Added

- Bug fix for unwanted conversion of Postman query variables (#106 / #104)


## [1.1.0] - 202-05-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/generate/Request/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function address(address, feature, result) {
// Scheme missing
feature.address = new URI(`http://${addressText}`);
}
feature.address = feature.address.query(URI.encodeReserved(feature.address.query()));
feature.address = feature.address.query(feature.address.query().replace(/\s/g, '%20'));
}

function data(request, feature, result) {
Expand Down
64 changes: 36 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "postman-to-k6",
"description": "Convert a Postman collection to k6 JavaScript",
"name": "@apideck/postman-to-k6",
"version": "1.5.0",
"license": "Apache-2.0",
"description": "Convert a Postman collection to k6 JavaScript",
"keywords": [
"k6",
"postman",
Expand All @@ -12,22 +11,42 @@
"server-load",
"performance"
],
"homepage": "https://github.com/loadimpact/postman-to-k6",
"bugs": "https://github.com/loadimpact/postman-to-k6/issues",
"homepage": "https://github.com/apideck-libraries/postman-to-k6",
"bugs": {
"url": "https://github.com/apideck-libraries/postman-to-k6/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/loadimpact/postman-to-k6.git"
"url": "git+https://github.com/apideck-libraries/postman-to-k6.git"
},
"engines": {
"node": ">= 0.10.0"
"license": "Apache-2.0",
"author": "",
"main": "bin/postman-to-k6.js",
"bin": {
"postman-to-k6": "bin/postman-to-k6.js"
},
"preferGlobal": "true",
"directories": {
"bin": "bin",
"lib": "lib"
},
"bin": {
"postman-to-k6": "bin/postman-to-k6.js"
"scripts": {
"bundle": "node scripts/bundle.js",
"lint:fix": "yarn lint --fix",
"lint": "eslint .",
"format": "prettier -c ./lib/**/*.js ./test/**/*.js",
"format:fix": "yarn format --write",
"postinstall": "node scripts/bundle.js",
"test": "npm-run-all test-unit test-com test-int",
"test-com": "cross-env NODE_PATH=lib:test ava test/com",
"test-hoc": "cross-env NODE_PATH=lib:test ava",
"test-int": "cross-env NODE_PATH=lib:test ava test/int",
"test-unit": "cross-env NODE_PATH=lib:test ava test/unit"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn test",
"pre-push": "yarn test"
}
},
"dependencies": {
"ajv": "^6.10.0",
Expand Down Expand Up @@ -68,23 +87,12 @@
"snazzy": "^8.0.0",
"standard": "^14.3.1"
},
"scripts": {
"bundle": "node scripts/bundle.js",
"lint:fix": "yarn lint --fix",
"lint": "eslint .",
"format": "prettier -c ./lib/**/*.js ./test/**/*.js",
"format:fix": "yarn format --write",
"postinstall": "node scripts/bundle.js",
"test": "npm-run-all test-unit test-com test-int",
"test-com": "cross-env NODE_PATH=lib:test ava test/com",
"test-hoc": "cross-env NODE_PATH=lib:test ava",
"test-int": "cross-env NODE_PATH=lib:test ava test/int",
"test-unit": "cross-env NODE_PATH=lib:test ava test/unit"
"engines": {
"node": ">= 0.10.0"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn test",
"pre-push": "yarn test"
}
"preferGlobal": "true",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}

0 comments on commit 566a501

Please sign in to comment.