Socket
Socket
Sign inDemoInstall

postman-collection

Package Overview
Dependencies
Maintainers
4
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-collection - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3-beta.1

appveyor.yml

2

karma.conf.js

@@ -22,3 +22,3 @@ // Karma configuration

exclude: [
'test/infra/*'
'test/system/*'
],

@@ -25,0 +25,0 @@

@@ -173,2 +173,13 @@ var _ = require('../util').lodash,

/**
* Transfer the variables in this scope to an object
*
* @param {Object=} [obj]
*
* @returns {Object}
*/
syncVariablesTo: function (obj) {
return this.variables.syncToObject(obj);
},
/**
* Convert the collection to JSON compatible plain object

@@ -175,0 +186,0 @@ *

@@ -133,3 +133,3 @@ var util = require('../util'),

* @param {Function=} [reviver]
* @param {Boolean=false} [strict] Specify whether JSON parsing will be strict. This will fail on comments and BOM
* @param {Boolean} [strict=false] Specify whether JSON parsing will be strict. This will fail on comments and BOM
* @example

@@ -136,0 +136,0 @@ * // assuming that the response is stored in a collection instance `myCollection`

@@ -126,2 +126,27 @@ var _ = require('../util').lodash,

/**
* Transfar all variables from this list to an object
*
* @param {Object=} [obj]
* @returns {Object}
*/
syncToObject: function (obj) {
var list = this;
// in case user did not ptovide an object to mutate, create a new one
!_.isObject(obj) && (obj = {});
// delete extra variables from object that are not present in list
_.forEach(obj, function (value, key) {
!_.has(list.reference, key) && (delete obj[key]);
});
// we first sync all variables in this list to the object
list.each(function (variable) {
obj[variable.key] = variable.valueOf();
});
return obj;
},
/**
* This function allows to manipulate the environment chain in this variable list.

@@ -128,0 +153,0 @@ * @private

@@ -72,2 +72,13 @@ var _ = require('../util').lodash,

/**
* Transfer the variables in this scope to an object
*
* @param {Object=} [obj]
*
* @returns {Object}
*/
syncVariablesTo: function (obj) {
return this.values.syncToObject(obj);
},
/**
* Convert this variable scope into a JSON serialisable object. Useful to transport or store, environment and

@@ -74,0 +85,0 @@ * globals as a whole.

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

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

@@ -22,12 +22,13 @@ "postman"

"scripts": {
"build-docs": "scripts/build/build-docs.sh",
"build-schema": "scripts/build/build-schema.sh",
"build-wiki": "scripts/build/build-wiki.sh",
"publish-wiki": "scripts/publish/publish-wiki.sh",
"publish-docs": "scripts/publish/publish-docs.sh",
"test": "scripts/test/test.sh",
"test-integration": "scripts/test/test-integration.sh",
"test-infra": "scripts/test/test-infra.sh",
"test-browser": "scripts/test/test-browser.sh",
"test-lint": "scripts/test/test-lint.sh"
"build-docs": "node npm/build-docs.js",
"build-schema": "node npm/build-schema.js",
"build-wiki": "node npm/build-wiki.js",
"publish-wiki": "node npm/build-wiki.js",
"publish-docs": "node npm/build-docs.js",
"test": "node npm/test.js",
"test-integration": "node npm/test-integration.js",
"test-system": "node npm/test-system.js",
"test-browser": "node npm/test-browser.js",
"test-lint": "node npm/test-lint.js",
"test-unit": "node npm/test-unit.js"
},

@@ -43,5 +44,5 @@ "dependencies": {

"http-reasons": "0.1.0",
"liquid-json": "0.2.0",
"liquid-json": "0.3.1",
"lodash": "4.16.1",
"marked": "0.3.5",
"marked": "0.3.6",
"mime-format": "1.0.2",

@@ -56,4 +57,6 @@ "mime-types": "2.1.12",

"devDependencies": {
"async": "2.0.1",
"browserify": "13.1.0",
"eslint": "3.5.0",
"colors": "1.1.2",
"eslint": "3.6.0",
"eslint-plugin-jsdoc": "2.3.1",

@@ -64,3 +67,4 @@ "eslint-plugin-lodash": "1.10.3",

"expect.js": "0.3.1",
"istanbul": "0.4.4",
"istanbul": "0.4.5",
"js-yaml": "3.6.1",
"jsdoc": "3.4.1",

@@ -71,10 +75,12 @@ "jsdoc-to-markdown": "1.3.7",

"karma-chrome-launcher": "0.2.3",
"karma-mocha": "0.2.2",
"karma-mocha": "1.2.0",
"karma-mocha-reporter": "2.2.0",
"postman-jsdoc-theme": "0.0.2",
"mocha": "2.5.3",
"mocha": "3.1.0",
"mustache": "2.2.1",
"nsp": "2.6.1",
"packity": "0.3.2",
"postman-jsdoc-theme": "0.0.2",
"recursive-readdir": "2.1.0",
"require-all": "2.0.0",
"shelljs": "0.7.4",
"strip-json-comments": "2.0.1",

@@ -81,0 +87,0 @@ "tv4": "1.2.7",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc