@aneuhold/core-ts-db-lib 2.0.26 → 2.0.68
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/README.md +9 -11
- package/lib/documents/common/User.d.ts +0 -1
- package/lib/documents/common/User.d.ts.map +1 -1
- package/lib/documents/common/User.js +0 -2
- package/lib/documents/common/User.js.map +1 -1
- package/lib/documents/common/User.ts +0 -2
- package/lib/services/dashboard/Task/TaskService.d.ts.map +1 -1
- package/package.json +17 -18
package/README.md
CHANGED
|
@@ -11,19 +11,17 @@ To add to a repo, follow the instructions below for your environment:
|
|
|
11
11
|
|
|
12
12
|
### For Node using NPM
|
|
13
13
|
|
|
14
|
-
Run `
|
|
14
|
+
Run `pnpm add @aneuhold/core-ts-db-lib`
|
|
15
15
|
|
|
16
16
|
### For Node using JSR
|
|
17
17
|
|
|
18
|
-
The below instructions still allow for things like Renovate to work, and normal commands with
|
|
18
|
+
The below instructions still allow for things like Renovate to work, and normal commands with pnpm such as `pnpm up`.
|
|
19
19
|
|
|
20
|
-
1. Add the required JSR configuration to a `.
|
|
21
|
-
```yml
|
|
22
|
-
npmScopes:
|
|
23
|
-
jsr:
|
|
24
|
-
npmRegistryServer: 'https://npm.jsr.io'
|
|
20
|
+
1. Add the required JSR configuration to a `.npmrc` file if not there already:
|
|
25
21
|
```
|
|
26
|
-
|
|
22
|
+
@jsr:registry=https://npm.jsr.io
|
|
23
|
+
```
|
|
24
|
+
1. Add the package with `pnpm add @jsr/aneuhold__core-ts-db-lib`
|
|
27
25
|
|
|
28
26
|
### For Deno
|
|
29
27
|
|
|
@@ -65,10 +63,10 @@ following steps
|
|
|
65
63
|
1. Update the document
|
|
66
64
|
1. Update the validator
|
|
67
65
|
1. Push the changes to NPM
|
|
68
|
-
1. Go to `be-ts-db-lib` and update the versions there with `
|
|
66
|
+
1. Go to `be-ts-db-lib` and update the versions there with `pnpm upgrade:core`
|
|
69
67
|
1. Update the migration service in that repo and double check it looks okay
|
|
70
|
-
1. Run the migration with `
|
|
71
|
-
1. Run validation to ensure everything is alright with `
|
|
68
|
+
1. Run the migration with `pnpm migrate:dry` then `pnpm migrate`
|
|
69
|
+
1. Run validation to ensure everything is alright with `pnpm validate:dry` then `pnpm validate` if needed
|
|
72
70
|
1. Run tests
|
|
73
71
|
1. Update tests if needed then re-validate
|
|
74
72
|
1. Push a new version of the `be-ts-db-lib` to NPM
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"./src/","sources":["documents/common/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,QAAQ,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,IAAI,CAkBhD,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,YAAY;IAC5C,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"./src/","sources":["documents/common/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,QAAQ,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,IAAI,CAkBhD,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,YAAY;IAC5C,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAM;IAEP,aAAa;;MAEX;IAEF;;;;OAIG;gBACS,QAAQ,EAAE,MAAM;CAI7B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ObjectId } from 'bson';
|
|
2
1
|
import Validate from '../../schemas/validators/ValidateUtil.js';
|
|
3
2
|
import BaseDocument from '../BaseDocument.js';
|
|
4
3
|
/**
|
|
@@ -27,7 +26,6 @@ export const validateUser = (user) => {
|
|
|
27
26
|
* key user information.
|
|
28
27
|
*/
|
|
29
28
|
export default class User extends BaseDocument {
|
|
30
|
-
_id = new ObjectId();
|
|
31
29
|
userName;
|
|
32
30
|
email;
|
|
33
31
|
auth = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"./src/","sources":["documents/common/User.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"./src/","sources":["documents/common/User.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAChE,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAW9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAA4B,CAAC,IAAI,EAAE,EAAE;IAC5D,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IAExC,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACpC,QAAQ,C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;;;;;OAOG;IACH,MAAM,CAAC,oBAAoB,CACzB,SAAS,EAAE,IAAI,EACf,SAAS,EAAE,mBAAmB,GAC7B,IAAI,GAAG,IAAI;IAOd;;;;;;;;;;OAUG;IACH,MAAM,CAAC,wBAAwB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAI1D;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAA2B,CAChC,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,+BAA+B,EAC/C,YAAY,EAAE,6BAA6B,EAC3C,WAAW,EAAE,oBAAoB,EACjC,QAAQ,CAAC,EAAE,2BAA2B,GACrC,gCAAgC;IA8BnC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,eAAe,CACpB,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,oBAAoB,EACjC,uBAAuB,EAAE,MAAM,EAC/B,aAAa,EAAE,0BAA0B,GACxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWzB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAsBlC"}
|
package/package.json
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"name": "@aneuhold/core-ts-db-lib",
|
|
3
3
|
"author": "Anton G. Neuhold Jr.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.68",
|
|
6
6
|
"description": "A core database library used for personal projects",
|
|
7
|
-
"packageManager": "yarn@4.6.0",
|
|
8
7
|
"type": "module",
|
|
9
8
|
"scripts": {
|
|
10
9
|
"build": "rimraf lib && tsc --project tsconfig.build.json && tsx ./scripts/copyTsFiles.ts",
|
|
10
|
+
"watch": "tsc -w -p tsconfig.build.json",
|
|
11
11
|
"lint": "eslint",
|
|
12
12
|
"test": "vitest run",
|
|
13
13
|
"jsr:validate": "tb pkg validateJsr",
|
|
14
|
-
"checkAll": "
|
|
14
|
+
"checkAll": "pnpm build && pnpm lint && pnpm test && pnpm jsr:validate",
|
|
15
15
|
"jsr:publish": "tb pkg publishJsr",
|
|
16
|
-
"upgrade:core": "
|
|
17
|
-
"upgrade:all": "
|
|
16
|
+
"upgrade:core": "pnpm update '@aneuhold/main-scripts' --latest",
|
|
17
|
+
"upgrade:all": "pnpm up"
|
|
18
18
|
},
|
|
19
19
|
"main": "lib/index.js",
|
|
20
20
|
"module": "lib/index.js",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/aneuhold/
|
|
33
|
+
"url": "git+https://github.com/aneuhold/ts-libs.git"
|
|
34
34
|
},
|
|
35
35
|
"bugs": {
|
|
36
|
-
"url": "https://github.com/aneuhold/
|
|
36
|
+
"url": "https://github.com/aneuhold/ts-libs/issues"
|
|
37
37
|
},
|
|
38
|
-
"homepage": "https://github.com/aneuhold/core-ts-db-lib#readme",
|
|
38
|
+
"homepage": "https://github.com/aneuhold/ts-libs/tree/main/packages/core-ts-db-lib#readme",
|
|
39
39
|
"keywords": [
|
|
40
40
|
"Database",
|
|
41
41
|
"MongoDB",
|
|
@@ -43,19 +43,18 @@
|
|
|
43
43
|
"Node.js"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aneuhold/core-ts-lib": "
|
|
46
|
+
"@aneuhold/core-ts-lib": "*",
|
|
47
47
|
"bson": "^6.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@aneuhold/
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"prettier": "^3.4.2",
|
|
50
|
+
"@aneuhold/main-scripts": "^2.1.6",
|
|
51
|
+
"@types/node": "^22.15.3",
|
|
52
|
+
"eslint": "^9.26.0",
|
|
53
|
+
"jsr": "^0.13.4",
|
|
54
|
+
"prettier": "^3.5.3",
|
|
56
55
|
"rimraf": "^6.0.1",
|
|
57
|
-
"tsx": "^4.19.
|
|
58
|
-
"typescript": "^5.
|
|
59
|
-
"vitest": "^3.
|
|
56
|
+
"tsx": "^4.19.4",
|
|
57
|
+
"typescript": "^5.8.3",
|
|
58
|
+
"vitest": "^3.1.2"
|
|
60
59
|
}
|
|
61
60
|
}
|