@puq/type 0.4.50 → 0.5.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/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export * from './lib/property/string-format.js';
36
36
  export * from './lib/property/string.js';
37
37
  export * from './lib/ui/icon.js';
38
38
  export * from './lib/ui/input-type.js';
39
+ export * from './lib/utils/deep-partial.js';
39
40
  export * from './lib/utils/key-of.js';
40
41
  export * from './lib/utils/keys.js';
41
42
  export * from './lib/utils/set-optional.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CA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C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ export * from './lib/property/string-format.js';
36
36
  export * from './lib/property/string.js';
37
37
  export * from './lib/ui/icon.js';
38
38
  export * from './lib/ui/input-type.js';
39
+ export * from './lib/utils/deep-partial.js';
39
40
  export * from './lib/utils/key-of.js';
40
41
  export * from './lib/utils/keys.js';
41
42
  export * from './lib/utils/set-optional.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common/decorator-param.js';\nexport * from './lib/common/empty-class.js';\nexport * from './lib/common/key.js';\nexport * from './lib/common/object-literal.js';\nexport * from './lib/common/optional.js';\nexport * from './lib/common/package-json.js';\nexport * from './lib/common/puq-options.js';\nexport * from './lib/common/some-function.js';\nexport * from './lib/common/some-record.js';\nexport * from './lib/common/some.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/dto/validation-error.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/model.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/relation-options.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/ui/icon.js';\nexport * from './lib/ui/input-type.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/keys.js';\nexport * from './lib/utils/set-optional.js';\nexport * from './lib/utils/set-required.js';\nexport * from './lib/utils/type.js';\n"],"names":[],"mappings":"AACA,cAAc,kCAAkC;AAChD,cAAc,8BAA8B;AAC5C,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,2BAA2B;AACzC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC;AAC9C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,qCAAqC;AACnD,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,sBAAsB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common/decorator-param.js';\nexport * from './lib/common/empty-class.js';\nexport * from './lib/common/key.js';\nexport * from './lib/common/object-literal.js';\nexport * from './lib/common/optional.js';\nexport * from './lib/common/package-json.js';\nexport * from './lib/common/puq-options.js';\nexport * from './lib/common/some-function.js';\nexport * from './lib/common/some-record.js';\nexport * from './lib/common/some.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/dto/validation-error.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/model.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/relation-options.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/ui/icon.js';\nexport * from './lib/ui/input-type.js';\nexport * from './lib/utils/deep-partial.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/keys.js';\nexport * from './lib/utils/set-optional.js';\nexport * from './lib/utils/set-required.js';\nexport * from './lib/utils/type.js';\n"],"names":[],"mappings":"AACA,cAAc,kCAAkC;AAChD,cAAc,8BAA8B;AAC5C,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,2BAA2B;AACzC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC;AAC9C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,qCAAqC;AACnD,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,sBAAsB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.
3
+ */
4
+ export type DeepPartial<T> = T | (T extends Array<infer U> ? DeepPartial<U>[] : T extends Map<infer K, infer V> ? Map<DeepPartial<K>, DeepPartial<V>> : T extends Set<infer M> ? Set<DeepPartial<M>> : T extends object ? {
5
+ [K in keyof T]?: DeepPartial<T[K]>;
6
+ } : T);
7
+ //# sourceMappingURL=deep-partial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deep-partial.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/deep-partial.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,CAAC,GACD,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACrB,WAAW,CAAC,CAAC,CAAC,EAAE,GAChB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7B,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GACnC,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACpB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACnB,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=deep-partial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils/deep-partial.ts"],"names":[],"mappings":""}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puq/type",
3
- "version": "0.4.50",
3
+ "version": "0.4.51",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "@puq/type",
3
- "version": "0.4.50",
4
- "license": "MIT",
5
- "publishConfig": {
6
- "access": "public",
7
- "tag": "latest"
8
- },
9
- "description": "Common model and utility types",
10
- "author": {
11
- "email": "robert.brightline@gmail.com",
12
- "name": "Robert Brightline",
13
- "url": "https://rbrightline.github.io"
14
- },
15
- "keywords": [
16
- "type",
17
- "model",
18
- "type-utility"
19
- ],
20
- "repository": {
21
- "directory": "libs/type",
22
- "url": "https://github.com/rbrightline/puq/tree/main",
23
- "type": "github"
24
- },
25
- "homepage": "https://rbrightline.github.io/puq/type",
26
- "bugs": {
27
- "email": "robert.brightline@gmail.com",
28
- "url": "https://rbrightline.github.io"
29
- },
30
- "categories": [
31
- "Other"
32
- ],
33
- "contributors": [
34
- {
35
- "email": "robert.brightline@gmail.com",
36
- "name": "Robert Brightline",
37
- "url": "https://rbrightline.github.io"
38
- }
39
- ],
40
- "funding": [
41
- "https://cash.app/$puqlib"
42
- ],
43
- "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/type/favicon.png",
44
- "type": "module",
45
- "main": "./dist/index.js",
46
- "module": "./dist/index.js",
47
- "types": "./dist/index.d.ts",
48
- "exports": {
49
- "./package.json": "./package.json",
50
- ".": {
51
- "types": "./dist/index.d.ts",
52
- "import": "./dist/index.js",
53
- "default": "./dist/index.js"
54
- }
55
- },
56
- "files": [
57
- "dist",
58
- "!**/*.tsbuildinfo"
59
- ],
60
- "nx": {
61
- "sourceRoot": "libs/type/src",
62
- "targets": {
63
- "build": {
64
- "executor": "@nx/js:swc",
65
- "outputs": [
66
- "{options.outputPath}"
67
- ],
68
- "options": {
69
- "outputPath": "libs/type/dist",
70
- "main": "libs/type/src/index.ts",
71
- "tsConfig": "libs/type/tsconfig.lib.json",
72
- "skipTypeCheck": false,
73
- "stripLeadingPaths": true
74
- },
75
- "dependsOn": [
76
- "lint"
77
- ]
78
- },
79
- "doc": {
80
- "command": "cd libs/type && npx compodoc -d ../../public/type -p tsconfig.lib.json -n type"
81
- }
82
- }
83
- },
84
- "dependencies": {
85
- "@swc/helpers": "^0.5.15"
86
- }
1
+ {
2
+ "name": "@puq/type",
3
+ "version": "0.5.0",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "tag": "latest"
8
+ },
9
+ "description": "Common model and utility types",
10
+ "author": {
11
+ "email": "robert.brightline@gmail.com",
12
+ "name": "Robert Brightline",
13
+ "url": "https://rbrightline.github.io"
14
+ },
15
+ "keywords": [
16
+ "type",
17
+ "model",
18
+ "type-utility"
19
+ ],
20
+ "repository": {
21
+ "directory": "libs/type",
22
+ "url": "https://github.com/rbrightline/puq/tree/main",
23
+ "type": "github"
24
+ },
25
+ "homepage": "https://rbrightline.github.io/puq/type",
26
+ "bugs": {
27
+ "email": "robert.brightline@gmail.com",
28
+ "url": "https://rbrightline.github.io"
29
+ },
30
+ "categories": [
31
+ "Other"
32
+ ],
33
+ "contributors": [
34
+ {
35
+ "email": "robert.brightline@gmail.com",
36
+ "name": "Robert Brightline",
37
+ "url": "https://rbrightline.github.io"
38
+ }
39
+ ],
40
+ "funding": [
41
+ "https://cash.app/$puqlib"
42
+ ],
43
+ "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/type/favicon.png",
44
+ "type": "module",
45
+ "main": "./dist/index.js",
46
+ "module": "./dist/index.js",
47
+ "types": "./dist/index.d.ts",
48
+ "exports": {
49
+ "./package.json": "./package.json",
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "import": "./dist/index.js",
53
+ "default": "./dist/index.js"
54
+ }
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "!**/*.tsbuildinfo"
59
+ ],
60
+ "nx": {
61
+ "sourceRoot": "libs/type/src",
62
+ "targets": {
63
+ "build": {
64
+ "executor": "@nx/js:swc",
65
+ "outputs": [
66
+ "{options.outputPath}"
67
+ ],
68
+ "options": {
69
+ "outputPath": "libs/type/dist",
70
+ "main": "libs/type/src/index.ts",
71
+ "tsConfig": "libs/type/tsconfig.lib.json",
72
+ "skipTypeCheck": false,
73
+ "stripLeadingPaths": true
74
+ },
75
+ "dependsOn": [
76
+ "lint"
77
+ ]
78
+ },
79
+ "doc": {
80
+ "command": "cd libs/type && npx compodoc -d ../../public/type -p tsconfig.lib.json -n type"
81
+ }
82
+ }
83
+ },
84
+ "dependencies": {
85
+ "@swc/helpers": "^0.5.15"
86
+ }
87
87
  }