modelence 0.15.2 → 0.16.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/dist/bin/modelence.js.map +1 -1
- package/dist/chunk-3SPXJEOR.js.map +1 -1
- package/dist/chunk-5M6FUMUK.js +2 -0
- package/dist/chunk-5M6FUMUK.js.map +1 -0
- package/dist/chunk-S7G3G6KJ.js +3 -0
- package/dist/chunk-S7G3G6KJ.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{package-FKRLR6XH.js → package-GDCAE67E.js} +2 -2
- package/dist/{package-FKRLR6XH.js.map → package-GDCAE67E.js.map} +1 -1
- package/dist/server.d.ts +68 -6
- package/dist/server.js +8 -8
- package/dist/server.js.map +1 -1
- package/dist/{types-Cm6x0ToB.d.ts → types-CTjq1HaP.d.ts} +5 -1
- package/dist/{types-CIL2Bj_2.d.ts → types-DNZiaNSs.d.ts} +3 -3
- package/dist/types.d.ts +2 -2
- package/package.json +2 -1
- package/dist/chunk-D6FY7A77.js +0 -2
- package/dist/chunk-D6FY7A77.js.map +0 -1
- package/dist/chunk-Z6AXX2IR.js +0 -3
- package/dist/chunk-Z6AXX2IR.js.map +0 -1
|
@@ -162,6 +162,10 @@ type AuthErrorProps = {
|
|
|
162
162
|
session: Session | null;
|
|
163
163
|
connectionInfo: ConnectionInfo;
|
|
164
164
|
};
|
|
165
|
+
type OAuthErrorInfo = {
|
|
166
|
+
error: string;
|
|
167
|
+
statusCode: number;
|
|
168
|
+
};
|
|
165
169
|
|
|
166
170
|
type ClientInfo = {
|
|
167
171
|
screenWidth: number;
|
|
@@ -276,4 +280,4 @@ interface WebsocketClientProvider {
|
|
|
276
280
|
}): void;
|
|
277
281
|
}
|
|
278
282
|
|
|
279
|
-
export { type AnyMethodShape as A, type ConfigSchema as C, type DefaultRoles as D, type Handler as H, type MethodDefinition as M, type OAuthProvider as O, type Permission as P, type RoleDefinition as R, ServerChannel as S, type UpdateProfileProps as U, type ValueType as V, type
|
|
283
|
+
export { type AnyMethodShape as A, type ConfigSchema as C, type DefaultRoles as D, type Handler as H, type MethodDefinition as M, type OAuthProvider as O, type Permission as P, type RoleDefinition as R, ServerChannel as S, type UpdateProfileProps as U, type ValueType as V, type WebsocketClientProvider as W, type WebsocketServerProvider as a, type ConfigKey as b, type ConfigParams as c, type ConfigType as d, ClientChannel as e, type SignupProps as f, type AuthSuccessProps as g, type AuthErrorProps as h, type User as i, type OAuthErrorInfo as j, type AppConfig as k, type Session as l, type UserInfo as m, type Role as n, type Context as o, type Args as p, type AuthProvider as q, type ClientInfo as r, type Configs as s, type ConnectionInfo as t, type Method as u, type MethodType as v, SUPPORTED_OAUTH_PROVIDERS as w, type UserEmail as x };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-CLpVWWuj.js';
|
|
2
|
-
import {
|
|
2
|
+
import { o as Context } from './types-CTjq1HaP.js';
|
|
3
3
|
import * as mongodb from 'mongodb';
|
|
4
4
|
import { WithId, IndexDescription, SearchIndexDescription, MongoClient, Collection, FilterOperators, Document, FindOptions, ObjectId, SortDirection, OptionalUnlessRequiredId, ClientSession, InsertOneResult, InsertManyResult, UpdateFilter, UpdateResult, DeleteResult, FindOneAndUpdateOptions, FindOneAndDeleteOptions, WithoutId, FindOneAndReplaceOptions, ReplaceOptions, DistinctOptions, ChangeStreamOptions, ChangeStream, AggregateOptions, AggregationCursor, AnyBulkWriteOperation, BulkWriteResult } from 'mongodb';
|
|
5
5
|
import { z, ZodNumber, ZodArray } from 'zod';
|
|
@@ -356,7 +356,7 @@ declare class Store<TSchema extends ModelSchema, TMethods extends Record<string,
|
|
|
356
356
|
searchIndexes?: SearchIndexDescription[];
|
|
357
357
|
/** Whether index creation should block startup or run in background */
|
|
358
358
|
indexCreationMode?: IndexCreationMode;
|
|
359
|
-
}): Store<TSchema & TExtendedSchema
|
|
359
|
+
}): Store<TSchema & TExtendedSchema, PreserveMethodsForExtendedSchema<TMethods, TSchema & TExtendedSchema> & TExtendedMethods>;
|
|
360
360
|
/** @internal */
|
|
361
361
|
init(client: MongoClient): void;
|
|
362
362
|
/** @internal */
|
|
@@ -770,4 +770,4 @@ type RouteDefinition = {
|
|
|
770
770
|
};
|
|
771
771
|
type ExpressHandler = (req: Request, res: Response) => Promise<void> | void;
|
|
772
772
|
|
|
773
|
-
export { type BodyConfig as B, type CronJobInputParams as C, type EmailProvider as E, type HttpMethod as H, type InferDocumentType as I, type ModelSchema as M, type RouteDefinition as R, Store as S, type RateLimitRule as a, type RateLimitType as b, type EmailPayload as c, type RouteHandler as d, type RouteParams as e, type RouteResponse as f, type
|
|
773
|
+
export { type BodyConfig as B, type CronJobInputParams as C, type EmailProvider as E, type HttpMethod as H, type InferDocumentType as I, type ModelSchema as M, type RouteDefinition as R, Store as S, type RateLimitRule as a, type RateLimitType as b, type EmailPayload as c, type RouteHandler as d, type RouteParams as e, type RouteResponse as f, type CronJob as g, type CronJobMetadata as h, type EmailAttachment as i, type ExpressHandler as j, type RouteHandlers as k, schema as s };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AppServer, a as AppServerInitOptions, E as ExpressMiddleware, M as ModelenceConfig } from './index-CLpVWWuj.js';
|
|
2
|
-
export { A as AnyMethodShape,
|
|
3
|
-
export { B as BodyConfig,
|
|
2
|
+
export { A as AnyMethodShape, k as AppConfig, p as Args, h as AuthErrorProps, q as AuthProvider, g as AuthSuccessProps, r as ClientInfo, b as ConfigKey, c as ConfigParams, C as ConfigSchema, d as ConfigType, s as Configs, t as ConnectionInfo, o as Context, D as DefaultRoles, H as Handler, u as Method, M as MethodDefinition, v as MethodType, j as OAuthErrorInfo, O as OAuthProvider, P as Permission, n as Role, R as RoleDefinition, w as SUPPORTED_OAUTH_PROVIDERS, l as Session, f as SignupProps, U as UpdateProfileProps, i as User, x as UserEmail, m as UserInfo, V as ValueType, W as WebsocketClientProvider, a as WebsocketServerProvider } from './types-CTjq1HaP.js';
|
|
3
|
+
export { B as BodyConfig, g as CronJob, C as CronJobInputParams, h as CronJobMetadata, i as EmailAttachment, c as EmailPayload, E as EmailProvider, j as ExpressHandler, H as HttpMethod, I as InferDocumentType, M as ModelSchema, a as RateLimitRule, b as RateLimitType, R as RouteDefinition, d as RouteHandler, k as RouteHandlers, e as RouteParams, f as RouteResponse, s as schema } from './types-DNZiaNSs.js';
|
|
4
4
|
import 'express';
|
|
5
5
|
import 'http';
|
|
6
6
|
import 'mongodb';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "modelence",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"description": "The Node.js Framework for Real-Time MongoDB Apps",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/global.d.ts",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"lint": "eslint src --ext .ts,.tsx --fix",
|
|
32
32
|
"lint:check": "eslint src --ext .ts,.tsx",
|
|
33
33
|
"prepublishOnly": "npm run build",
|
|
34
|
+
"bench": "tsx src/bench/index.ts",
|
|
34
35
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
35
36
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
|
|
36
37
|
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
|
package/dist/chunk-D6FY7A77.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function f(n){return typeof n=="object"&&n!==null&&"toHexString"in n&&typeof n.toHexString=="function"}function i(n){return n==null||typeof n!="object"?n:f(n)?n.toHexString():n instanceof Date?n:Array.isArray(n)?n.map(i):Object.fromEntries(Object.entries(n).map(([e,t])=>[e,i(t)]))}function s(n){if(n instanceof Date)return {type:"date"};if(Array.isArray(n)){let e={};for(let t=0;t<n.length;t++){let r=n[t],o=s(r);o&&(e[t]=o);}return Object.keys(e).length>0?{type:"array",elements:e}:null}if(typeof n=="object"&&n!==null){let e={};for(let[t,r]of Object.entries(n)){let o=s(r);o&&(e[t]=o);}return Object.keys(e).length>0?{type:"object",props:e}:null}return null}function c(n,e){return e?e.type==="date"?new Date(n):e.type==="array"?n.map((t,r)=>c(t,e.elements[r])):e.type==="object"?Object.fromEntries(Object.entries(n).map(([t,r])=>[t,c(r,e.props[t])])):n:n}export{i as a,s as b,c};//# sourceMappingURL=chunk-D6FY7A77.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-D6FY7A77.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/methods/serialize.ts"],"names":["isObjectId","value","sanitizeResult","result","key","getResponseTypeMap","elements","i","item","subTypeMap","props","reviveResponseTypes","data","typeMap","index"],"mappings":"AAAA,SAASA,CAAAA,CAAWC,CAAAA,CAAoD,CACtE,OACE,OAAOA,GAAU,QAAA,EACjBA,CAAAA,GAAU,IAAA,EACV,aAAA,GAAiBA,CAAAA,EACjB,OAAQA,EAAkC,WAAA,EAAgB,UAE9D,CAMO,SAASC,CAAAA,CAAeC,CAAAA,CAA0B,CACvD,OAAIA,CAAAA,EAAU,IAAA,EAAQ,OAAOA,CAAAA,EAAW,QAAA,CAC/BA,CAAAA,CAGLH,EAAWG,CAAM,CAAA,CACZA,CAAAA,CAAO,WAAA,EAAY,CAGxBA,CAAAA,YAAkB,IAAA,CACbA,CAAAA,CAGL,KAAA,CAAM,OAAA,CAAQA,CAAM,CAAA,CACfA,CAAAA,CAAO,GAAA,CAAID,CAAc,CAAA,CAG3B,MAAA,CAAO,WAAA,CACZ,MAAA,CAAO,OAAA,CAAQC,CAAM,CAAA,CAAE,GAAA,CAAI,CAAC,CAACC,CAAAA,CAAKH,CAAK,CAAA,GAAM,CAACG,EAAKF,CAAAA,CAAeD,CAAK,CAAC,CAAC,CAC3E,CACF,CAEO,SAASI,CA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,CAAAA,CAAQ,OAAS,OAAA,CACXD,CAAAA,CAAmB,GAAA,CAAI,CAACJ,CAAAA,CAAeM,CAAAA,GAC7CH,CAAAA,CAAoBH,CAAAA,CAAOK,CAAAA,CAAQ,QAAA,CAAuCC,CAAK,CAAC,CAClF,CAAA,CAGED,EAAQ,IAAA,GAAS,QAAA,CACZ,MAAA,CAAO,WAAA,CACZ,MAAA,CAAO,OAAA,CAAQD,CAA+B,CAAA,CAAE,GAAA,CAAI,CAAC,CAACR,CAAAA,CAAKH,CAAK,CAAA,GAAM,CACpEG,CAAAA,CACAO,CAAAA,CACEV,CAAAA,CACCY,CAAAA,CAAQ,KAAA,CAAkCT,CAAG,CAChD,CACF,CAAC,CACH,CAAA,CAGKQ,CAAAA,CAzBEA,CA0BX","file":"chunk-D6FY7A77.js","sourcesContent":["function isObjectId(value: unknown): value is { toHexString(): string } {\n return (\n typeof value === 'object' &&\n value !== null &&\n 'toHexString' in value &&\n typeof (value as Record<string, unknown>).toHexString === 'function'\n );\n}\n\n/**\n * Recursively converts all MongoDB ObjectId instances to hex strings.\n * Uses duck typing (checks for toHexString method) to avoid importing mongodb on the client.\n */\nexport function sanitizeResult(result: unknown): unknown {\n if (result == null || typeof result !== 'object') {\n return result;\n }\n\n if (isObjectId(result)) {\n return result.toHexString();\n }\n\n if (result instanceof Date) {\n return result;\n }\n\n if (Array.isArray(result)) {\n return result.map(sanitizeResult);\n }\n\n return Object.fromEntries(\n Object.entries(result).map(([key, value]) => [key, sanitizeResult(value)])\n );\n}\n\nexport function getResponseTypeMap(result: unknown) {\n if (result instanceof Date) {\n return { type: 'date' };\n }\n\n if (Array.isArray(result)) {\n const elements: Record<string, unknown> = {};\n for (let i = 0; i < result.length; i++) {\n const item = result[i];\n const subTypeMap = getResponseTypeMap(item);\n if (subTypeMap) {\n elements[i] = subTypeMap;\n }\n }\n return Object.keys(elements).length > 0\n ? {\n type: 'array',\n elements,\n }\n : null;\n }\n\n if (typeof result === 'object' && result !== null) {\n const props: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(result)) {\n const subTypeMap = getResponseTypeMap(value);\n if (subTypeMap) {\n props[key] = subTypeMap;\n }\n }\n return Object.keys(props).length > 0\n ? {\n type: 'object',\n props,\n }\n : null;\n }\n\n return null;\n}\n\nexport function reviveResponseTypes<T = unknown>(data: T, typeMap?: Record<string, unknown>): T {\n if (!typeMap) {\n return data;\n }\n\n if (typeMap.type === 'date') {\n return new Date(data as string) as T;\n }\n\n if (typeMap.type === 'array') {\n return (data as unknown[]).map((item: unknown, index: number) =>\n reviveResponseTypes(item, (typeMap.elements as Record<string, unknown>[])[index])\n ) as T;\n }\n\n if (typeMap.type === 'object') {\n return Object.fromEntries(\n Object.entries(data as Record<string, unknown>).map(([key, value]) => [\n key,\n reviveResponseTypes(\n value,\n (typeMap.props as Record<string, unknown>)[key] as Record<string, unknown>\n ),\n ])\n ) as T;\n }\n\n return data;\n}\n"]}
|
package/dist/chunk-Z6AXX2IR.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var s="module",i="modelence",r="0.15.2",o="The Node.js Framework for Real-Time MongoDB Apps",n="dist/index.js",p="dist/global.d.ts",c={".":"./dist/index.js","./client":"./dist/client.js","./server":"./dist/server.js","./telemetry":"./dist/telemetry.js","./mongodb":"./dist/mongo.js","./types":{types:"./dist/types.d.ts",default:"./dist/types.js"}},d=["dist","dist/bin"],l={modelence:"./dist/bin/modelence.js"},a={build:"tsup",dev:"tsup --watch",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,css,md}"',"format:check":'prettier --check "src/**/*.{ts,tsx,js,jsx,json,css,md}"',lint:"eslint src --ext .ts,.tsx --fix","lint:check":"eslint src --ext .ts,.tsx",prepublishOnly:"npm run build",test:"NODE_OPTIONS=--experimental-vm-modules jest","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","test:coverage":"NODE_OPTIONS=--experimental-vm-modules jest --coverage",postversion:"git push && git push --tags",prepare:"cd ../.. && git config core.hooksPath .husky"},m={type:"git",url:"git+https://github.com/modelence/modelence.git"},y="Modelence",u="SEE LICENSE IN LICENSE",j={url:"https://github.com/modelence/modelence/issues"},g="https://modelence.com",h={"@types/archiver":"^6.0.3","@types/bcrypt":"^6.0.0","@types/cookie-parser":"^1.4.9","@types/express":"^5.0.0","@types/fs-extra":"^11.0.4","@types/jest":"^30.0.0","@types/node":"^22.5.1","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@types/socket.io":"^3.0.1","@typescript-eslint/eslint-plugin":"^8.17.0","@typescript-eslint/parser":"^8.17.0",eslint:"^9.37.0",husky:"^9.1.7",jest:"^30.2.0","lint-staged":"^16.2.7",prettier:"^3.6.2",react:"^19.0.0","react-dom":"^19.0.0","ts-jest":"^29.4.5","ts-node":"^10.9.2"},x={"@socket.io/mongo-adapter":"^0.4.0","@vitejs/plugin-react":"^4.3.4",archiver:"^7.0.1",bcrypt:"^6.0.0",commander:"^12.0.0","cookie-parser":"^1.4.7",dotenv:"^16.4.5","elastic-apm-node":"^4.15.0",express:"^4.21.0","fs-extra":"^11.2.0",jiti:"^2.4.2",mongodb:"^6.8.1",open:"^10.1.0","socket.io":"^4.8.1","socket.io-client":"^4.8.1",tsup:"^8.3.6",tsx:"^4.19.3",typescript:"^5.7.2",vite:"^6.0.3","vite-plugin-eslint":"^1.8.1",winston:"^3.15.0","winston-elasticsearch":"^0.19.0",zod:"^3.23.8",zustand:"^5.0.2"},v={react:">=18.0.0","react-dom":">=18.0.0"},b={type:s,name:i,version:r,description:o,main:n,types:p,exports:c,files:d,bin:l,scripts:a,"lint-staged":{"src/**/*.{ts,tsx,js,jsx,json,css,md}":"prettier --write"},repository:m,author:y,license:u,bugs:j,homepage:g,devDependencies:h,dependencies:x,peerDependencies:v};
|
|
2
|
-
export{s as a,i as b,r as c,o as d,n as e,p as f,c as g,d as h,l as i,a as j,m as k,y as l,u as m,j as n,g as o,h as p,x as q,v as r,b as s};//# sourceMappingURL=chunk-Z6AXX2IR.js.map
|
|
3
|
-
//# sourceMappingURL=chunk-Z6AXX2IR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json"],"names":["type","name","version","description","main","types","exports","files","bin","scripts","repository","author","license","bugs","homepage","devDependencies","dependencies","peerDependencies","package_default"],"mappings":"AACE,IAAAA,CAAAA,CAAQ,QAAA,CACRC,CAAAA,CAAQ,WAAA,CACRC,CAAAA,CAAW,SACXC,CAAAA,CAAe,kDAAA,CACfC,CAAAA,CAAQ,eAAA,CACRC,CAAAA,CAAS,kBAAA,CACTC,EAAW,CACT,GAAA,CAAK,iBAAA,CACL,UAAA,CAAY,kBAAA,CACZ,UAAA,CAAY,kBAAA,CACZ,aAAA,CAAe,qBAAA,CACf,WAAA,CAAa,iBAAA,CACb,SAAA,CAAW,CACT,KAAA,CAAS,oBACT,OAAA,CAAW,iBACb,CACF,CAAA,CACAC,CAAAA,CAAS,CACP,MAAA,CACA,UACF,CAAA,CACAC,CAAAA,CAAO,CACL,SAAA,CAAa,yBACf,CAAA,CACAC,EAAW,CACT,KAAA,CAAS,MAAA,CACT,GAAA,CAAO,cAAA,CACP,MAAA,CAAU,yDAAA,CACV,cAAA,CAAgB,yDAAA,CAChB,IAAA,CAAQ,iCAAA,CACR,YAAA,CAAc,2BAAA,CACd,cAAA,CAAkB,gBAClB,IAAA,CAAQ,6CAAA,CACR,YAAA,CAAc,qDAAA,CACd,eAAA,CAAiB,wDAAA,CACjB,YAAe,6BAAA,CACf,OAAA,CAAW,8CACb,CAAA,CAIAC,CAAAA,CAAc,CACZ,KAAQ,KAAA,CACR,GAAA,CAAO,gDACT,CAAA,CACAC,CAAAA,CAAU,WAAA,CACVC,CAAAA,CAAW,wBAAA,CACXC,CAAAA,CAAQ,CACN,GAAA,CAAO,+CACT,CAAA,CACAC,CAAAA,CAAY,wBACZC,CAAAA,CAAmB,CACjB,iBAAA,CAAmB,QAAA,CACnB,eAAA,CAAiB,QAAA,CACjB,sBAAA,CAAwB,QAAA,C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A,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CAWA,KAAA,CAAAC,CAAAA,CAIA,GAAA,CAAAC,CAAAA,CAGA,OAAA,CAAAC,CAAAA,CAcA,aAAA,CAAe,CACb,sCAAA,CAAwC,kBAC1C,CAAA,CACA,UAAA,CAAAC,CAAAA,CAIA,OAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CAGA,QAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CAuBA,YAAA,CAAAC,CAAAA,CA0BA,gBAAA,CAAAC,CAIF","file":"chunk-Z6AXX2IR.js","sourcesContent":["{\n \"type\": \"module\",\n \"name\": \"modelence\",\n \"version\": \"0.15.2\",\n \"description\": \"The Node.js Framework for Real-Time MongoDB Apps\",\n \"main\": \"dist/index.js\",\n \"types\": \"dist/global.d.ts\",\n \"exports\": {\n \".\": \"./dist/index.js\",\n \"./client\": \"./dist/client.js\",\n \"./server\": \"./dist/server.js\",\n \"./telemetry\": \"./dist/telemetry.js\",\n \"./mongodb\": \"./dist/mongo.js\",\n \"./types\": {\n \"types\": \"./dist/types.d.ts\",\n \"default\": \"./dist/types.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"dist/bin\"\n ],\n \"bin\": {\n \"modelence\": \"./dist/bin/modelence.js\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js,jsx,json,css,md}\\\"\",\n \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js,jsx,json,css,md}\\\"\",\n \"lint\": \"eslint src --ext .ts,.tsx --fix\",\n \"lint:check\": \"eslint src --ext .ts,.tsx\",\n \"prepublishOnly\": \"npm run build\",\n \"test\": \"NODE_OPTIONS=--experimental-vm-modules jest\",\n \"test:watch\": \"NODE_OPTIONS=--experimental-vm-modules jest --watch\",\n \"test:coverage\": \"NODE_OPTIONS=--experimental-vm-modules jest --coverage\",\n \"postversion\": \"git push && git push --tags\",\n \"prepare\": \"cd ../.. && git config core.hooksPath .husky\"\n },\n \"lint-staged\": {\n \"src/**/*.{ts,tsx,js,jsx,json,css,md}\": \"prettier --write\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/modelence/modelence.git\"\n },\n \"author\": \"Modelence\",\n \"license\": \"SEE LICENSE IN LICENSE\",\n \"bugs\": {\n \"url\": \"https://github.com/modelence/modelence/issues\"\n },\n \"homepage\": \"https://modelence.com\",\n \"devDependencies\": {\n \"@types/archiver\": \"^6.0.3\",\n \"@types/bcrypt\": \"^6.0.0\",\n \"@types/cookie-parser\": \"^1.4.9\",\n \"@types/express\": \"^5.0.0\",\n \"@types/fs-extra\": \"^11.0.4\",\n \"@types/jest\": \"^30.0.0\",\n \"@types/node\": \"^22.5.1\",\n \"@types/react\": \"^19.0.0\",\n \"@types/react-dom\": \"^19.0.1\",\n \"@types/socket.io\": \"^3.0.1\",\n \"@typescript-eslint/eslint-plugin\": \"^8.17.0\",\n \"@typescript-eslint/parser\": \"^8.17.0\",\n \"eslint\": \"^9.37.0\",\n \"husky\": \"^9.1.7\",\n \"jest\": \"^30.2.0\",\n \"lint-staged\": \"^16.2.7\",\n \"prettier\": \"^3.6.2\",\n \"react\": \"^19.0.0\",\n \"react-dom\": \"^19.0.0\",\n \"ts-jest\": \"^29.4.5\",\n \"ts-node\": \"^10.9.2\"\n },\n \"dependencies\": {\n \"@socket.io/mongo-adapter\": \"^0.4.0\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"archiver\": \"^7.0.1\",\n \"bcrypt\": \"^6.0.0\",\n \"commander\": \"^12.0.0\",\n \"cookie-parser\": \"^1.4.7\",\n \"dotenv\": \"^16.4.5\",\n \"elastic-apm-node\": \"^4.15.0\",\n \"express\": \"^4.21.0\",\n \"fs-extra\": \"^11.2.0\",\n \"jiti\": \"^2.4.2\",\n \"mongodb\": \"^6.8.1\",\n \"open\": \"^10.1.0\",\n \"socket.io\": \"^4.8.1\",\n \"socket.io-client\": \"^4.8.1\",\n \"tsup\": \"^8.3.6\",\n \"tsx\": \"^4.19.3\",\n \"typescript\": \"^5.7.2\",\n \"vite\": \"^6.0.3\",\n \"vite-plugin-eslint\": \"^1.8.1\",\n \"winston\": \"^3.15.0\",\n \"winston-elasticsearch\": \"^0.19.0\",\n \"zod\": \"^3.23.8\",\n \"zustand\": \"^5.0.2\"\n },\n \"peerDependencies\": {\n \"react\": \">=18.0.0\",\n \"react-dom\": \">=18.0.0\"\n }\n}\n"]}
|