@smartsoft001/auth-shell-dtos 1.1.91 → 2.69.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/.eslintrc.json +26 -0
- package/README.md +25 -2
- package/jest.config.ts +26 -0
- package/package.json +1 -19
- package/project.json +43 -0
- package/src/index.ts +1 -0
- package/src/lib/login.dto.ts +7 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +12 -0
- package/tsconfig.spec.json +20 -0
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -5
- package/src/index.js.map +0 -1
- package/src/lib/login.dto.d.ts +0 -4
- package/src/lib/login.dto.js +0 -19
- package/src/lib/login.dto.js.map +0 -1
- package/test-setup.js +0 -1
- package/test-setup.js.map +0 -1
- /package/{test-setup.d.ts → test-setup.ts} +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"import/order": "off"
|
|
6
|
+
},
|
|
7
|
+
"overrides": [
|
|
8
|
+
{
|
|
9
|
+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
10
|
+
"rules": {}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"files": ["*.ts", "*.tsx"],
|
|
14
|
+
"rules": {}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"files": ["*.js", "*.jsx"],
|
|
18
|
+
"rules": {}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"files": "package.json",
|
|
22
|
+
"parser": "jsonc-eslint-parser",
|
|
23
|
+
"rules": {}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
package/README.md
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
# auth-shell-dtos
|
|
1
|
+
# @smartsoft001/auth-shell-dtos
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
`npm i @smartsoft001/auth-shell-dtos`
|
|
6
|
+
|
|
7
|
+
## DTOs
|
|
8
|
+
|
|
9
|
+
### LoginDto
|
|
10
|
+
|
|
11
|
+
<table>
|
|
12
|
+
<thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<td>Field</td>
|
|
15
|
+
<td>Description</td>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tr>
|
|
19
|
+
<td>username: string</td>
|
|
20
|
+
<td>Required username field with focus set by default</td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr>
|
|
23
|
+
<td>password: string</td>
|
|
24
|
+
<td>Required password field</td>
|
|
25
|
+
</tr>
|
|
26
|
+
</table>
|
|
4
27
|
|
|
5
28
|
## Running unit tests
|
|
6
29
|
|
package/jest.config.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export default {
|
|
3
|
+
displayName: 'auth-shell-dtos',
|
|
4
|
+
preset: '../../../../jest.preset.js',
|
|
5
|
+
testEnvironment: 'node',
|
|
6
|
+
transform: {
|
|
7
|
+
'^.+\\.[tj]sx?$': [
|
|
8
|
+
'ts-jest',
|
|
9
|
+
{
|
|
10
|
+
tsConfig: '<rootDir>/tsconfig.spec.json',
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
15
|
+
coverageDirectory: '../../../../coverage/packages/auth/shell/dtos',
|
|
16
|
+
/* TODO: Update to latest Jest snapshotFormat
|
|
17
|
+
* By default Nx has kept the older style of Jest Snapshot formats
|
|
18
|
+
* to prevent breaking of any existing tests with snapshots.
|
|
19
|
+
* It's recommend you update to the latest format.
|
|
20
|
+
* You can do this by removing snapshotFormat property
|
|
21
|
+
* and running tests with --update-snapshot flag.
|
|
22
|
+
* Example: From within the project directory, run "nx test --update-snapshot"
|
|
23
|
+
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
|
|
24
|
+
*/
|
|
25
|
+
snapshotFormat: { escapeString: true, printBasicPrototype: true },
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/auth-shell-dtos",
|
|
3
|
-
"version": "
|
|
4
|
-
"dependencies": {
|
|
5
|
-
"@angular/common": "16.1.3",
|
|
6
|
-
"@angular/core": "16.1.3",
|
|
7
|
-
"flatted": "^3.2.4",
|
|
8
|
-
"guid-typescript": "1.0.9",
|
|
9
|
-
"lodash": "^4.17.20",
|
|
10
|
-
"md5": "2.3.0",
|
|
11
|
-
"reflect-metadata": "0.1.13",
|
|
12
|
-
"rxjs": "7.8.1"
|
|
13
|
-
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"@smartsoft001/models": "1.1.91",
|
|
16
|
-
"@smartsoft001/utils": "1.1.91",
|
|
17
|
-
"util": "0.12.5",
|
|
18
|
-
"tslib": "2.5.3"
|
|
19
|
-
},
|
|
20
|
-
"main": "./src/index.js",
|
|
21
|
-
"types": "./src/index.d.ts"
|
|
3
|
+
"version": "2.69.0"
|
|
22
4
|
}
|
package/project.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "auth-shell-dtos",
|
|
3
|
+
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "packages/auth/shell/dtos/src",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"targets": {
|
|
7
|
+
"lint": {
|
|
8
|
+
"executor": "@nx/eslint:lint",
|
|
9
|
+
"options": {
|
|
10
|
+
"lintFilePatterns": [
|
|
11
|
+
"packages/auth/shell/dtos/**/*.{ts,tsx,js,jsx}",
|
|
12
|
+
"packages/auth/shell/dtos/package.json"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"test": {
|
|
17
|
+
"executor": "@nx/jest:jest",
|
|
18
|
+
"outputs": ["{workspaceRoot}/coverage/packages/auth/shell/dtos"],
|
|
19
|
+
"options": {
|
|
20
|
+
"jestConfig": "packages/auth/shell/dtos/jest.config.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"build": {
|
|
24
|
+
"executor": "@nx/esbuild:esbuild",
|
|
25
|
+
"outputs": ["{options.outputPath}"],
|
|
26
|
+
"options": {
|
|
27
|
+
"outputPath": "dist/packages/auth/shell/dtos",
|
|
28
|
+
"tsConfig": "packages/auth/shell/dtos/tsconfig.lib.json",
|
|
29
|
+
"packageJson": "packages/auth/shell/dtos/package.json",
|
|
30
|
+
"main": "packages/auth/shell/dtos/src/index.ts",
|
|
31
|
+
"assets": ["packages/auth/shell/dtos/*.md"]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"deploy": {
|
|
35
|
+
"executor": "ngx-deploy-npm:deploy",
|
|
36
|
+
"options": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"distFolderPath": "dist/packages/auth/shell/dtos"
|
|
39
|
+
},
|
|
40
|
+
"dependsOn": ["build"]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/login.dto';
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"outDir": "../../../../dist/out-tsc",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"types": ["node"],
|
|
8
|
+
"target": "es6"
|
|
9
|
+
},
|
|
10
|
+
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
|
|
11
|
+
"include": ["**/*.ts"]
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../../dist/out-tsc",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"types": ["jest", "node"]
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.spec.ts",
|
|
10
|
+
"**/*.test.ts",
|
|
11
|
+
"**/*.spec.tsx",
|
|
12
|
+
"**/*.test.tsx",
|
|
13
|
+
"**/*.spec.js",
|
|
14
|
+
"**/*.test.js",
|
|
15
|
+
"**/*.spec.jsx",
|
|
16
|
+
"**/*.test.jsx",
|
|
17
|
+
"**/*.d.ts",
|
|
18
|
+
"jest.config.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./lib/login.dto";
|
package/src/index.js
DELETED
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/auth/shell/dtos/src/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
|
package/src/lib/login.dto.d.ts
DELETED
package/src/lib/login.dto.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginDto = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const models_1 = require("@smartsoft001/models");
|
|
6
|
-
let LoginDto = exports.LoginDto = class LoginDto {
|
|
7
|
-
};
|
|
8
|
-
tslib_1.__decorate([
|
|
9
|
-
(0, models_1.Field)({ required: true, focused: true }),
|
|
10
|
-
tslib_1.__metadata("design:type", String)
|
|
11
|
-
], LoginDto.prototype, "username", void 0);
|
|
12
|
-
tslib_1.__decorate([
|
|
13
|
-
(0, models_1.Field)({ required: true }),
|
|
14
|
-
tslib_1.__metadata("design:type", String)
|
|
15
|
-
], LoginDto.prototype, "password", void 0);
|
|
16
|
-
exports.LoginDto = LoginDto = tslib_1.__decorate([
|
|
17
|
-
(0, models_1.Model)({})
|
|
18
|
-
], LoginDto);
|
|
19
|
-
//# sourceMappingURL=login.dto.js.map
|
package/src/lib/login.dto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../../../../libs/auth/shell/dtos/src/lib/login.dto.ts"],"names":[],"mappings":";;;;AAAA,iDAAoD;AAG7C,IAAM,QAAQ,sBAAd,MAAM,QAAQ;CAGpB,CAAA;AAF2C;IAAzC,IAAA,cAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0CAAkB;AAChC;IAA1B,IAAA,cAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAAkB;mBAFjC,QAAQ;IADpB,IAAA,cAAK,EAAC,EAAE,CAAC;GACG,QAAQ,CAGpB"}
|
package/test-setup.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=test-setup.js.map
|
package/test-setup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../../libs/auth/shell/dtos/test-setup.ts"],"names":[],"mappings":""}
|
|
File without changes
|