@twin.org/core 0.0.4-next.10 → 0.0.4-next.12
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/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IDuration.js +4 -0
- package/dist/es/models/IDuration.js.map +1 -0
- package/dist/es/models/coerceType.js +5 -1
- package/dist/es/models/coerceType.js.map +1 -1
- package/dist/es/types/duration.js +83 -0
- package/dist/es/types/duration.js.map +1 -0
- package/dist/es/utils/coerce.js +21 -0
- package/dist/es/utils/coerce.js.map +1 -1
- package/dist/es/utils/guards.js +12 -0
- package/dist/es/utils/guards.js.map +1 -1
- package/dist/es/utils/is.js +12 -0
- package/dist/es/utils/is.js.map +1 -1
- package/dist/es/utils/mutex.js +15 -6
- package/dist/es/utils/mutex.js.map +1 -1
- package/dist/es/utils/sharedObjectBuffer.js +4 -1
- package/dist/es/utils/sharedObjectBuffer.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/IDuration.d.ts +33 -0
- package/dist/types/models/coerceType.d.ts +4 -0
- package/dist/types/types/duration.d.ts +29 -0
- package/dist/types/utils/coerce.d.ts +9 -0
- package/dist/types/utils/guards.d.ts +8 -0
- package/dist/types/utils/is.d.ts +6 -0
- package/docs/changelog.md +34 -0
- package/docs/reference/classes/Coerce.md +24 -0
- package/docs/reference/classes/Duration.md +88 -0
- package/docs/reference/classes/Guards.md +36 -0
- package/docs/reference/classes/Is.md +22 -0
- package/docs/reference/index.md +2 -0
- package/docs/reference/interfaces/IDuration.md +59 -0
- package/docs/reference/variables/CoerceType.md +6 -0
- package/locales/en.json +2 -1
- package/package.json +2 -2
package/locales/en.json
CHANGED
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
|
|
75
75
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
76
76
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
77
|
-
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\""
|
|
77
|
+
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
|
|
78
|
+
"duration": "Property \"{property}\" must be an ISO 8601 duration string, it is \"{value}\""
|
|
78
79
|
},
|
|
79
80
|
"objectHelper": {
|
|
80
81
|
"failedBytesToJSON": "Failed converting bytes to JSON",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/core",
|
|
3
|
-
"version": "0.0.4-next.
|
|
3
|
+
"version": "0.0.4-next.12",
|
|
4
4
|
"description": "Helper methods/classes for data type checking/validation/guarding/error handling",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/nameof": "0.0.4-next.
|
|
17
|
+
"@twin.org/nameof": "0.0.4-next.12",
|
|
18
18
|
"intl-messageformat": "11.2.6",
|
|
19
19
|
"rfc6902": "5.2.0"
|
|
20
20
|
},
|