meta-enc 1.4.18 → 1.4.20

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.
@@ -120,7 +120,7 @@ export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncT
120
120
  /* mixin-patch: addSchrödingerServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
121
121
  /* mixin-patch: addUnloggedServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
122
122
  /* mixin-patch: isAdmin: ((reqOrContext: Request | relEnc.Context) => boolean) & ((reqOrContext: Request | relEnc.Context) => boolean); */
123
- /* mixin-patch: canChangePass: (() => Promise<boolean>) & (() => Promise<boolean>); */
123
+ /* mixin-patch: canChangePass: ((reqOrContext?: Request | relEnc.Context, userToChangePass?: string | null) => Promise<boolean>) & ((reqOrContext?: Request | relEnc.Context, userToChangePass?: string | null) => Promise<boolean>); */
124
124
  /* mixin-patch: inDbClient: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: relEnc.RequestDb | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
125
125
  /* mixin-patch: inTransaction: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: relEnc.RequestDb | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
126
126
  /* mixin-patch: inTransactionProcedureContext: (<T_1>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_1>) => Promise<T_1>); */
@@ -300,7 +300,7 @@ export declare var AppMetaEnc: {
300
300
  /* mixin-patch: addSchrödingerServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
301
301
  /* mixin-patch: addUnloggedServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
302
302
  /* mixin-patch: isAdmin: ((reqOrContext: Request | relEnc.Context) => boolean) & ((reqOrContext: Request | relEnc.Context) => boolean); */
303
- /* mixin-patch: canChangePass: (() => Promise<boolean>) & (() => Promise<boolean>); */
303
+ /* mixin-patch: canChangePass: ((reqOrContext?: Request | relEnc.Context, userToChangePass?: string | null) => Promise<boolean>) & ((reqOrContext?: Request | relEnc.Context, userToChangePass?: string | null) => Promise<boolean>); */
304
304
  /* mixin-patch: inDbClient: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: relEnc.RequestDb | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
305
305
  /* mixin-patch: inTransaction: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: relEnc.RequestDb | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
306
306
  /* mixin-patch: inTransactionProcedureContext: (<T_1>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_1>) => Promise<T_1>) & (<T>(req: Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T>) => Promise<T>); */
@@ -362,7 +362,7 @@ export declare var AppMetaEnc: {
362
362
  /* mixin-patch: transformInput: (<T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1) & (<T>(fieldDefinition: relEnc.FieldDefinitionInternal, value: T) => T); */
363
363
  };
364
364
  } & (new (...args: any[]) => {
365
- clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
365
+ clientIncludes(req: Request | null, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
366
366
  addLoggedServices(): void;
367
367
  tablasDatos: relEnc.TablaDatos[];
368
368
  cargarGenerados(client: relEnc.Client): Promise<string>;
@@ -484,7 +484,7 @@ export declare var AppMetaEnc: {
484
484
  addLoggedServices(): void;
485
485
  getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
486
486
  isAdmin(reqOrContext: Request | relEnc.Context): boolean;
487
- canChangePass(): Promise<boolean>;
487
+ canChangePass(reqOrContext?: Request | relEnc.Context, userToChangePass?: string | null): Promise<boolean>;
488
488
  inDbClient<T>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>): Promise<T>;
489
489
  inTransaction<T>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T>): Promise<T>;
490
490
  inTransactionProcedureContext<T>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T>): Promise<T>;
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "../../compile-for-test/tests",
4
+ "rootDir": ".",
5
+ "module": "commonjs",
6
+ "target": "es2019",
7
+ "lib":["es2019"]
8
+ },
9
+ "include":[
10
+ "."
11
+ ],
12
+ "extends": "../tsconfig-common.json"
13
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meta-enc",
3
3
  "description": "Metadatos de encuestas",
4
- "version": "1.4.18",
4
+ "version": "1.4.20",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/meta-enc",
@@ -13,12 +13,14 @@
13
13
  "unlogged"
14
14
  ],
15
15
  "dependencies": {
16
- "rel-enc": "^1.3.15"
16
+ "rel-enc": "^1.3.20"
17
17
  },
18
18
  "devDependencies": {
19
+ "@types/mocha": "^10.0.10",
20
+ "mixin-patch": "^0.4.0",
21
+ "mocha": "^11.8.0",
19
22
  "types.d.ts": "^0.6.7",
20
- "typescript": "^5.8.3",
21
- "mixin-patch": "^0.4.0"
23
+ "typescript": "^5.8.3"
22
24
  },
23
25
  "engines": {
24
26
  "node": ">= 14.0.0"
@@ -26,19 +28,8 @@
26
28
  "scripts": {
27
29
  "prepare": "npm run build",
28
30
  "build": "(tsc -p src/client || echo \"continue w/error\") & (tsc -p src/server || echo \"continue w/error\") && mixin-patch",
29
- "test": "mocha --reporter spec --bail --check-leaks test/",
30
- "test-nc": "mocha --reporter spec --bail --check-leaks --no-colors test/",
31
- "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
32
- "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
33
- "test-cli": "node server/karma-server.js --karma karma.conf.js --single-run",
34
- "test-cli-h": "node server/karma-server.js --karma karma.conf.js",
35
- "test-cli-ff": "npm run test-cli -- --browsers Firefox",
36
- "test-cli-saf": "npm run test-cli -- --browsers Safari",
37
- "start": "node dist/server/server-meta-enc.js",
38
- "report": "istanbul report",
39
- "all": "npm test && npm run test-cov && npm run report && qa-control . -v",
40
- "git-commit": "git add package.json && (git commit -m \"upgrading stack dependencies\" || true)",
41
- "push-publish": "npm version patch && ncu -u && npm run git-commit && npm publish && git push"
31
+ "test": "tsc -p src/tests && mocha --reporter spec --bail --check-leaks compile-for-test/tests/*.js",
32
+ "start": "node dist/server/server-meta-enc.js"
42
33
  },
43
34
  "qa-control": {
44
35
  "package-version": "0.3.0",