@stemy/backend 3.5.16 → 3.6.0
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/bundles/stemy-backend.umd.js +940 -468
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/common-types.d.ts +18 -1
- package/esm2015/common-types.js +2 -1
- package/esm2015/public_api.js +29 -8
- package/esm2015/rest-controllers/terminal.controller.js +151 -0
- package/esm2015/services/asset-processor.js +1 -22
- package/esm2015/services/assets.js +6 -6
- package/esm2015/services/configuration.js +13 -5
- package/esm2015/services/template-renderer.js +2 -3
- package/esm2015/services/terminal-manager.js +94 -0
- package/esm2015/socket-controllers/progress.controller.js +3 -3
- package/esm2015/socket-controllers/terminal.controller.js +83 -0
- package/esm2015/socket-controllers/terminal.js +98 -0
- package/esm2015/utilities/clear-command.js +33 -0
- package/esm2015/utils.js +28 -1
- package/fesm2015/stemy-backend.js +891 -423
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +3 -2
- package/public_api.d.ts +3 -2
- package/rest-controllers/terminal.controller.d.ts +8 -0
- package/services/asset-processor.d.ts +0 -3
- package/services/configuration.d.ts +2 -1
- package/services/terminal-manager.d.ts +15 -0
- package/socket-controllers/terminal.controller.d.ts +13 -0
- package/socket-controllers/terminal.d.ts +20 -0
- package/stemy-backend.metadata.json +1 -1
- package/utilities/clear-command.d.ts +6 -0
- package/utils.d.ts +4 -1
package/utils.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Server } from "socket.io";
|
|
|
5
5
|
import { GridFSBucket, ObjectId } from "mongodb";
|
|
6
6
|
import { Document } from "mongoose";
|
|
7
7
|
import { Readable, ReadableOptions } from "stream";
|
|
8
|
-
import { IAssetImageParams, IAssetMeta, IClientSocket, ParamResolver, Type } from "./common-types";
|
|
8
|
+
import { IAssetImageParams, IAssetMeta, IClientSocket, IFileType, ParamResolver, Type } from "./common-types";
|
|
9
9
|
export interface IDIContainers {
|
|
10
10
|
appContainer: DependencyContainer;
|
|
11
11
|
}
|
|
@@ -61,6 +61,7 @@ export declare function multiSubscription(...subscriptions: Subscription[]): Sub
|
|
|
61
61
|
export declare function observableFromFunction(callbackFunc: () => any): Observable<any>;
|
|
62
62
|
export declare function padLeft(value: any, count?: number, padWith?: string): string;
|
|
63
63
|
export declare function padRight(value: any, count?: number, padWith?: string): string;
|
|
64
|
+
export declare function camelCaseToDash(str: string): string;
|
|
64
65
|
export declare function deleteFromBucket(bucket: GridFSBucket, fileId: ObjectId): Promise<string>;
|
|
65
66
|
export declare function filter<T>(obj: T, predicate: FilterPredicate): Partial<T>;
|
|
66
67
|
export declare function copy<T>(obj: T): T;
|
|
@@ -105,8 +106,10 @@ export interface IJsonColors {
|
|
|
105
106
|
export declare function colorize(input: any, color: ConsoleColor): string;
|
|
106
107
|
export declare function jsonHighlight(input: string | object, colorOptions?: IJsonColors): string;
|
|
107
108
|
export declare function replaceSpecialChars(str: string, to?: string): string;
|
|
109
|
+
export declare function regexEscape(str: string): string;
|
|
108
110
|
export declare function flatten(arr: any[]): any[];
|
|
109
111
|
export declare function wrapError(e: any, message: string, httpCode?: number): Error;
|
|
110
112
|
export declare function prepareUrl(ending?: string): ParamResolver;
|
|
111
113
|
export declare const prepareUrlSlash: ParamResolver;
|
|
112
114
|
export declare const prepareUrlEmpty: ParamResolver;
|
|
115
|
+
export declare function fileTypeFromBuffer(buffer: Buffer): Promise<IFileType>;
|