mirror of
https://github.com/tauri-apps/actions-netlify.git
synced 2026-01-31 00:45:22 +01:00
build
This commit is contained in:
BIN
dist/esbuild
vendored
BIN
dist/esbuild
vendored
Binary file not shown.
21
dist/index.js
vendored
21
dist/index.js
vendored
@@ -187909,8 +187909,8 @@ function createChannel(streamIn) {
|
||||
if (isFirstPacket) {
|
||||
isFirstPacket = false;
|
||||
let binaryVersion = String.fromCharCode(...bytes);
|
||||
if (binaryVersion !== "0.8.46") {
|
||||
throw new Error(`Cannot start service: Host version "${"0.8.46"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
||||
if (binaryVersion !== "0.8.49") {
|
||||
throw new Error(`Cannot start service: Host version "${"0.8.49"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -188593,7 +188593,7 @@ var esbuildCommandAndArgs = () => {
|
||||
return [__nccwpck_require__.ab + "esbuild", []];
|
||||
};
|
||||
var isTTY = () => tty.isatty(2);
|
||||
var version = "0.8.46";
|
||||
var version = "0.8.49";
|
||||
var build = (options) => startService().then((service) => service.build(options));
|
||||
var serve = (serveOptions, buildOptions) => startService().then((service) => service.serve(serveOptions, buildOptions));
|
||||
var transform = (input, options) => {
|
||||
@@ -188649,7 +188649,7 @@ var startService = longLivedService(() => process.cwd(), (options) => {
|
||||
throw new Error(`The "worker" option only works in the browser`);
|
||||
let [command, args] = esbuildCommandAndArgs();
|
||||
let defaultWD = process.cwd();
|
||||
let child = child_process.spawn(command, args.concat(`--service=${"0.8.46"}`, "--ping"), {
|
||||
let child = child_process.spawn(command, args.concat(`--service=${"0.8.49"}`, "--ping"), {
|
||||
windowsHide: true,
|
||||
stdio: ["pipe", "pipe", "inherit"]
|
||||
});
|
||||
@@ -188750,7 +188750,7 @@ var runServiceSync = (callback) => {
|
||||
isBrowser: false
|
||||
});
|
||||
callback(service);
|
||||
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.8.46"}`), {
|
||||
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.8.49"}`), {
|
||||
cwd: process.cwd(),
|
||||
windowsHide: true,
|
||||
input: stdin,
|
||||
@@ -239857,7 +239857,9 @@ const deploySite = async (
|
||||
phase: 'stop',
|
||||
})
|
||||
|
||||
const uploadList = getUploadList(requiredFiles, filesShaMap).concat(getUploadList(requiredFns, fnShaMap))
|
||||
const filesUploadList = getUploadList(requiredFiles, filesShaMap)
|
||||
const functionsUploadList = getUploadList(requiredFns, fnShaMap)
|
||||
const uploadList = [...filesUploadList, ...functionsUploadList]
|
||||
|
||||
await uploadFiles(api, deployId, uploadList, { concurrentUpload, statusCb, maxRetry })
|
||||
|
||||
@@ -239908,8 +239910,8 @@ const uploadFiles = async (api, deployId, uploadList, { concurrentUpload, status
|
||||
})
|
||||
|
||||
const uploadFile = async (fileObj, index) => {
|
||||
const { normalizedPath, assetType, runtime } = fileObj
|
||||
const readStreamCtor = () => fs.createReadStream(fileObj.filepath)
|
||||
const { normalizedPath, assetType, runtime, filepath } = fileObj
|
||||
const readStreamCtor = () => fs.createReadStream(filepath)
|
||||
|
||||
statusCb({
|
||||
type: 'upload',
|
||||
@@ -240123,6 +240125,7 @@ const waitForDeploy = async (api, deployId, siteId, timeout) => {
|
||||
const getUploadList = (required, shaMap) => {
|
||||
if (!required || !shaMap) return []
|
||||
// TODO: use `Array.flatMap()` instead once we remove support for Node <11.0.0
|
||||
// eslint-disable-next-line unicorn/prefer-spread
|
||||
return [].concat(...required.map((sha) => shaMap[sha]))
|
||||
}
|
||||
|
||||
@@ -240560,6 +240563,8 @@ const omit = __nccwpck_require__(72657)/* .default */ .Z
|
||||
|
||||
// Retrieve all OpenAPI operations
|
||||
const getOperations = function () {
|
||||
// TODO: switch to Array.flat() once we drop support for Node.js < 11.0.0
|
||||
// eslint-disable-next-line unicorn/prefer-spread
|
||||
return [].concat(
|
||||
...Object.entries(paths).map(([path, pathItem]) => {
|
||||
const operations = omit(pathItem, ['parameters'])
|
||||
|
||||
Reference in New Issue
Block a user