Skip to content

Commit

Permalink
dist: build new artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Korthout <[email protected]>
  • Loading branch information
korthout committed May 9, 2024
1 parent 1917713 commit 2c845b5
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 98 deletions.
155 changes: 79 additions & 76 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.findTargetBranches = exports.Backport = exports.experimentalDefaults = void 0;
const core = __importStar(__nccwpck_require__(2186));
const dedent_1 = __importDefault(__nccwpck_require__(5281));
const dedent_1 = __importDefault(__nccwpck_require__(8333));
const github_1 = __nccwpck_require__(5928);
const git_1 = __nccwpck_require__(3374);
const utils = __importStar(__nccwpck_require__(918));
Expand Down Expand Up @@ -970,7 +970,7 @@ const backport_1 = __nccwpck_require__(5859);
const github_1 = __nccwpck_require__(5928);
const git_1 = __nccwpck_require__(3374);
const execa_1 = __nccwpck_require__(7845);
const dedent_1 = __importDefault(__nccwpck_require__(5281));
const dedent_1 = __importDefault(__nccwpck_require__(8333));
/**
* Called from the action.yml.
*
Expand Down Expand Up @@ -8738,80 +8738,6 @@ function resolveCommand(parsed) {
module.exports = resolveCommand;


/***/ }),

/***/ 5281:
/***/ ((module, exports) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _default = createDedent({});
exports["default"] = _default;
function createDedent(options) {
dedent.withOptions = newOptions => createDedent({
...options,
...newOptions
});
return dedent;
function dedent(strings, ...values) {
const raw = typeof strings === "string" ? [strings] : strings.raw;
const {
escapeSpecialCharacters = Array.isArray(strings)
} = options;

// first, perform interpolation
let result = "";
for (let i = 0; i < raw.length; i++) {
let next = raw[i];
if (escapeSpecialCharacters) {
// handle escaped newlines, backticks, and interpolation characters
next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\{/g, "{");
}
result += next;
if (i < values.length) {
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
result += values[i];
}
}

// now strip indentation
const lines = result.split("\n");
let mindent = null;
for (const l of lines) {
const m = l.match(/^(\s+)\S+/);
if (m) {
const indent = m[1].length;
if (!mindent) {
// this is the first indented line
mindent = indent;
} else {
mindent = Math.min(mindent, indent);
}
}
}
if (mindent !== null) {
const m = mindent; // appease TypeScript
result = lines
// https://github.com/typescript-eslint/typescript-eslint/issues/7140
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
.map(l => l[0] === " " || l[0] === "\t" ? l.slice(m) : l).join("\n");
}
return result
// dedent eats leading and trailing whitespace too
.trim()
// handle escaped newlines at the end to ensure they don't get stripped too
.replace(/\\n/g, "\n");
}
}
module.exports = exports.default;
module.exports["default"] = exports.default;


/***/ }),

/***/ 8932:
Expand Down Expand Up @@ -33120,6 +33046,83 @@ module.exports = require("worker_threads");
"use strict";
module.exports = require("zlib");

/***/ }),

/***/ 8333:
/***/ ((module, exports) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
const dedent = createDedent({});
var _default = exports["default"] = dedent;
function createDedent(options) {
dedent.withOptions = newOptions => createDedent({
...options,
...newOptions
});
return dedent;
function dedent(strings, ...values) {
const raw = typeof strings === "string" ? [strings] : strings.raw;
const {
escapeSpecialCharacters = Array.isArray(strings)
} = options;

// first, perform interpolation
let result = "";
for (let i = 0; i < raw.length; i++) {
let next = raw[i];
if (escapeSpecialCharacters) {
// handle escaped newlines, backticks, and interpolation characters
next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{");
}
result += next;
if (i < values.length) {
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
result += values[i];
}
}

// now strip indentation
const lines = result.split("\n");
let mindent = null;
for (const l of lines) {
const m = l.match(/^(\s+)\S+/);
if (m) {
const indent = m[1].length;
if (!mindent) {
// this is the first indented line
mindent = indent;
} else {
mindent = Math.min(mindent, indent);
}
}
}
if (mindent !== null) {
const m = mindent; // appease TypeScript
result = lines
// https://github.com/typescript-eslint/typescript-eslint/issues/7140
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
.map(l => l[0] === " " || l[0] === "\t" ? l.slice(m) : l).join("\n");
}

// dedent eats leading and trailing whitespace too
result = result.trim();
if (escapeSpecialCharacters) {
// handle escaped newlines at the end to ensure they don't get stripped too
result = result.replace(/\\n/g, "\n");
}
return result;
}
}
module.exports = exports.default;
module.exports["default"] = exports.default;


/***/ }),

/***/ 7845:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

41 changes: 20 additions & 21 deletions dist/licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,27 +473,26 @@ THE SOFTWARE.

dedent
MIT
The MIT License (MIT)

Copyright (c) 2015 Desmond Brand ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
# MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


deprecation
Expand Down

0 comments on commit 2c845b5

Please sign in to comment.