@pisell/core 1.0.70 → 1.0.71
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/es/app/app.d.ts +1 -1
- package/es/app/app.js +3 -1
- package/es/history/index.d.ts +1 -1
- package/es/routes/index.d.ts +2 -2
- package/es/tasks/index.d.ts +1 -1
- package/lib/app/app.d.ts +1 -1
- package/lib/app/app.js +3 -1
- package/lib/history/index.d.ts +1 -1
- package/lib/routes/index.d.ts +2 -2
- package/lib/tasks/index.d.ts +1 -1
- package/package.json +1 -1
package/es/app/app.d.ts
CHANGED
package/es/app/app.js
CHANGED
|
@@ -96,7 +96,9 @@ var App = /*#__PURE__*/function () {
|
|
|
96
96
|
this.cmd = new CMD(this, options === null || options === void 0 ? void 0 : options.cmd);
|
|
97
97
|
this.aws = new AWS(this, options === null || options === void 0 ? void 0 : options.aws);
|
|
98
98
|
this.getPisellos = options === null || options === void 0 ? void 0 : options.getPisellos;
|
|
99
|
-
|
|
99
|
+
if (options !== null && options !== void 0 && options.sqlite) {
|
|
100
|
+
this.sqlite = options.sqlite(this);
|
|
101
|
+
}
|
|
100
102
|
if (options !== null && options !== void 0 && options.constants) {
|
|
101
103
|
this.constants = options.constants || {};
|
|
102
104
|
}
|
package/es/history/index.d.ts
CHANGED
package/es/routes/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ export declare class RouterManager {
|
|
|
20
20
|
get(name: string): RouteType;
|
|
21
21
|
has(name: string): boolean;
|
|
22
22
|
remove(name: string): void;
|
|
23
|
-
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.
|
|
23
|
+
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
24
24
|
getPageByRoute(route: string): ApplicationInterface | undefined;
|
|
25
25
|
getRouterComponent({ fallback }: {
|
|
26
26
|
fallback?: React.ReactNode;
|
|
27
|
-
}):
|
|
27
|
+
}): JSX.Element[];
|
|
28
28
|
}
|
package/es/tasks/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export declare class TasksManager {
|
|
|
108
108
|
*/
|
|
109
109
|
getQueueStatus(module: string, queueId: string): {
|
|
110
110
|
isRunning: boolean;
|
|
111
|
-
status: "
|
|
111
|
+
status: "uncompleted" | "completed";
|
|
112
112
|
progress: {
|
|
113
113
|
total: number;
|
|
114
114
|
completed: number;
|
package/lib/app/app.d.ts
CHANGED
package/lib/app/app.js
CHANGED
|
@@ -122,7 +122,9 @@ var App = class _App {
|
|
|
122
122
|
this.cmd = new import_cmd.default(this, options == null ? void 0 : options.cmd);
|
|
123
123
|
this.aws = new import_aws.default(this, options == null ? void 0 : options.aws);
|
|
124
124
|
this.getPisellos = options == null ? void 0 : options.getPisellos;
|
|
125
|
-
|
|
125
|
+
if (options == null ? void 0 : options.sqlite) {
|
|
126
|
+
this.sqlite = options.sqlite(this);
|
|
127
|
+
}
|
|
126
128
|
if (options == null ? void 0 : options.constants) {
|
|
127
129
|
this.constants = options.constants || {};
|
|
128
130
|
}
|
package/lib/history/index.d.ts
CHANGED
package/lib/routes/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ export declare class RouterManager {
|
|
|
20
20
|
get(name: string): RouteType;
|
|
21
21
|
has(name: string): boolean;
|
|
22
22
|
remove(name: string): void;
|
|
23
|
-
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.
|
|
23
|
+
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
24
24
|
getPageByRoute(route: string): ApplicationInterface | undefined;
|
|
25
25
|
getRouterComponent({ fallback }: {
|
|
26
26
|
fallback?: React.ReactNode;
|
|
27
|
-
}):
|
|
27
|
+
}): JSX.Element[];
|
|
28
28
|
}
|
package/lib/tasks/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export declare class TasksManager {
|
|
|
108
108
|
*/
|
|
109
109
|
getQueueStatus(module: string, queueId: string): {
|
|
110
110
|
isRunning: boolean;
|
|
111
|
-
status: "
|
|
111
|
+
status: "uncompleted" | "completed";
|
|
112
112
|
progress: {
|
|
113
113
|
total: number;
|
|
114
114
|
completed: number;
|