feat-skip-requests-package-collection
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -332,3 +332,24 @@ var _ = require('../util').lodash, | ||
return this.request.authorizeUsing(type, options); | ||
}, | ||
/** | ||
* Returns the path of the item | ||
* | ||
* @returns {Array<string>} | ||
*/ | ||
getPath: function () { | ||
const path = []; | ||
let item = this; | ||
while (item) { | ||
if (typeof item.name === 'string') { | ||
path.push(item.name); | ||
} | ||
item = item.__parent; | ||
} | ||
return path.reverse(); | ||
} | ||
}); | ||
@@ -335,0 +356,0 @@ |
@@ -173,24 +173,2 @@ var _ = require('../util').lodash, | ||
/** | ||
* Returns the path of the item | ||
* | ||
* @returns {Array<string>} | ||
*/ | ||
getPath () { | ||
const path = []; | ||
let item = this; | ||
while (item) { | ||
if (item.name) { | ||
path.push(item.name); | ||
} | ||
item = item.__parent; | ||
} | ||
path.reverse(); | ||
return path; | ||
}, | ||
/** | ||
* Accepts an object and sets it as the parent of the current property. | ||
@@ -197,0 +175,0 @@ * |
@@ -210,2 +210,3 @@ var _ = require('../util').lodash, | ||
_.has(options, 'disabled') && (this.disabled = options.disabled); | ||
_.has(options, 'description') && (this.describe(options.description)); | ||
} | ||
@@ -365,24 +366,2 @@ }); | ||
} | ||
}, | ||
/** | ||
* Free-form type of a value. This is the default for any variable, unless specified otherwise. It ensures that | ||
* the variable can store data in any type and no conversion is done while using {@link Variable#get}. | ||
*/ | ||
secret: { | ||
/** | ||
* @param {*} val - | ||
* @returns {*} | ||
*/ | ||
in (val) { | ||
return val; // pass through | ||
}, | ||
/** | ||
* @param {*} val - | ||
* @returns {*} | ||
*/ | ||
out (val) { | ||
return val; // pass through | ||
} | ||
} | ||
@@ -389,0 +368,0 @@ }, |
{ | ||
"name": "feat-skip-requests-package-collection", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Enables developers to use a unified Postman Collection format Object across projects", | ||
@@ -53,3 +53,3 @@ "author": "Postman Inc.", | ||
"btoa": "^1.2.1", | ||
"chai": "^4.3.7", | ||
"chai": "^4.3.8", | ||
"chalk": "^4.1.2", | ||
@@ -56,0 +56,0 @@ "dependency-check": "^4.1.0", |
Sorry, the diff of this file is not supported yet
506293
11305