From f67e908576c37be2617758721320706180202d83 Mon Sep 17 00:00:00 2001 From: Leslie-Wong-H <79917148leslie@gmail.com> Date: Mon, 10 Jul 2023 03:12:14 +0800 Subject: [PATCH 1/2] Chore: polish "Fail" to "Failed" --- hasher.js | 4 ++-- loader.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hasher.js b/hasher.js index 452cbb7..46a7bf0 100644 --- a/hasher.js +++ b/hasher.js @@ -54,7 +54,7 @@ const messageHandle = async (data) => { headers: { "x-trace-secret": TRACE_API_SECRET }, }); if (video.status >= 400) { - console.log(`Error: Fail to download video "${await video.text()}"`); + console.log(`Error: Failed to download video "${await video.text()}"`); ws.send(data); return; } @@ -69,7 +69,7 @@ const messageHandle = async (data) => { }); }); if (!fs.existsSync(mp4FilePath)) { - console.log("Error: Fail to download video"); + console.log("Error: Failed to download video"); return; } diff --git a/loader.js b/loader.js index c25de51..c4dc607 100644 --- a/loader.js +++ b/loader.js @@ -131,7 +131,7 @@ const messageHandle = async (data) => { } ); if (res.status >= 400) { - console.log(`Error: Fail to download "${await res.text()}"`); + console.log(`Error: Failed to download "${await res.text()}"`); ws.send(data); return; } From de054cf18c8cb018ad3208f72a36e814dfcf72c2 Mon Sep 17 00:00:00 2001 From: Leslie-Wong-H <79917148leslie@gmail.com> Date: Tue, 11 Jul 2023 23:53:10 +0800 Subject: [PATCH 2/2] Build: release shotit-worker 0.9.5 --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0732b6c..f7803d1 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/shotit/shotit-worker/docker-image.yml?branch=main&style=flat-square)](https://github.com/shotit/shotit-worker/actions) [![GitHub release](https://img.shields.io/github/release/shotit/shotit-worker.svg)](https://github.com/shotit/shotit-worker/releases/latest) [![Watcher Docker](https://img.shields.io/docker/pulls/lesliewong007/shotit-worker-watcher?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-watcher) -[![Watcher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-watcher/v0.9.4?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-watcher) +[![Watcher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-watcher/v0.9.5?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-watcher) [![Hasher Docker](https://img.shields.io/docker/pulls/lesliewong007/shotit-worker-hasher?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-hasher) -[![Hasher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-hasher/v0.9.4?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-hasher) +[![Hasher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-hasher/v0.9.5?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-hasher) [![Loader Docker](https://img.shields.io/docker/pulls/lesliewong007/shotit-worker-loader?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-loader) -[![Loader Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-loader/v0.9.4?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-loader) +[![Loader Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-loader/v0.9.5?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-loader) [![Searcher Docker](https://img.shields.io/docker/pulls/lesliewong007/shotit-worker-searcher?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-searcher) -[![Searcher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-searcher/v0.9.4?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-searcher) +[![Searcher Docker Image Size](https://img.shields.io/docker/image-size/lesliewong007/shotit-worker-searcher/v0.9.5?style=flat-square)](https://hub.docker.com/r/lesliewong007/shotit-worker-searcher) Backend workers for [shotit](https://github.com/shotit/shotit). Four core workers of shotit: watcher, hasher, loader and searcher. diff --git a/package.json b/package.json index 811917a..5839a49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shotit-worker", - "version": "0.9.4", + "version": "0.9.5", "description": "Four core workers of shotit: watcher, hasher, loader and searcher", "main": "", "type": "module",