@smartsoft001/users 1.1.90 → 2.1.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 ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": ["../../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
+ "rules": {}
8
+ },
9
+ {
10
+ "files": ["*.ts", "*.tsx"],
11
+ "rules": {}
12
+ },
13
+ {
14
+ "files": ["*.js", "*.jsx"],
15
+ "rules": {}
16
+ },
17
+ {
18
+ "files": ["*.json"],
19
+ "parser": "jsonc-eslint-parser",
20
+ "rules": {
21
+ "@nx/dependency-checks": "error"
22
+ }
23
+ }
24
+ ]
25
+ }
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
- # shared-users
1
+ # @smartsoft001/users
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ ## Usage
4
4
 
5
- ## Running unit tests
6
-
7
- Run `nx test shared-users` to execute the unit tests.
5
+ `npm i @smartsoft001/users`
package/jest.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'users',
4
+ preset: '../../../jest.preset.js',
5
+ testEnvironment: 'node',
6
+ transform: {
7
+ '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
8
+ },
9
+ moduleFileExtensions: ['ts', 'js', 'html'],
10
+ coverageDirectory: '../../../coverage/packages/shared/users',
11
+ };
package/package.json CHANGED
@@ -1,18 +1,10 @@
1
1
  {
2
2
  "name": "@smartsoft001/users",
3
- "version": "1.1.90",
4
- "scripts": {
5
- "test": "echo \"Error: no test specified\" && exit 1",
6
- "refresh": "npm version patch && npm i"
7
- },
8
- "peerDependencies": {
9
- "@angular/common": "^8.2.14",
10
- "@angular/core": "^8.2.14",
11
- "tslib": "2.5.3"
12
- },
3
+ "version": "2.1.0",
13
4
  "dependencies": {
14
- "@angular/platform-browser-dynamic": "16.1.3"
5
+ "tslib": "^2.3.0"
15
6
  },
7
+ "type": "commonjs",
16
8
  "main": "./src/index.js",
17
- "types": "./src/index.d.ts"
9
+ "typings": "./src/index.d.ts"
18
10
  }
package/project.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "users",
3
+ "$schema": "../../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/shared/users/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "@nx/js:tsc",
9
+ "outputs": ["{options.outputPath}"],
10
+ "options": {
11
+ "outputPath": "dist/packages/shared/users",
12
+ "main": "packages/shared/users/src/index.ts",
13
+ "tsConfig": "packages/shared/users/tsconfig.lib.json",
14
+ "assets": ["packages/shared/users/*.md"]
15
+ }
16
+ },
17
+ "publish": {
18
+ "command": "node tools/scripts/publish.mjs users {args.ver} {args.tag}",
19
+ "dependsOn": ["build"]
20
+ },
21
+ "lint": {
22
+ "executor": "@nx/eslint:lint",
23
+ "outputs": ["{options.outputFile}"],
24
+ "options": {
25
+ "lintFilePatterns": [
26
+ "packages/shared/users/**/*.ts",
27
+ "packages/shared/users/package.json"
28
+ ]
29
+ }
30
+ },
31
+ "test": {
32
+ "executor": "@nx/jest:jest",
33
+ "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
34
+ "options": {
35
+ "jestConfig": "packages/shared/users/jest.config.ts",
36
+ "passWithNoTests": true
37
+ },
38
+ "configurations": {
39
+ "ci": {
40
+ "ci": true,
41
+ "codeCoverage": true
42
+ }
43
+ }
44
+ }
45
+ },
46
+ "tags": []
47
+ }
@@ -0,0 +1,10 @@
1
+ export interface IUser {
2
+ scope?: string;
3
+ username: string;
4
+ permissions: Array<string>;
5
+ }
6
+
7
+ export interface IUserCredentials {
8
+ username: string;
9
+ password: string;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './entities';
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "extends": "../../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "forceConsistentCasingInFileNames": true,
6
+ "strict": true,
7
+ "noImplicitOverride": true,
8
+ "noPropertyAccessFromIndexSignature": true,
9
+ "noImplicitReturns": true,
10
+ "noFallthroughCasesInSwitch": true
11
+ },
12
+ "files": [],
13
+ "include": [],
14
+ "references": [
15
+ {
16
+ "path": "./tsconfig.lib.json"
17
+ },
18
+ {
19
+ "path": "./tsconfig.spec.json"
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../../dist/out-tsc",
5
+ "declaration": true,
6
+ "types": ["node"]
7
+ },
8
+ "include": ["src/**/*.ts"],
9
+ "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
10
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "types": ["jest", "node"]
7
+ },
8
+ "include": [
9
+ "jest.config.ts",
10
+ "src/**/*.test.ts",
11
+ "src/**/*.spec.ts",
12
+ "src/**/*.d.ts"
13
+ ]
14
+ }
package/src/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib/entities"), exports);
5
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/users/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./user"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/users/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB"}
@@ -1,9 +0,0 @@
1
- export interface IUser {
2
- scope?: string;
3
- username: string;
4
- permissions: Array<string>;
5
- }
6
- export interface IUserCredentials {
7
- username: string;
8
- password: string;
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../../libs/shared/users/src/lib/entities/user.ts"],"names":[],"mappings":""}
package/test-setup.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/test-setup.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const testing_1 = require("@angular/core/testing");
4
- const testing_2 = require("@angular/platform-browser-dynamic/testing");
5
- (0, testing_1.getTestBed)().resetTestEnvironment();
6
- (0, testing_1.getTestBed)().initTestEnvironment(testing_2.BrowserDynamicTestingModule, (0, testing_2.platformBrowserDynamicTesting)(), { teardown: { destroyAfterEach: false } });
7
- //# sourceMappingURL=test-setup.js.map
package/test-setup.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../libs/shared/users/test-setup.ts"],"names":[],"mappings":";;AAEM,mDAAmD;AACnD,uEAAuH;AAEvH,IAAA,oBAAU,GAAE,CAAC,oBAAoB,EAAE,CAAC;AACpC,IAAA,oBAAU,GAAE,CAAC,mBAAmB,CAC9B,qCAA2B,EAC3B,IAAA,uCAA6B,GAAE,EAC/B,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,CAC1C,CAAC"}
File without changes
File without changes