Skip to content

Commit 67d8a7b

Browse files
committed
remove parallel iteration logic.
1 parent da905b9 commit 67d8a7b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
22
Runner: require('./runner'),
33
Requester: require('./requester').Requester,
4-
version: require('./version')
4+
version: require('./version'),
5+
utils: require('./runner/util'),
6+
Instruction: require('./runner/instruction')
57
};

lib/runner/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ var _ = require('lodash'),
1111
script: Infinity
1212
};
1313

14+
15+
function applyRunExtensions (extensions) {
16+
if (extensions && !_.isEmpty(extensions)) {
17+
Run.applyExtensions(extensions);
18+
}
19+
}
20+
1421
/**
1522
* @typedef {runCallback}
1623
* @property {Function} [done]
@@ -25,6 +32,7 @@ var _ = require('lodash'),
2532
*/
2633
Runner = function PostmanCollectionRunner (options) { // eslint-disable-line func-name-matching
2734
this.options = _.assign({}, options);
35+
applyRunExtensions(this.options.extensions);
2836
};
2937

3038
_.assign(Runner.prototype, {
@@ -82,6 +90,7 @@ _.assign(Runner.prototype, {
8290
var self = this,
8391
runOptions = this.prepareRunConfig(options);
8492

93+
applyRunExtensions(this.options.extensions);
8594
callback = backpack.normalise(callback);
8695
!_.isObject(options) && (options = {});
8796

0 commit comments

Comments
 (0)