Skip to content

Commit 2e0dbe3

Browse files
committed
fix: stats jobs error handling
1 parent 7391b4b commit 2e0dbe3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dist/cjs/index.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7999,7 +7999,7 @@ var JackdClient = class {
79997999
},
80008000
[
80018001
(buffer) => {
8002-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT]);
8002+
const ascii = validate(buffer, [NOT_FOUND]);
80038003
if (ascii.startsWith(OK)) {
80048004
const [, bytes] = ascii.split(" ");
80058005
this.chunkLength = parseInt(bytes);
@@ -8034,7 +8034,7 @@ var JackdClient = class {
80348034
},
80358035
[
80368036
(buffer) => {
8037-
const ascii = validate(buffer, [NOT_FOUND, DEADLINE_SOON, TIMED_OUT]);
8037+
const ascii = validate(buffer, [NOT_FOUND]);
80388038
if (ascii.startsWith(OK)) {
80398039
const [, bytes] = ascii.split(" ");
80408040
this.chunkLength = parseInt(bytes);
@@ -8064,7 +8064,7 @@ var JackdClient = class {
80648064
`),
80658065
[
80668066
(buffer) => {
8067-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT]);
8067+
const ascii = validate(buffer);
80688068
if (ascii.startsWith(OK)) {
80698069
const [, bytes] = ascii.split(" ");
80708070
this.chunkLength = parseInt(bytes);

dist/esm/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7991,7 +7991,7 @@ var JackdClient = class {
79917991
},
79927992
[
79937993
(buffer) => {
7994-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT]);
7994+
const ascii = validate(buffer, [NOT_FOUND]);
79957995
if (ascii.startsWith(OK)) {
79967996
const [, bytes] = ascii.split(" ");
79977997
this.chunkLength = parseInt(bytes);
@@ -8026,7 +8026,7 @@ var JackdClient = class {
80268026
},
80278027
[
80288028
(buffer) => {
8029-
const ascii = validate(buffer, [NOT_FOUND, DEADLINE_SOON, TIMED_OUT]);
8029+
const ascii = validate(buffer, [NOT_FOUND]);
80308030
if (ascii.startsWith(OK)) {
80318031
const [, bytes] = ascii.split(" ");
80328032
this.chunkLength = parseInt(bytes);
@@ -8056,7 +8056,7 @@ var JackdClient = class {
80568056
`),
80578057
[
80588058
(buffer) => {
8059-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT]);
8059+
const ascii = validate(buffer);
80608060
if (ascii.startsWith(OK)) {
80618061
const [, bytes] = ascii.split(" ");
80628062
this.chunkLength = parseInt(bytes);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jackd",
3-
"version": "3.4.2",
3+
"version": "3.4.3",
44
"description": "Modern beanstalkd client for Node.js",
55
"type": "module",
66
"exports": {

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ export class JackdClient {
980980
},
981981
[
982982
(buffer: Uint8Array) => {
983-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT])
983+
const ascii = validate(buffer, [NOT_FOUND])
984984

985985
if (ascii.startsWith(OK)) {
986986
const [, bytes] = ascii.split(" ")
@@ -1017,7 +1017,7 @@ export class JackdClient {
10171017
},
10181018
[
10191019
(buffer: Uint8Array) => {
1020-
const ascii = validate(buffer, [NOT_FOUND, DEADLINE_SOON, TIMED_OUT])
1020+
const ascii = validate(buffer, [NOT_FOUND])
10211021

10221022
if (ascii.startsWith(OK)) {
10231023
const [, bytes] = ascii.split(" ")
@@ -1049,7 +1049,7 @@ export class JackdClient {
10491049
() => new TextEncoder().encode(`stats\r\n`),
10501050
[
10511051
(buffer: Uint8Array) => {
1052-
const ascii = validate(buffer, [DEADLINE_SOON, TIMED_OUT])
1052+
const ascii = validate(buffer)
10531053

10541054
if (ascii.startsWith(OK)) {
10551055
const [, bytes] = ascii.split(" ")

0 commit comments

Comments
 (0)