10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-16 03:19:52 +00:00

Add node modules and new code for release

This commit is contained in:
taakleton 2022-01-26 21:54:24 +00:00 committed by GitHub
parent da63a48ad7
commit 3925f466de
8435 changed files with 1764387 additions and 7 deletions

View file

@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
var _t = require("@babel/types");
const {
isAssignmentPattern,
isRestElement
} = _t;
function _default(node) {
const params = node.params;
for (let i = 0; i < params.length; i++) {
const param = params[i];
if (isAssignmentPattern(param) || isRestElement(param)) {
return i;
}
}
return params.length;
}