@wisemen/nestjs-typeorm 0.1.2 → 0.1.4

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/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './columns/index.js';
4
4
  export * from './operators/index.js';
5
5
  export * from './naming/index.js';
6
6
  export * from './helpers/index.js';
7
+ export * from './types/index.js';
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ export * from './columns/index.js';
4
4
  export * from './operators/index.js';
5
5
  export * from './naming/index.js';
6
6
  export * from './helpers/index.js';
7
+ export * from './types/index.js';
7
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AAExB,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AAExB,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type Default<T> = T & {
2
+ readonly __default?: true;
3
+ };
4
+ export type HasDefault<K> = [
5
+ Extract<K, {
6
+ readonly __default?: true;
7
+ }>
8
+ ] extends [never] ? false : true;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=default.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.type.js","sourceRoot":"","sources":["../../lib/types/default.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { Default } from './default.type.js';
2
+ export { Insert } from './insert.type.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { HasDefault } from "./default.type.js";
2
+ type OptionalKeys<T> = {
3
+ [K in keyof T]: null extends T[K] ? K : HasDefault<T[K]> extends true ? K : never;
4
+ }[keyof T];
5
+ type RequiredKeys<T> = Exclude<keyof T, OptionalKeys<T>>;
6
+ export type Insert<T> = {
7
+ [K in RequiredKeys<T>]: T[K];
8
+ } & {
9
+ [K in OptionalKeys<T>]?: T[K];
10
+ };
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insert.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert.type.js","sourceRoot":"","sources":["../../lib/types/insert.type.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisemen/nestjs-typeorm",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  "release": "pnpx release-it"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/node": "^25.0.3",
21
+ "@types/node": "^25.2.1",
22
22
  "eslint": "^9.39.2",
23
23
  "expect": "^30.2.0",
24
24
  "typescript": "^5.9.3"
@@ -30,14 +30,14 @@
30
30
  "url": "git@github.com:wisemen-digital/node-core.git"
31
31
  },
32
32
  "peerDependencies": {
33
- "@nestjs/common": "^11.1.11",
34
- "@nestjs/config": "^4.0.2",
33
+ "@nestjs/common": "^11.1.13",
34
+ "@nestjs/config": "^4.0.3",
35
35
  "@nestjs/typeorm": "^11.0.0",
36
- "@wisemen/coordinates": "^0.0.13",
37
- "@wisemen/time": "^0.0.29",
36
+ "@wisemen/coordinates": "^0.0.18",
37
+ "@wisemen/time": "^0.0.30",
38
38
  "change-case": "^5.4.4",
39
39
  "class-validator": "^0.14.3",
40
- "pg": "8.16.3",
40
+ "pg": "8.18.0",
41
41
  "typeorm": "^0.3.28"
42
42
  }
43
43
  }