You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

postman-collection

Package Overview
Dependencies
Maintainers
6
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.0 to 3.5.1-beta.1

lib/superstring/dynamic-variables.js

26

lib/superstring/index.js
var _ = require('../util').lodash,
uuid = require('uuid'),
faker = require('faker/locale/en'),
fakermap = require('./faker-map'),
dynamicVariables = require('./dynamic-variables'),
E = '',
FAKER_DYN_VAR_BASE = '$random',

@@ -184,13 +181,3 @@ SuperString, // constructor

*/
DEFAULT_VARS: {
$guid: function () {
return uuid.v4();
},
$timestamp: function () {
return Math.round(Date.now() / 1000);
},
$randomInt: function () {
return ~~(Math.random() * (1000 + 1));
}
},
DEFAULT_VARS: {},

@@ -236,9 +223,6 @@ /**

// 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;
_.forOwn(dynamicVariables, function (variable, name) {
if (variable && _.isFunction(variable.generator)) {
Substitutor.DEFAULT_VARS[name] = variable.generator;
}

@@ -245,0 +229,0 @@ });

@@ -5,3 +5,3 @@ {

"author": "Postman Labs <help@getpostman.com>",
"version": "3.5.0",
"version": "3.5.1-beta.1",
"keywords": [

@@ -40,6 +40,6 @@ "postman"

"http-reasons": "0.1.0",
"iconv-lite": "0.4.24",
"iconv-lite": "0.5.0",
"liquid-json": "0.3.1",
"lodash": "4.17.11",
"marked": "0.6.2",
"marked": "0.6.3",
"mime-format": "2.0.0",

@@ -49,3 +49,3 @@ "mime-types": "2.1.24",

"sanitize-html": "1.20.1",
"semver": "6.1.1",
"semver": "6.2.0",
"uuid": "3.3.2"

@@ -79,4 +79,4 @@ },

"postman-jsdoc-theme": "0.0.3",
"postman-request": "2.88.1-postman.11",
"puppeteer": "1.17.0",
"postman-request": "2.88.1-postman.12",
"puppeteer": "1.18.0",
"require-all": "3.0.0",

@@ -83,0 +83,0 @@ "schema-compiler": "0.0.3",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc