umt 2.9.1 → 2.10.1

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.
Files changed (35) hide show
  1. package/module/Validate/index.d.ts +1 -0
  2. package/module/Validate/index.js +1 -0
  3. package/module/Validate/index.js.map +1 -1
  4. package/module/Validate/object/core.d.ts +3 -2
  5. package/module/Validate/object/core.js +5 -0
  6. package/module/Validate/object/core.js.map +1 -1
  7. package/module/Validate/object/index.d.ts +1 -0
  8. package/module/Validate/object/index.js +1 -0
  9. package/module/Validate/object/index.js.map +1 -1
  10. package/module/Validate/object/optional.d.ts +2 -0
  11. package/module/Validate/object/optional.js +15 -0
  12. package/module/Validate/object/optional.js.map +1 -0
  13. package/module/Validate/type.d.ts +9 -2
  14. package/module/es5/String/hasNoLetters.js +1 -1
  15. package/module/es5/Validate/index.d.ts +1 -0
  16. package/module/es5/Validate/index.js +11 -0
  17. package/module/es5/Validate/object/core.d.ts +3 -2
  18. package/module/es5/Validate/object/core.js +5 -0
  19. package/module/es5/Validate/object/index.d.ts +1 -0
  20. package/module/es5/Validate/object/index.js +11 -0
  21. package/module/es5/Validate/object/optional.d.ts +2 -0
  22. package/module/es5/Validate/object/optional.js +20 -0
  23. package/module/es5/Validate/type.d.ts +9 -2
  24. package/module/es5/tsconfig.tsbuildinfo +1 -1
  25. package/module/es5/types/object/index.d.ts +1 -0
  26. package/module/es5/types/object/index.js +11 -0
  27. package/module/es5/types/object/pickPartial.d.ts +6 -0
  28. package/module/es5/types/object/pickPartial.js +5 -0
  29. package/module/types/object/index.d.ts +1 -0
  30. package/module/types/object/index.js +1 -0
  31. package/module/types/object/index.js.map +1 -1
  32. package/module/types/object/pickPartial.d.ts +6 -0
  33. package/module/types/object/pickPartial.js +2 -0
  34. package/module/types/object/pickPartial.js.map +1 -0
  35. package/package.json +81 -1
@@ -1,3 +1,4 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
@@ -25,6 +25,17 @@ Object.keys(_pickDeepKey).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _pickPartial = require("./pickPartial");
29
+ Object.keys(_pickPartial).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _pickPartial[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _pickPartial[key];
36
+ }
37
+ });
38
+ });
28
39
  var _shallowObjectValue = require("./shallowObjectValue");
29
40
  Object.keys(_shallowObjectValue).forEach(function (key) {
30
41
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Makes specified keys optional in an object type
3
+ * @template T - The object type
4
+ * @template K - The keys to make optional
5
+ */
6
+ export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,3 +1,4 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
@@ -1,4 +1,5 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Makes specified keys optional in an object type
3
+ * @template T - The object type
4
+ * @template K - The keys to make optional
5
+ */
6
+ export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pickPartial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickPartial.js","sourceRoot":"","sources":["../../../src/types/object/pickPartial.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -44,6 +44,86 @@
44
44
  ".": {
45
45
  "import": "./module/index.js",
46
46
  "types": "./module/index.d.ts"
47
+ },
48
+ "./Advance": {
49
+ "import": "./module/Advance/index.js",
50
+ "types": "./module/Advance/index.d.ts"
51
+ },
52
+ "./Array": {
53
+ "import": "./module/Array/index.js",
54
+ "types": "./module/Array/index.d.ts"
55
+ },
56
+ "./Color": {
57
+ "import": "./module/Color/index.js",
58
+ "types": "./module/Color/index.d.ts"
59
+ },
60
+ "./Consts": {
61
+ "import": "./module/Consts/index.js",
62
+ "types": "./module/Consts/index.d.ts"
63
+ },
64
+ "./Crypto": {
65
+ "import": "./module/Crypto/index.js",
66
+ "types": "./module/Crypto/index.d.ts"
67
+ },
68
+ "./DataStructure": {
69
+ "import": "./module/DataStructure/index.js",
70
+ "types": "./module/DataStructure/index.d.ts"
71
+ },
72
+ "./Date": {
73
+ "import": "./module/Date/index.js",
74
+ "types": "./module/Date/index.d.ts"
75
+ },
76
+ "./Error": {
77
+ "import": "./module/Error/index.js",
78
+ "types": "./module/Error/index.d.ts"
79
+ },
80
+ "./Function": {
81
+ "import": "./module/Function/index.js",
82
+ "types": "./module/Function/index.d.ts"
83
+ },
84
+ "./IP": {
85
+ "import": "./module/IP/index.js",
86
+ "types": "./module/IP/index.d.ts"
87
+ },
88
+ "./Math": {
89
+ "import": "./module/Math/index.js",
90
+ "types": "./module/Math/index.d.ts"
91
+ },
92
+ "./Object": {
93
+ "import": "./module/Object/index.js",
94
+ "types": "./module/Object/index.d.ts"
95
+ },
96
+ "./Simple": {
97
+ "import": "./module/Simple/index.js",
98
+ "types": "./module/Simple/index.d.ts"
99
+ },
100
+ "./String": {
101
+ "import": "./module/String/index.js",
102
+ "types": "./module/String/index.d.ts"
103
+ },
104
+ "./Time": {
105
+ "import": "./module/Time/index.js",
106
+ "types": "./module/Time/index.d.ts"
107
+ },
108
+ "./Tool": {
109
+ "import": "./module/Tool/index.js",
110
+ "types": "./module/Tool/index.d.ts"
111
+ },
112
+ "./types": {
113
+ "import": "./module/types/index.js",
114
+ "types": "./module/types/index.d.ts"
115
+ },
116
+ "./UA": {
117
+ "import": "./module/UA/index.js",
118
+ "types": "./module/UA/index.d.ts"
119
+ },
120
+ "./Unit": {
121
+ "import": "./module/Unit/index.js",
122
+ "types": "./module/Unit/index.d.ts"
123
+ },
124
+ "./Validate": {
125
+ "import": "./module/Validate/index.js",
126
+ "types": "./module/Validate/index.d.ts"
47
127
  }
48
128
  },
49
129
  "files": [
@@ -81,5 +161,5 @@
81
161
  },
82
162
  "type": "module",
83
163
  "types": "module/index.d.ts",
84
- "version": "2.9.1"
164
+ "version": "2.10.1"
85
165
  }