postman-collection
Advanced tools
Comparing version 4.4.1 to 4.5.0
@@ -90,3 +90,14 @@ var _ = require('../util').lodash, | ||
*/ | ||
_postman_propertyName: 'Event' | ||
_postman_propertyName: 'Event', | ||
/** | ||
* Check whether an object is an instance of {@link Event}. | ||
* | ||
* @param {*} obj - | ||
* @returns {Boolean} | ||
*/ | ||
isEvent: function isPostmanEvent (obj) { | ||
return Boolean(obj) && ((obj instanceof Event) || | ||
_.inSuperChain(obj.constructor, '_postman_propertyName', Event._postman_propertyName)); | ||
} | ||
}); | ||
@@ -93,0 +104,0 @@ |
@@ -97,2 +97,11 @@ var _ = require('../util').lodash, | ||
} | ||
}, | ||
/** | ||
* Checks if the script is empty i.e does not have any code to execute. | ||
* | ||
* @returns {Boolean} | ||
*/ | ||
isEmpty: function () { | ||
return _.isEmpty(_.trim(this.toSource())); | ||
} | ||
@@ -99,0 +108,0 @@ }); |
{ | ||
"name": "postman-collection", | ||
"version": "4.4.1", | ||
"version": "4.5.0", | ||
"description": "Enables developers to use a unified Postman Collection format Object across projects", | ||
@@ -44,3 +44,3 @@ "author": "Postman Inc.", | ||
"postman-url-encoder": "3.0.5", | ||
"semver": "7.5.4", | ||
"semver": "7.6.3", | ||
"uuid": "8.3.2" | ||
@@ -60,7 +60,7 @@ }, | ||
"eslint-plugin-lodash": "^7.4.0", | ||
"eslint-plugin-mocha": "^10.2.0", | ||
"eslint-plugin-mocha": "^10.5.0", | ||
"eslint-plugin-security": "^1.7.1", | ||
"js-yaml": "^4.1.0", | ||
"jsdoc": "^3.6.11", | ||
"karma": "^6.4.2", | ||
"karma": "^6.4.4", | ||
"karma-browserify": "^8.1.0", | ||
@@ -67,0 +67,0 @@ "karma-chrome-launcher": "^3.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
509886
11388
+ Addedsemver@7.6.3(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedsemver@7.5.4(transitive)
- Removedyallist@4.0.0(transitive)
Updatedsemver@7.6.3