mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-26 20:26:09 -07:00
35 lines
882 B
JavaScript
35 lines
882 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.getOptions = getOptions;
|
||
|
exports.defaultOptions = void 0;
|
||
|
const defaultOptions = {
|
||
|
sourceType: "script",
|
||
|
sourceFilename: undefined,
|
||
|
startLine: 1,
|
||
|
allowAwaitOutsideFunction: false,
|
||
|
allowReturnOutsideFunction: false,
|
||
|
allowImportExportEverywhere: false,
|
||
|
allowSuperOutsideMethod: false,
|
||
|
allowUndeclaredExports: false,
|
||
|
plugins: [],
|
||
|
strictMode: null,
|
||
|
ranges: false,
|
||
|
tokens: false,
|
||
|
createParenthesizedExpressions: false,
|
||
|
errorRecovery: false
|
||
|
};
|
||
|
exports.defaultOptions = defaultOptions;
|
||
|
|
||
|
function getOptions(opts) {
|
||
|
const options = {};
|
||
|
|
||
|
for (let _i = 0, _Object$keys = Object.keys(defaultOptions); _i < _Object$keys.length; _i++) {
|
||
|
const key = _Object$keys[_i];
|
||
|
options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];
|
||
|
}
|
||
|
|
||
|
return options;
|
||
|
}
|