postman-collection-secret-variable-type
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -24,3 +24,3 @@ var _ = require('../util').lodash, | ||
isPrimitiveMutation = function (mutation) { | ||
return mutation && mutation.length <= 2; | ||
return mutation && mutation.length <= 3; | ||
}, | ||
@@ -27,0 +27,0 @@ |
@@ -242,3 +242,3 @@ var _ = require('../util').lodash, | ||
// track the change if mutation tracking is enabled | ||
this._postman_enableTracking && this.mutations.track(MUTATIONS.SET, key, value); | ||
this._postman_enableTracking && this.mutations.track(MUTATIONS.SET, key, value, type); | ||
}, | ||
@@ -363,4 +363,5 @@ | ||
* @param {*} value - | ||
* @param {String} type - | ||
*/ | ||
applyMutation: function (instruction, key, value) { | ||
applyMutation: function (instruction, key, value, type) { | ||
// we know that `set` and `unset` are the only supported instructions | ||
@@ -370,3 +371,3 @@ // and we know the parameter signature of both is the same as the items in a mutation | ||
if (this[instruction]) { | ||
this[instruction](key, value); | ||
this[instruction](key, value, type); | ||
} | ||
@@ -373,0 +374,0 @@ }, |
{ | ||
"name": "postman-collection-secret-variable-type", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Enables developers to use a unified Postman Collection format Object across projects", | ||
@@ -5,0 +5,0 @@ "author": "Postman Inc.", |
506185
11308