@stemy/backend 6.0.0 → 6.0.2
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/esm2022/public_api.mjs +2 -2
- package/esm2022/services/asset-processor.mjs +9 -13
- package/esm2022/services/backend-provider.mjs +2 -2
- package/esm2022/services/open-api.mjs +28 -29
- package/esm2022/utils.mjs +9 -7
- package/fesm2022/stemy-backend.mjs +45 -48
- package/fesm2022/stemy-backend.mjs.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +1 -1
- package/services/asset-processor.d.ts +1 -1
- package/utils.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stemy/backend",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "git@github.com:stemyke/node-backend.git",
|
|
6
6
|
"builders": "builders.json",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@typegoose/typegoose": "10.1.1",
|
|
41
41
|
"multer": "^2.0.2",
|
|
42
42
|
"dotenv": "^17.2.2",
|
|
43
|
-
"file-type": "
|
|
43
|
+
"file-type": "16.5.4",
|
|
44
44
|
"zeromq": "^6.5.0",
|
|
45
45
|
"node-cron": "^4.2.1",
|
|
46
46
|
"tz-offset": "^0.0.2",
|
package/public_api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBackendConfig, IDependencyContainer, IRequest, IUser, Provider } from "./common-types";
|
|
2
|
-
export { FilterPredicate, isNullOrUndefined, isDefined, getType, isObject, isArray, isBuffer, isBoolean, isDate, isPrimitive, isString, isFunction, isConstructor, isType, isInterface, ucFirst, lcFirst, isObjectId, firstItem, lastItem, regroup, uniqueItems, getValue, groupBy, convertValue, toImage, bufferToStream, streamToBuffer, copyStream, mkdirRecursive, deleteFile, readFile, readAndDeleteFile, writeFile, valueToPromise, promiseTimeout, getConstructorName, getFunctionParams, getFileName, getExtension, createIdString, idToString, createTransformer, broadcast, rand, random, multiSubscription, observableFromFunction, padLeft, padRight, camelCaseToDash, gzipPromised, gunzipPromised, deleteFromBucket, filter, copy, assign, md5, runCommand, ConsoleColor, IJsonColors, colorize, jsonHighlight, replaceSpecialChars, regexEscape, flatten, wrapError, getDirName, prepareUrl, prepareUrlSlash, prepareUrlEmpty, fileTypeFromBuffer
|
|
2
|
+
export { FilterPredicate, isNullOrUndefined, isDefined, getType, isObject, isArray, isBuffer, isBoolean, isDate, isPrimitive, isString, isFunction, isConstructor, isType, isInterface, ucFirst, lcFirst, isObjectId, firstItem, lastItem, regroup, uniqueItems, getValue, groupBy, convertValue, toImage, bufferToStream, streamToBuffer, copyStream, mkdirRecursive, deleteFile, readFile, readAndDeleteFile, writeFile, valueToPromise, promiseTimeout, getConstructorName, getFunctionParams, getFileName, getExtension, createIdString, idToString, createTransformer, broadcast, rand, random, multiSubscription, observableFromFunction, padLeft, padRight, camelCaseToDash, gzipPromised, gunzipPromised, deleteFromBucket, filter, copy, assign, md5, runCommand, ConsoleColor, IJsonColors, colorize, jsonHighlight, replaceSpecialChars, regexEscape, flatten, wrapError, getDirName, prepareUrl, prepareUrlSlash, prepareUrlEmpty, fileTypeFromBuffer } from "./utils";
|
|
3
3
|
export { IsFile, IsObjectId } from "./validators";
|
|
4
4
|
export { FIXTURE, JOB, TERMINAL_COMMAND, EXPRESS, HTTP_SERVER, SOCKET_SERVER, SOCKET_CONTROLLERS, PARAMETER, DI_CONTAINER, OPENAPI_VALIDATION, Type, FactoryProvider, IDependencyContainer, ClassBasedProvider, ValueBasedProvider, FactoryBasedProvider, TokenBasedProvider, SyringeProvider, Provider, Constructor, InferGeneric, PickMatching, OmitFirstArg, IMatchField, IProjectOptions, IUnwindOptions, IFixture, IFixtureOutput, SchemaConverter, OpenApiValidation, ParamResolver, Parameter, SocketParam, SocketParams, ISocketMessage, IMessageBridge, IJob, IJobTask, JobParams, JobScheduleRange, JobScheduleTime, ITerminalFile, ITerminal, ITerminalCommand, IProgress, IAssetCropInfo, IImageMeta, IAssetMeta, IAssetImageParams, IAsset, IAssetUploadStream, IAssetUploadOpts, IAssetDriver, ILazyAsset, IUser, IClientSocket, IRequestBase, IRequest, IGalleryImage, IGallerySize, IGalleryImageHandler, ITranslations, IPaginationMeta, IPaginationBase, IPagination, IPaginationParams, FontFormat, IFileType, RoutingOptions, SocketOptions, IBackendConfig } from "./common-types";
|
|
5
5
|
export { AssetLocalDriver } from "./services/drivers/asset-local.driver";
|
package/utils.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Server } from "socket.io";
|
|
|
4
4
|
import { GridFSBucket, ObjectId } from "mongodb";
|
|
5
5
|
import { Document } from "mongoose";
|
|
6
6
|
import { Readable, ReadableOptions } from "stream";
|
|
7
|
-
import { AnyWebByteStream } from "strtok3";
|
|
8
7
|
import { IAssetImageParams, IAssetMeta, IClientSocket, IDependencyContainer, IFileType, ParamResolver, Type } from "./common-types";
|
|
9
8
|
export interface IDIContainers {
|
|
10
9
|
appContainer: IDependencyContainer;
|
|
@@ -117,4 +116,3 @@ export declare function prepareUrl(ending?: string): ParamResolver;
|
|
|
117
116
|
export declare const prepareUrlSlash: ParamResolver;
|
|
118
117
|
export declare const prepareUrlEmpty: ParamResolver;
|
|
119
118
|
export declare function fileTypeFromBuffer(buffer: Buffer): Promise<IFileType>;
|
|
120
|
-
export declare function fileTypeFromStream(stream: AnyWebByteStream): Promise<IFileType>;
|