Skip to content

Commit

Permalink
Merge pull request #147 from swisspush/develop
Browse files Browse the repository at this point in the history
Release 0.9.7
  • Loading branch information
lbovet authored Sep 9, 2020
2 parents 0813ae9 + 78ff6c0 commit a52a724
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apikana",
"version": "0.9.6",
"version": "0.9.7",
"description": "Integrated tools for REST API design - アピ",
"main": "index.js",
"bin": {
Expand Down
14 changes: 14 additions & 0 deletions src/plopfile_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ module.exports = function (plop, cfg) {
return result;
});

plop.setHelper('ifEquals', function(arg1, arg2, options) {
return (arg1 == arg2) ? options.fn(this) : options.inverse(this);
});

plop.setHelper("ifContains", function(array, value, options){
var aArray = array.split(",");

for (var i = 0; i < aArray.length; i++) {
if (value.indexOf(aArray[i]) > -1) {
return (value.indexOf(aArray[i]) > -1) ? options.fn( this ) : "";
}
}
});

function getMajorVersion(version) {
let majorVersion = version.split(".", 1)[0];
if (majorVersion === "0") {
Expand Down

0 comments on commit a52a724

Please sign in to comment.