@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/backend",
3
- "version": "6.0.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": "^21.0.0",
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, fileTypeFromStream } from "./utils";
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";
@@ -1,4 +1,4 @@
1
- import { Font } from "fontkit";
1
+ import type { Font } from "fontkit";
2
2
  import { FontFormat, IAssetMeta, IFileType } from "../common-types";
3
3
  export declare class AssetProcessor {
4
4
  static extractFontFormat(font: Font): FontFormat;
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>;