easywork-common-lib 1.0.10 → 1.0.11

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.
@@ -34,6 +34,7 @@ __decorate([
34
34
  (0, typeorm_1.OneToMany)(() => folder_entity_1.Folder, (Folder) => Folder.files, {
35
35
  onDelete: "CASCADE",
36
36
  onUpdate: "CASCADE",
37
+ eager: true
37
38
  }),
38
39
  (0, typeorm_1.JoinColumn)(),
39
40
  __metadata("design:type", folder_entity_1.Folder)
@@ -1 +1 @@
1
- {"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAgE;AAChE,mDAAyC;AACzC,sEAA2D;AAGpD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAEhC,IAAI,CAAS;IAOb,MAAM,CAAS;IAGf,GAAG,CAAS;IAGZ,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,SAAS,CAAU;IAOnB,MAAM,CAAgB;CACzB,CAAA;AAhCY,oBAAI;AAEb;IADC,IAAA,2BAAS,EAAC,CAAC,CAAC;;kCACA;AAOb;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;QAC/C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACL,sBAAM;oCAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iCACf;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,I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BAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC1B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAOnB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QAC1D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACd,CAAC;;oCACoB;eAhCb,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAiChB"}
@@ -1,2 +1,2 @@
1
- declare const _exports: import("eslint-flat-config-utils/index").FlatConfigComposer<import("@antfu/eslint-config").TypedFlatConfigItem, import("@antfu/eslint-config").ConfigNames>;
1
+ declare const _exports: any;
2
2
  export = _exports;
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "build": "tsc",
8
- "postbuild": "node -r tsconfig-paths/register dist/index.js",
9
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "build": "tsc"
10
8
  },
11
9
  "repository": {
12
10
  "type": "git",
@@ -26,17 +24,11 @@
26
24
  "@nestjs/typeorm": "^10.0.2",
27
25
  "class-transformer": "^0.5.1",
28
26
  "class-validator": "^0.14.1",
29
- "pg": "^8.11.5",
30
- "tspath": "^2.6.8",
31
27
  "typeorm": "^0.3.20"
32
28
  },
33
29
  "devDependencies": {
34
- "@antfu/eslint-config": "^2.15.0",
35
30
  "@rubiin/tsconfig": "^1.1.2",
36
31
  "ts-loader": "^9.5.1",
37
- "tsconfig-paths": "^4.2.0",
38
- "typescript": "^5.4.5",
39
- "webpack": "^5.91.0",
40
- "webpack-cli": "^5.1.4"
32
+ "typescript": "^5.4.5"
41
33
  }
42
34
  }
@@ -12,6 +12,7 @@ export class File extends BaseEntity {
12
12
  @OneToMany(() => Folder, (Folder) => Folder.files, {
13
13
  onDelete: "CASCADE",
14
14
  onUpdate: "CASCADE",
15
+ eager: true
15
16
  })
16
17
  @JoinColumn()
17
18
  folder: Folder;
package/webpack-hmr.js DELETED
@@ -1,26 +0,0 @@
1
- const nodeExternals = require('webpack-node-externals');
2
- const {RunScriptWebpackPlugin} = require('run-script-webpack-plugin');
3
-
4
- module.exports = function (options, {HotModuleReplacementPlugin, WatchIgnorePlugin}) {
5
- return {
6
- ...options,
7
- entry: ['webpack/hot/poll?100', options.entry],
8
- externals: [
9
- nodeExternals({
10
- allowlist: ['webpack/hot/poll?100'],
11
- }),
12
- ],
13
- node: {
14
- __dirname: true,
15
- __filename: true,
16
- },
17
- plugins: [
18
- ...options.plugins,
19
- new HotModuleReplacementPlugin(),
20
- new WatchIgnorePlugin({
21
- paths: [/\.js$/, /\.d\.ts$/],
22
- }),
23
- new RunScriptWebpackPlugin({name: options.output.filename, autoRestart: false}),
24
- ],
25
- };
26
- };
package/webpack.config.js DELETED
@@ -1,27 +0,0 @@
1
- const path = require("path");
2
-
3
- module.exports = {
4
- mode: "production", // Puedes cambiar a 'development' para mejor depuración
5
- entry: "./src/index.ts", // Punto de entrada de tu librería
6
- output: {
7
- path: path.resolve(__dirname, "dist"),
8
- filename: "index.js", // Nombre del archivo de salida
9
- libraryTarget: "commonjs2", // Formato del módulo de salida
10
- },
11
- resolve: {
12
- extensions: [".ts", ".js"],
13
- alias: {
14
- "@common": path.resolve(__dirname, "src/common"), // Ajusta según tus necesidades de alias
15
- },
16
- },
17
- module: {
18
- rules: [
19
- {
20
- test: /\.ts$/,
21
- use: "ts-loader",
22
- exclude: /node_modules/,
23
- },
24
- ],
25
- },
26
- target: "node", // Asegura que Webpack compila para un entorno Node.js
27
- };