@obisey/nest 0.1.11 → 0.1.12

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/conexion.d.ts CHANGED
@@ -1,24 +0,0 @@
1
- import { Sequelize } from 'sequelize-typescript';
2
- interface Dominio {
3
- nombre: string;
4
- }
5
- export interface ConexionProps {
6
- nombre: string;
7
- id: string | number;
8
- database: string;
9
- username: string;
10
- password: string;
11
- host: string;
12
- port: number;
13
- dominios: Dominio[];
14
- }
15
- export declare class Conexion extends Sequelize {
16
- constructor({ host, port, username, password, database }: {
17
- host: any;
18
- port: any;
19
- username: any;
20
- password: any;
21
- database: any;
22
- });
23
- }
24
- export {};
package/conexion.js CHANGED
@@ -1,23 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Conexion = void 0;
4
- const sequelize_typescript_1 = require("sequelize-typescript");
5
- class Conexion extends sequelize_typescript_1.Sequelize {
6
- constructor({ host, port, username, password, database }) {
7
- super({
8
- dialect: 'mysql',
9
- host,
10
- port,
11
- username,
12
- password,
13
- database,
14
- // logging : true,
15
- logging: false,
16
- sync: {
17
- force: true,
18
- alter: true,
19
- },
20
- });
21
- }
22
- }
23
- exports.Conexion = Conexion;
1
+ // import { Sequelize } from 'sequelize-typescript';
2
+ // interface Dominio {
3
+ // nombre: string;
4
+ // }
5
+ // export interface ConexionProps {
6
+ // nombre: string;
7
+ // id: string | number;
8
+ // database: string;
9
+ // username: string;
10
+ // password: string;
11
+ // host: string;
12
+ // port: number;
13
+ // dominios: Dominio[];
14
+ // }
15
+ // export class Conexion extends Sequelize {
16
+ // constructor({ host, port, username, password, database }) {
17
+ // super({
18
+ // dialect: 'mysql',
19
+ // host,
20
+ // port,
21
+ // username,
22
+ // password,
23
+ // database,
24
+ // // logging : true,
25
+ // logging: false,
26
+ // sync: {
27
+ // force: true,
28
+ // alter: true,
29
+ // },
30
+ // });
31
+ // }
32
+ // }
package/index.d.ts CHANGED
@@ -9,6 +9,5 @@ export * from './prototipos/utils/activarRedis';
9
9
  export * from './prototipos/utils/formarInclude';
10
10
  export * from './prototipos/utils/formarorder';
11
11
  export * from './prototipos/utils/formarwhere';
12
- export * from './redisStore';
13
12
  export * from './types';
14
13
  export * from './fecha';
package/index.js CHANGED
@@ -26,6 +26,5 @@ __exportStar(require("./prototipos/utils/activarRedis"), exports);
26
26
  __exportStar(require("./prototipos/utils/formarInclude"), exports);
27
27
  __exportStar(require("./prototipos/utils/formarorder"), exports);
28
28
  __exportStar(require("./prototipos/utils/formarwhere"), exports);
29
- __exportStar(require("./redisStore"), exports);
30
29
  __exportStar(require("./types"), exports);
31
30
  __exportStar(require("./fecha"), exports);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@obisey/nest",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "NestJS utilities and base classes by Obisey",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc -p tsconfig.json",
9
9
  "copy:assets": "cp package.json README.md dist/",
@@ -20,14 +20,14 @@
20
20
  "author": "Ulises",
21
21
  "license": "MIT",
22
22
  "peerDependencies": {
23
+ "@apollo/subgraph": "^2.5.0",
24
+ "graphql": "^16.11.0",
25
+ "graphql-scalars": "^1.23.0",
23
26
  "lodash": "^4.17.21",
24
27
  "sequelize": "^6.32.1",
25
28
  "sequelize-typescript": "^2.1.5",
26
- "graphql": "^16.0.0",
27
- "type-graphql": "^1.2.0",
28
- "typegraphql-nestjs": "^0.7.0",
29
- "@apollo/subgraph": "^2.5.0",
30
- "graphql-scalars": "^1.23.0"
29
+ "type-graphql": "^1.2.0-beta.1",
30
+ "typegraphql-nestjs": "^0.7.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@nestjs/axios": "^4.0.0",
@@ -35,16 +35,20 @@
35
35
  "@nestjs/common": "^10.3.3",
36
36
  "@nestjs/core": "^10.3.3",
37
37
  "@nestjs/graphql": "^12.2.2",
38
+ "@types/sequelize": "^4.28.20",
38
39
  "cache-manager": "^7.0.0",
39
40
  "cache-manager-redis-store": "^3.0.1",
40
41
  "graphql": "^16.11.0",
41
42
  "ioredis": "^5.6.1",
42
43
  "reflect-metadata": "^0.2.2",
44
+ "sequelize": "^6.32.1",
45
+ "sequelize-typescript": "^2.1.5",
46
+ "type-graphql": "^1.2.0-beta.1",
43
47
  "typegraphql-nestjs": "^0.7.0",
44
48
  "typescript": "^5.4.5"
45
49
  },
46
50
  "dependencies": {
47
51
  "dayjs": "^1.11.13",
48
- "graphql-scalars": "^1.24.2"
52
+ "graphql-scalars": "^1.23.0"
49
53
  }
50
54
  }
@@ -37,14 +37,8 @@ exports.BaseResolver = BaseResolver;
37
37
  const lodash_1 = require("lodash");
38
38
  const keyInterface_1 = require("./utils/keyInterface");
39
39
  const formarwhere_1 = require("./utils/formarwhere");
40
- // const chalk = require('chalk');
41
- // const log = console.log;
42
- // var imprimir = (texto) => {
43
- // log(chalk.green(texto));
44
- // };
45
40
  var tiempo = 86400000;
46
41
  var isDev = false;
47
- const redisStore_1 = require("../redisStore");
48
42
  const cachear_1 = require("./utils/cachear");
49
43
  const paginar_1 = require("./utils/paginar");
50
44
  const _ = __importStar(require("lodash"));
@@ -582,8 +576,7 @@ function BaseResolver(modelo) {
582
576
  });
583
577
  }
584
578
  async eliminarCache(items, borrarSSR = false) {
585
- if (borrarSSR)
586
- redisStore_1.clientSsr.flushdb();
579
+ // if (borrarSSR) clientSsr.flushdb();
587
580
  // log(
588
581
  // chalk.red(
589
582
  // 'SE ELIMINOOOO ALGOOO!!!!!!!!!!!!!!',
@@ -7,7 +7,6 @@ exports.BaseService = BaseService;
7
7
  const lodash_1 = require("lodash");
8
8
  const cachear_1 = require("./utils/cachear");
9
9
  const cifrado_1 = require("./utils/cifrado");
10
- const redisStore_1 = require("../redisStore");
11
10
  const keyInterface_1 = require("./utils/keyInterface");
12
11
  exports.redis_on = true;
13
12
  const paginar_1 = require("./utils/paginar");
@@ -380,8 +379,7 @@ function BaseService(modelo) {
380
379
  });
381
380
  }
382
381
  async eliminarCache(items, borrarSSR = false) {
383
- if (borrarSSR)
384
- redisStore_1.clientSsr.flushdb();
382
+ // if (borrarSSR) clientSsr.flushdb();
385
383
  // log(
386
384
  // chalk.red(
387
385
  // 'SSR: SE ELIMINOOOO ALGOOO!!!!!!!!!!!!!!',
@@ -1 +1 @@
1
- export declare function onRedis(datos: any, si?: boolean): any;
1
+ export declare function onRedis(datos: any, si?: boolean): boolean;
@@ -1,4 +1,4 @@
1
- export declare const formarInclude: (include: any, mapa: any, tipo: any, conexion: any, required?: boolean) => Promise<any>;
1
+ export declare const formarInclude: (include: any, mapa: any, tipo: any, conexion: any, required?: boolean) => any;
2
2
  declare class FilterBasic {
3
3
  is: string;
4
4
  }
@@ -1 +1 @@
1
- export declare const formarWhere: (where: any) => any;
1
+ export declare const formarWhere: (where: any) => {};