feat-skip-requests-package-collection
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -332,2 +332,22 @@ var _ = require('../util').lodash, | ||
return this.request.authorizeUsing(type, options); | ||
}, | ||
/** | ||
* Returns the path of the item | ||
* | ||
* @returns {Array<string>} | ||
*/ | ||
getPath: function () { | ||
const path = []; | ||
if (typeof this.name === 'string') { | ||
const pushItem = (item) => { | ||
path.push(item.name || ''); | ||
}; | ||
pushItem(this); | ||
this.forEachParent({ withRoot: true }, pushItem); | ||
} | ||
return path.reverse(); | ||
} | ||
@@ -334,0 +354,0 @@ }); |
{ | ||
"name": "feat-skip-requests-package-collection", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Enables developers to use a unified Postman Collection format Object across projects", | ||
@@ -5,0 +5,0 @@ "author": "Postman Inc.", |
Sorry, the diff of this file is not supported yet
506359
11304