- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = optimiseCallExpression;
|
|
var _t = require("@babel/types");
|
|
const {
|
|
callExpression,
|
|
identifier,
|
|
isIdentifier,
|
|
isSpreadElement,
|
|
memberExpression,
|
|
optionalCallExpression,
|
|
optionalMemberExpression
|
|
} = _t;
|
|
function optimiseCallExpression(callee, thisNode, args, optional) {
|
|
if (args.length === 1 && isSpreadElement(args[0]) && isIdentifier(args[0].argument, {
|
|
name: "arguments"
|
|
})) {
|
|
if (optional) {
|
|
return optionalCallExpression(optionalMemberExpression(callee, identifier("apply"), false, true), [thisNode, args[0].argument], false);
|
|
}
|
|
return callExpression(memberExpression(callee, identifier("apply")), [thisNode, args[0].argument]);
|
|
} else {
|
|
if (optional) {
|
|
return optionalCallExpression(optionalMemberExpression(callee, identifier("call"), false, true), [thisNode, ...args], false);
|
|
}
|
|
return callExpression(memberExpression(callee, identifier("call")), [thisNode, ...args]);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=index.js.map
|