easywork-common-lib 1.0.3 → 1.0.5
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/common/database/base.entity.js +6 -39
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/common/database/index.js +1 -18
- package/dist/common/database/index.js.map +1 -1
- package/dist/entities/group.entity.js +1 -9
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/index.js +1 -24
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/otp-log.entity.js +4 -27
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.js +3 -21
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/profile.entity.js +5 -33
- package/dist/entities/profile.entity.js.map +1 -1
- package/dist/entities/protocol.entity.js +4 -24
- package/dist/entities/protocol.entity.js.map +1 -1
- package/dist/entities/refresh-token.entity.js +3 -18
- package/dist/entities/refresh-token.entity.js.map +1 -1
- package/dist/entities/role.entity.js +2 -15
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/user.entity.js +12 -75
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/eslint.config.d.ts +1 -1
- package/dist/eslint.config.js +1 -47
- package/dist/eslint.config.js.map +1 -1
- package/dist/index.js +2 -18
- package/dist/index.js.LICENSE.txt +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +41 -29
- package/package.old.json +32 -0
- package/tsconfig.json +4 -3
- package/webpack-hmr.js +26 -0
- package/webpack.config.js +27 -0
- /package/{common → src/common}/@types/typings/globals.d.ts +0 -0
- /package/{common → src/common}/database/base.entity.ts +0 -0
- /package/{common → src/common}/database/index.ts +0 -0
- /package/{entities → src/entities}/group.entity.ts +0 -0
- /package/{entities → src/entities}/index.ts +0 -0
- /package/{entities → src/entities}/otp-log.entity.ts +0 -0
- /package/{entities → src/entities}/permission.entity.ts +0 -0
- /package/{entities → src/entities}/profile.entity.ts +0 -0
- /package/{entities → src/entities}/protocol.entity.ts +0 -0
- /package/{entities → src/entities}/refresh-token.entity.ts +0 -0
- /package/{entities → src/entities}/role.entity.ts +0 -0
- /package/{entities → src/entities}/user.entity.ts +0 -0
- /package/{eslint.config.js → src/eslint.config.js} +0 -0
- /package/{index.ts → src/index.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*/
|
|
3
|
+
|
|
4
|
+
/*! *****************************************************************************
|
|
5
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
7
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
8
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
11
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
12
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
13
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
14
|
+
|
|
15
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
16
|
+
and limitations under the License.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
|
|
19
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "easywork-common-lib",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Librería común de Easywork",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "webpack",
|
|
8
|
+
"postbuild": "node -r tsconfig-paths/register dist/index.js",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/criptopreto/easywork-common-lib.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"nodejs"
|
|
17
|
+
],
|
|
18
|
+
"author": "Rosmer Campos",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/criptopreto/easywork-common-lib/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@nestjs/common": "^10.3.8",
|
|
26
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
27
|
+
"class-transformer": "^0.5.1",
|
|
28
|
+
"class-validator": "^0.14.1",
|
|
29
|
+
"tspath": "^2.6.8",
|
|
30
|
+
"typeorm": "^0.3.20"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@antfu/eslint-config": "^2.15.0",
|
|
34
|
+
"@rubiin/tsconfig": "^1.1.2",
|
|
35
|
+
"ts-loader": "^9.5.1",
|
|
36
|
+
"tsconfig-paths": "^4.2.0",
|
|
37
|
+
"typescript": "^5.4.5",
|
|
38
|
+
"webpack": "^5.91.0",
|
|
39
|
+
"webpack-cli": "^5.1.4"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.old.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "easywork-common-lib",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Paquete de librerías compartidas para EasyWork",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"nestjs",
|
|
12
|
+
"typeorm",
|
|
13
|
+
"shared",
|
|
14
|
+
"entities"
|
|
15
|
+
],
|
|
16
|
+
"author": "Rosmer Campos",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@nestjs/common": "^10.3.8",
|
|
20
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
21
|
+
"class-transformer": "^0.5.1",
|
|
22
|
+
"class-validator": "^0.14.1",
|
|
23
|
+
"typeorm": "^0.3.20"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@antfu/eslint-config": "^2.15.0",
|
|
27
|
+
"@rubiin/tsconfig": "^1.1.2",
|
|
28
|
+
"typescript": "^5.4.5",
|
|
29
|
+
"webpack": "^5.91.0",
|
|
30
|
+
"webpack-node-externals": "^3.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
"emitDecoratorMetadata": true,
|
|
8
8
|
"experimentalDecorators": true,
|
|
9
9
|
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"target": "
|
|
10
|
+
"target": "ES2022",
|
|
11
11
|
"sourceMap": true,
|
|
12
12
|
"outDir": "./dist",
|
|
13
|
-
"
|
|
13
|
+
"rootDir": "./src",
|
|
14
|
+
"baseUrl": "./src",
|
|
14
15
|
"incremental": true,
|
|
15
16
|
"strict": true,
|
|
16
17
|
"skipLibCheck": true,
|
|
@@ -24,6 +25,6 @@
|
|
|
24
25
|
},
|
|
25
26
|
"noFallthroughCasesInSwitch": false
|
|
26
27
|
},
|
|
27
|
-
"include": ["test/**/*", "src/**/*", "
|
|
28
|
+
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
28
29
|
"typeRoots": ["./src/common/@types/typings"]
|
|
29
30
|
}
|
package/webpack-hmr.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|