@jayfong/x-server 1.26.0 → 1.26.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.26.1](https://github.com/jfWorks/x-server/compare/v1.26.0...v1.26.1) (2022-05-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * defineTask ([7d5a5d2](https://github.com/jfWorks/x-server/commit/7d5a5d247a63301dc46042238a6d31f7f4cb5423))
11
+
5
12
  ## [1.26.0](https://github.com/jfWorks/x-server/compare/v1.25.0...v1.26.0) (2022-05-02)
6
13
 
7
14
 
@@ -9,7 +9,7 @@ var _bull = _interopRequireDefault(require("bull"));
9
9
 
10
10
  var _x = require("../x");
11
11
 
12
- async function defineTask(options) {
12
+ function defineTask(options) {
13
13
  const queue = new _bull.default(options.name, {
14
14
  redis: _x.x.redis.options,
15
15
  prefix: `${_x.x.appId}_task`
@@ -1,2 +1,2 @@
1
1
  import type { XTask } from './types';
2
- export declare function defineTask<T>(options: XTask.Options<T>): Promise<XTask.Task<T>>;
2
+ export declare function defineTask<T>(options: XTask.Options<T>): XTask.Task<T>;
@@ -1,6 +1,6 @@
1
1
  import Queue from 'bull';
2
2
  import { x } from "../x";
3
- export async function defineTask(options) {
3
+ export function defineTask(options) {
4
4
  const queue = new Queue(options.name, {
5
5
  redis: x.redis.options,
6
6
  prefix: `${x.appId}_task`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",