@tryghost/job-manager 4.1.12 → 4.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/JobManager.js CHANGED
@@ -4,6 +4,7 @@ const setTimeoutPromise = util.promisify(setTimeout);
4
4
  const fastq = require('fastq');
5
5
  const later = require('@breejs/later');
6
6
  const Bree = require('bree');
7
+ const pWaitFor = require('p-wait-for').default;
7
8
  const { UnhandledJobError, IncorrectUsageError } = require('@tryghost/errors');
8
9
  const logging = require('@tryghost/logging');
9
10
  const isCronExpression = require('./is-cron-expression');
@@ -426,7 +427,6 @@ class JobManager {
426
427
 
427
428
  logging.warn('Waiting for busy job in inline job queue');
428
429
 
429
- const { default: pWaitFor } = await import('p-wait-for');
430
430
  await pWaitFor(() => this.inlineQueue.idle() === true, options);
431
431
 
432
432
  logging.warn('Inline job queue finished');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/job-manager",
3
- "version": "4.1.12",
3
+ "version": "4.1.13",
4
4
  "license": "MIT",
5
5
  "author": "Ghost Foundation",
6
6
  "repository": {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@breejs/later": "4.2.0",
21
- "@tryghost/errors": "^3.3.11",
22
- "@tryghost/logging": "^5.4.2",
21
+ "@tryghost/errors": "^3.3.12",
22
+ "@tryghost/logging": "^5.4.3",
23
23
  "bree": "9.2.9",
24
24
  "cron-validate": "1.5.3",
25
25
  "fastq": "1.20.3",
@@ -32,6 +32,9 @@
32
32
  "rewire": "9.0.1",
33
33
  "sinon": "22.1.0"
34
34
  },
35
+ "engines": {
36
+ "node": "^22.12.0 || >=24.0.0"
37
+ },
35
38
  "scripts": {
36
39
  "dev": "echo \"Implement me!\"",
37
40
  "test": "NODE_ENV=testing vitest run --coverage",