postman-collection
Advanced tools
Comparing version 3.4.8 to 3.4.9-beta.1
var _ = require('../util').lodash, | ||
uuid = require('uuid'), | ||
faker = require('faker/locale/en'), | ||
fakermap = require('./faker-map'), | ||
E = '', | ||
FAKER_DYN_VAR_BASE = '$random', | ||
@@ -232,2 +235,12 @@ SuperString, // constructor | ||
// picks faker functions from the faker library | ||
// @todo make the default variales of SuperString extensible and do this anywhere else but here | ||
_.forOwn(fakermap, function (extension, name) { | ||
var generator = _.get(faker, extension); | ||
if (_.isFunction(generator)) { | ||
Substitutor.DEFAULT_VARS[FAKER_DYN_VAR_BASE + name] = generator; | ||
} | ||
}); | ||
module.exports = { | ||
@@ -234,0 +247,0 @@ SuperString: SuperString, |
@@ -5,3 +5,3 @@ { | ||
"author": "Postman Labs <help@getpostman.com>", | ||
"version": "3.4.8", | ||
"version": "3.4.9-beta.1", | ||
"keywords": [ | ||
@@ -32,6 +32,8 @@ "postman" | ||
"test-lint": "node npm/test-lint.js", | ||
"test-unit": "node npm/test-unit.js" | ||
"test-unit": "node npm/test-unit.js", | ||
"test-benchmark": "node npm/test-benchmark.js" | ||
}, | ||
"dependencies": { | ||
"escape-html": "1.0.3", | ||
"faker": "4.1.0", | ||
"file-type": "3.9.0", | ||
@@ -47,3 +49,3 @@ "http-reasons": "0.1.0", | ||
"sanitize-html": "1.20.1", | ||
"semver": "6.0.0", | ||
"semver": "6.1.1", | ||
"uuid": "3.3.2" | ||
@@ -53,2 +55,3 @@ }, | ||
"async": "2.6.2", | ||
"bipbip": "0.4.1", | ||
"browserify": "16.2.3", | ||
@@ -60,3 +63,3 @@ "btoa": "1.2.1", | ||
"eslint": "5.16.0", | ||
"eslint-plugin-jsdoc": "4.8.3", | ||
"eslint-plugin-jsdoc": "5.0.2", | ||
"eslint-plugin-lodash": "5.1.0", | ||
@@ -67,4 +70,4 @@ "eslint-plugin-mocha": "5.3.0", | ||
"js-yaml": "3.13.1", | ||
"jsdoc": "3.6.1", | ||
"jsdoc-to-markdown": "4.0.1", | ||
"jsdoc": "3.6.2", | ||
"jsdoc-to-markdown": "5.0.0", | ||
"karma": "3.1.4", | ||
@@ -79,4 +82,4 @@ "karma-browserify": "6.0.0", | ||
"postman-jsdoc-theme": "0.0.3", | ||
"postman-request": "2.88.1-postman.9", | ||
"puppeteer": "1.15.0", | ||
"postman-request": "2.88.1-postman.10", | ||
"puppeteer": "1.17.0", | ||
"require-all": "3.0.0", | ||
@@ -83,0 +86,0 @@ "schema-compiler": "0.0.3", |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
502912
76
10778
14
31
1
+ Addedfaker@4.1.0
+ Addedfaker@4.1.0(transitive)
+ Addedsemver@6.1.1(transitive)
- Removedsemver@6.0.0(transitive)
Updatedsemver@6.1.1