@openclaw/google-meet 2026.8.1-beta.2 → 2026.9.1-beta.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.
- package/dist/{cli-o7RWVqDb.js → cli-Bd63VJ5q.js} +31 -19
- package/dist/{create-UHeaRzsH.js → create-BEDHM6uL.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{plugin-helpers-CfeT1SYY.js → plugin-helpers-C9-Y0Ago.js} +2 -2
- package/dist/{plugin-registration-rSOssQmm.js → plugin-registration-Csi-NdQU.js} +3 -13
- package/node_modules/typebox/build/format/date.d.mts +1 -1
- package/node_modules/typebox/build/format/date.mjs +1 -1
- package/node_modules/typebox/build/format/date_time.d.mts +2 -2
- package/node_modules/typebox/build/format/date_time.mjs +3 -3
- package/node_modules/typebox/build/format/email.d.mts +1 -1
- package/node_modules/typebox/build/format/email.mjs +2 -2
- package/node_modules/typebox/build/format/hostname.mjs +2 -10
- package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
- package/node_modules/typebox/build/format/idn_email.mjs +3 -3
- package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
- package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
- package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
- package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
- package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
- package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +23 -0
- package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
- package/node_modules/typebox/build/format/idna/index.mjs +2 -0
- package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
- package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
- package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
- package/node_modules/typebox/build/format/ipv4.mjs +2 -32
- package/node_modules/typebox/build/format/ipv6.mjs +2 -61
- package/node_modules/typebox/build/format/iri.d.mts +2 -2
- package/node_modules/typebox/build/format/iri.mjs +26 -8
- package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
- package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
- package/node_modules/typebox/build/format/regex.d.mts +1 -2
- package/node_modules/typebox/build/format/regex.mjs +2 -6
- package/node_modules/typebox/build/format/time.d.mts +2 -2
- package/node_modules/typebox/build/format/time.mjs +19 -14
- package/node_modules/typebox/build/format/uri.d.mts +1 -1
- package/node_modules/typebox/build/format/uri.mjs +3 -130
- package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
- package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
- package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
- package/node_modules/typebox/build/format/uri_template.mjs +4 -5
- package/node_modules/typebox/build/format/url.d.mts +3 -3
- package/node_modules/typebox/build/format/url.mjs +4 -5
- package/node_modules/typebox/build/guard/emit.d.mts +3 -1
- package/node_modules/typebox/build/guard/emit.mjs +12 -5
- package/node_modules/typebox/build/guard/guard.d.mts +8 -2
- package/node_modules/typebox/build/guard/guard.mjs +25 -4
- package/node_modules/typebox/build/guard/string.d.mts +2 -2
- package/node_modules/typebox/build/guard/string.mjs +7 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
- package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
- package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
- package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
- package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
- package/node_modules/typebox/build/schema/types/index.mjs +0 -2
- package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
- package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
- package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
- package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
- package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
- package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
- package/node_modules/typebox/build/type/script/parser.mjs +27 -23
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
- package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
- package/node_modules/typebox/package.json +27 -27
- package/node_modules/typebox/readme.md +79 -82
- package/openclaw.plugin.json +7 -0
- package/package.json +5 -7
- package/node_modules/pretty-ms/index.d.ts +0 -157
- package/node_modules/pretty-ms/index.js +0 -149
- package/node_modules/pretty-ms/license +0 -9
- package/node_modules/pretty-ms/node_modules/parse-ms/index.d.ts +0 -30
- package/node_modules/pretty-ms/node_modules/parse-ms/index.js +0 -45
- package/node_modules/pretty-ms/node_modules/parse-ms/license +0 -9
- package/node_modules/pretty-ms/node_modules/parse-ms/package.json +0 -47
- package/node_modules/pretty-ms/node_modules/parse-ms/readme.md +0 -46
- package/node_modules/pretty-ms/package.json +0 -55
- package/node_modules/pretty-ms/readme.md +0 -179
- package/node_modules/typebox/build/format/_idna.d.mts +0 -2
- package/node_modules/typebox/build/format/_idna.mjs +0 -246
- package/node_modules/typebox/build/format/_puny.d.mts +0 -1
- package/node_modules/typebox/build/format/_puny.mjs +0 -77
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
- package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
|
@@ -91,7 +91,7 @@ const User = Type.Object({ // const User = {
|
|
|
91
91
|
// type: 'string',
|
|
92
92
|
// format: 'email'
|
|
93
93
|
// }
|
|
94
|
-
// }
|
|
94
|
+
// },
|
|
95
95
|
// required: [
|
|
96
96
|
// 'id',
|
|
97
97
|
// 'name',
|
|
@@ -111,24 +111,28 @@ type User = Type.Static<typeof User> // type User = {
|
|
|
111
111
|
|
|
112
112
|
## Script
|
|
113
113
|
|
|
114
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/
|
|
114
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkBDGAC0YgBMBXAG1WoBjCADsAzvGZs4AXkREAdAGVBUYGBgAKAAaU4cQmjgA1VIJjQALLLgBvOGQBccEdxDFUUADRwkz1+6ePgBe-m4e3nAA7mGBUHAAvnoGRCZmFlAAzDb2Ti7hQb6xESHFnonJhuim5tAATDkOZZF++XEV2gCU1HRwAOJQTGCswIJiHDz8QqIS-YPDo+NyyGjKqupaUqw+uvpVabCoZDnJ+pBiwDDAos41GZZepy7QIEy8t+nQmY-6+twAbh9alA6skkntUn1UDhUDAoEgTr84P9PFdBKgxB9DmQANoAXR+v2AIk4owxzXxYMqqSknmAb0RvyY7mAqBEMCB90J+lJGAw3DEqE5Vm5cDEaEEfCYUGFUEsVIhRgYGPYclsTwA5tCQLD4c4oTC4UhRa8YHS3s5aWo3lSutR9sqxKr5KslDAWKMADxVCAYOZDEZjHF4R2sPB4gB8+l6DpVjKRCcTSeTKZTvX0WsNerscAUecSotTReLJfTcFN5veObzCgqJfrDeTvQSQA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkBDGAC0YgBMBXAG1WoBjCADsAzvABqqQTGgAWOAF5ERAHQB5YgCsZMABQBvOGQBcqtGoBy3EMVRR9ASgA0cJOeSWbdh87cAXp7qPvaOrnAA7sHetmHOcAC+TpTC4lJ60ADMyhaomjp6RiYx+aF+ER551nEVgaU1vuFJKWkScNKy0ABMuV75WrqyxWbV5eFuVf2N8U4t1HRwAOJQTGCswIJiHDz8QqLt0rCoZH3qg0WGlHBwkGLAMMCi5p1yUPIu13Ai0CBMvC9MlAsp8btwAG6ArpQbqUZKpA7wJaoHCoGBQJBnSwXYZXG7ghyPQSoMQNACCUFWSH0RxgJ1cX2AIk4mxJ5MpTGp03GzhS8La8GYdKgwH+WIGhVxXyYdmAqBEMChbw+XxZGAw3DEqCVClBcDEaEEfCYUB170+-MRjBJ7BU0xxBjxcAA5iiQGiMeZkaj0Ug9X9haKAYwWA4g3CUpRCGhrWJbdUAMowFibAA80ZRGFjrAAfDd8wXC4sM9nck7CxXK1XqzX84sbq6fZ64MY1G2knra13u1363AA2H-uZW+3El8exPJ3X6IkgA)
|
|
115
115
|
|
|
116
|
-
TypeBox includes a
|
|
116
|
+
TypeBox includes a micro TypeScript engine that can transform TypeScript definitions to JSON Schema. The engine is fully type-safe and supports many programmable constructs including Conditional, Mapped, Indexed, Generics, Distributive Generics, and more.
|
|
117
117
|
|
|
118
118
|
### Example
|
|
119
119
|
|
|
120
|
-
Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
|
|
120
|
+
Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script).
|
|
121
121
|
|
|
122
122
|
```typescript
|
|
123
|
-
|
|
123
|
+
import Type from 'typebox'
|
|
124
|
+
|
|
125
|
+
// Math Module
|
|
126
|
+
|
|
124
127
|
const Math = Type.Script(`
|
|
125
|
-
type Vector2 = { x: number, y: number }
|
|
126
|
-
type Vector3 = { x: number, y: number, z: number }
|
|
127
128
|
type Vector4 = { x: number, y: number, z: number, w: number }
|
|
129
|
+
type Vector3 = { x: number, y: number, z: number }
|
|
130
|
+
type Vector2 = { x: number, y: number }
|
|
128
131
|
`)
|
|
129
132
|
|
|
130
|
-
//
|
|
131
|
-
|
|
133
|
+
// Graphics Module
|
|
134
|
+
|
|
135
|
+
const Graphics = Type.Script(Math, `
|
|
132
136
|
type Vertex = {
|
|
133
137
|
position: Vector4,
|
|
134
138
|
normal: Vector3,
|
|
@@ -149,23 +153,10 @@ const { Mesh } = Type.Script(Math, `
|
|
|
149
153
|
}
|
|
150
154
|
`)
|
|
151
155
|
|
|
152
|
-
//
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Mesh.properties.material.properties.diffuse.properties.x
|
|
157
|
-
Mesh.properties.material.properties.ambient.properties.x
|
|
158
|
-
Mesh.properties.material.properties.specular.properties.x
|
|
159
|
-
|
|
160
|
-
// Static Inference
|
|
161
|
-
function render(mesh: Type.Static<typeof Mesh>) {
|
|
162
|
-
mesh.geometry.vertices[0].position.x
|
|
163
|
-
mesh.geometry.vertices[0].normal.x
|
|
164
|
-
mesh.geometry.vertices[0].uv.x
|
|
165
|
-
mesh.material.diffuse.x
|
|
166
|
-
mesh.material.ambient.x
|
|
167
|
-
mesh.material.specular.x
|
|
168
|
-
}
|
|
156
|
+
type Mesh = Type.Static<typeof Graphics['Mesh']> // type Mesh = {
|
|
157
|
+
// geometry: { ... },
|
|
158
|
+
// material: { ... }
|
|
159
|
+
// }
|
|
169
160
|
```
|
|
170
161
|
|
|
171
162
|
<a name="Schema"></a>
|
|
@@ -184,18 +175,21 @@ import Schema from 'typebox/schema'
|
|
|
184
175
|
|
|
185
176
|
### Compile
|
|
186
177
|
|
|
187
|
-
The compiler accepts
|
|
178
|
+
The compiler accepts either TypeBox types or native JSON Schema.
|
|
188
179
|
|
|
189
180
|
```typescript
|
|
190
|
-
|
|
181
|
+
|
|
182
|
+
// Type
|
|
183
|
+
|
|
184
|
+
const VectorA = Schema.Compile(Type.Object({ // const VectorA: Validator<TObject<{
|
|
191
185
|
x: Type.Number(), // x: TNumber
|
|
192
186
|
y: Type.Number(), // y: TNumber
|
|
193
187
|
z: Type.Number() // z: TNumber
|
|
194
188
|
})) // }>>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const
|
|
189
|
+
|
|
190
|
+
// Schema
|
|
191
|
+
|
|
192
|
+
const VectorB = Schema.Compile({ // const VectorB: Validator<{
|
|
199
193
|
type: 'object', // type: "object";
|
|
200
194
|
required: ['x', 'y', 'z'], // required: ["x", "y", "z"];
|
|
201
195
|
properties: { // properties: { ... };
|
|
@@ -208,35 +202,36 @@ const Vector = Schema.Compile({ // const Vector: Validator<{
|
|
|
208
202
|
|
|
209
203
|
### Validate
|
|
210
204
|
|
|
211
|
-
|
|
205
|
+
Compiled validator instances provide functions to Check and Parse values.
|
|
212
206
|
|
|
213
207
|
```typescript
|
|
208
|
+
|
|
209
|
+
// Compile
|
|
210
|
+
|
|
214
211
|
const Vector = Schema.Compile(Type.Script(`{
|
|
215
212
|
x: number
|
|
216
213
|
y: number
|
|
217
214
|
z: number
|
|
218
215
|
}`))
|
|
219
216
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
z: 0
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
const value = Vector.Parse({ // const value: {
|
|
227
|
-
x: 1, // x: number
|
|
228
|
-
y: 0, // y: number
|
|
229
|
-
z: 0 // z: number
|
|
230
|
-
}) // }
|
|
231
|
-
```
|
|
217
|
+
// Check
|
|
218
|
+
|
|
219
|
+
const valid = Vector.Check({ x: 1, y: 0, z: 0 }) // const valid: boolean
|
|
232
220
|
|
|
221
|
+
// Parse
|
|
233
222
|
|
|
223
|
+
const result = Vector.Parse({ x: 1, y: 0, z: 0 }) // const result: {
|
|
224
|
+
// x: number
|
|
225
|
+
// y: number
|
|
226
|
+
// z: number
|
|
227
|
+
// }
|
|
228
|
+
```
|
|
234
229
|
|
|
235
230
|
### Coverage
|
|
236
231
|
|
|
237
|
-
|
|
232
|
+
[JSON Schema Test Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite) | [JSON Schema Compliance Suite](https://github.com/sinclairzx81/json-schema-compliance-suite)
|
|
238
233
|
|
|
239
|
-
|
|
234
|
+
TypeBox supports all major JSON Schema draft versions and tracks compliance against the official JSON Schema Test Suite. It also maintains a separate JavaScript compliance suite to track ecosystem adoption as JSON Schema moves toward the V1 candidate. The following table shows TypeBox specification coverage.
|
|
240
235
|
|
|
241
236
|
| Spec | 3 | 4 | 6 | 7 | 2019-09 | 2020-12 | v1 |
|
|
242
237
|
|:-----|:--|:--|:--|:--|:--|:--|:--|
|
|
@@ -253,7 +248,7 @@ Ref: [JSON Schema Test Suite](https://github.com/json-schema-org/JSON-Schema-Tes
|
|
|
253
248
|
| dependencies | 17/18 | ✅ | ✅ | ✅ | - | - | - |
|
|
254
249
|
| dependentRequired | - | - | - | - | ✅ | ✅ | ✅ |
|
|
255
250
|
| dependentSchemas | - | - | - | - | ✅ | ✅ | ✅ |
|
|
256
|
-
| dynamicRef | - | - | - | - | - |
|
|
251
|
+
| dynamicRef | - | - | - | - | - | 40/44 | 21/27 |
|
|
257
252
|
| enum | 14/16 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
258
253
|
| exclusiveMaximum | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
259
254
|
| exclusiveMinimum | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
@@ -279,50 +274,52 @@ Ref: [JSON Schema Test Suite](https://github.com/json-schema-org/JSON-Schema-Tes
|
|
|
279
274
|
| properties | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
280
275
|
| propertyNames | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
281
276
|
| recursiveRef | - | - | - | - | ✅ | - | - |
|
|
282
|
-
| ref |
|
|
277
|
+
| ref | 22/27 | 37/45 | 67/70 | 75/78 | 79/81 | 77/79 | 78/79 |
|
|
283
278
|
| required | 3/4 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
284
279
|
| type | 73/80 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
285
|
-
| unevaluatedItems | - | - | - | - | ✅ |
|
|
286
|
-
| unevaluatedProperties | - | - | - | - | ✅ | ✅ |
|
|
280
|
+
| unevaluatedItems | - | - | - | - | ✅ | ✅ | 70/71 |
|
|
281
|
+
| unevaluatedProperties | - | - | - | - | ✅ | ✅ | 128/129 |
|
|
287
282
|
| uniqueItems | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
288
283
|
|
|
289
|
-
|
|
290
284
|
### Performance
|
|
291
285
|
|
|
292
|
-
|
|
286
|
+
TypeBox tracks comparative performance against AJV8 as the de facto performance standard. For broader comparative benchmarks, refer to the community maintained projects below.
|
|
287
|
+
|
|
288
|
+
[Runtime Benchmarks](https://moltar.github.io/typescript-runtime-type-benchmarks/) | [Schema Benchmarks](https://schemabenchmarks.dev/)
|
|
289
|
+
|
|
290
|
+
The following table shows compilation performance for various JSON Schema structures. These benchmarks measure the time required to JIT compile schematics, with faster compilation resulting in faster application startup.
|
|
293
291
|
|
|
294
292
|
```python
|
|
295
|
-
|
|
296
|
-
│ Compile │ TB1X
|
|
297
|
-
|
|
298
|
-
│ Boolean │
|
|
299
|
-
│ Number │
|
|
300
|
-
│ String │
|
|
301
|
-
│ Null │
|
|
302
|
-
│ Literal_String │
|
|
303
|
-
│ Literal_Number │
|
|
304
|
-
│ Literal_Boolean │
|
|
305
|
-
│ Pattern │
|
|
306
|
-
│ Object_Open │
|
|
307
|
-
│ Object_Close │
|
|
308
|
-
│ Object_Vector3 │
|
|
309
|
-
│ Object_Basis3 │
|
|
310
|
-
│ Intersect_And │
|
|
311
|
-
│ Intersect_Structural │
|
|
312
|
-
│ Union_Or │
|
|
313
|
-
│ Union_Structural │
|
|
314
|
-
│ Tuple_Values │
|
|
315
|
-
│ Tuple_Objects │
|
|
316
|
-
│ Array_Numbers_4 │
|
|
317
|
-
│ Array_Numbers_8 │
|
|
318
|
-
│ Array_Numbers_16 │
|
|
319
|
-
│ Array_Objects_Open │
|
|
320
|
-
│ Array_Objects_Close │
|
|
321
|
-
|
|
293
|
+
┌──────────────────────┬──────────────┬──────────────┐
|
|
294
|
+
│ Compile │ TB1X │ AJV8 │
|
|
295
|
+
├──────────────────────┼──────────────┼──────────────┤
|
|
296
|
+
│ Boolean │ 50.4K ops/s │ 7.1K ops/s │
|
|
297
|
+
│ Number │ 129.9K ops/s │ 7.9K ops/s │
|
|
298
|
+
│ String │ 128.9K ops/s │ 9.1K ops/s │
|
|
299
|
+
│ Null │ 91.3K ops/s │ 8.4K ops/s │
|
|
300
|
+
│ Literal_String │ 63.1K ops/s │ 7.4K ops/s │
|
|
301
|
+
│ Literal_Number │ 74.5K ops/s │ 7.6K ops/s │
|
|
302
|
+
│ Literal_Boolean │ 143.3K ops/s │ 7.7K ops/s │
|
|
303
|
+
│ Pattern │ 94.2K ops/s │ 6.4K ops/s │
|
|
304
|
+
│ Object_Open │ 19.4K ops/s │ 1.3K ops/s │
|
|
305
|
+
│ Object_Close │ 17.6K ops/s │ 991 ops/s │
|
|
306
|
+
│ Object_Vector3 │ 46.1K ops/s │ 3.3K ops/s │
|
|
307
|
+
│ Object_Basis3 │ 16K ops/s │ 848 ops/s │
|
|
308
|
+
│ Intersect_And │ 41.3K ops/s │ 4.2K ops/s │
|
|
309
|
+
│ Intersect_Structural │ 25.3K ops/s │ 1.5K ops/s │
|
|
310
|
+
│ Union_Or │ 58.6K ops/s │ 2.4K ops/s │
|
|
311
|
+
│ Union_Structural │ 31.5K ops/s │ 1.8K ops/s │
|
|
312
|
+
│ Tuple_Values │ 18.2K ops/s │ 1.9K ops/s │
|
|
313
|
+
│ Tuple_Objects │ 3.9K ops/s │ 437 ops/s │
|
|
314
|
+
│ Array_Numbers_4 │ 114.5K ops/s │ 4.2K ops/s │
|
|
315
|
+
│ Array_Numbers_8 │ 128.3K ops/s │ 3.9K ops/s │
|
|
316
|
+
│ Array_Numbers_16 │ 128.4K ops/s │ 4K ops/s │
|
|
317
|
+
│ Array_Objects_Open │ 22K ops/s │ 780 ops/s │
|
|
318
|
+
│ Array_Objects_Close │ 22K ops/s │ 1K ops/s │
|
|
319
|
+
└──────────────────────┴──────────────┴──────────────┘
|
|
322
320
|
```
|
|
323
321
|
|
|
324
|
-
|
|
325
|
-
The following tables shows validation performance for various JSON Schema structures using AJV8 as a basis for comparison.
|
|
322
|
+
The following tables shows validation performance for various JSON Schema structures. These benchmarks measure overall validation throughput for JIT compiled schematics.
|
|
326
323
|
|
|
327
324
|
```python
|
|
328
325
|
┌──────────────────────┬──────────────┬──────────────┐
|
package/openclaw.plugin.json
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
},
|
|
6
6
|
"name": "Google Meet",
|
|
7
7
|
"description": "OpenClaw Google Meet participant plugin for joining calls through Chrome or Twilio transports.",
|
|
8
|
+
"cliCommands": [
|
|
9
|
+
{
|
|
10
|
+
"name": "googlemeet",
|
|
11
|
+
"description": "Join and manage Google Meet calls",
|
|
12
|
+
"hasSubcommands": true
|
|
13
|
+
}
|
|
14
|
+
],
|
|
8
15
|
"icon": "https://cdn.simpleicons.org/googlemeet",
|
|
9
16
|
"enabledByDefault": true,
|
|
10
17
|
"commandAliases": [{ "name": "googlemeet" }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/google-meet",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.9.1-beta.1",
|
|
4
4
|
"description": "OpenClaw Google Meet participant plugin for joining calls through Chrome or Twilio transports.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,11 +9,10 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"jszip": "3.10.1",
|
|
12
|
-
"
|
|
13
|
-
"typebox": "1.3.6"
|
|
12
|
+
"typebox": "1.3.16"
|
|
14
13
|
},
|
|
15
14
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.
|
|
15
|
+
"openclaw": ">=2026.9.1-beta.1"
|
|
17
16
|
},
|
|
18
17
|
"peerDependenciesMeta": {
|
|
19
18
|
"openclaw": {
|
|
@@ -30,10 +29,10 @@
|
|
|
30
29
|
"minHostVersion": ">=2026.4.20"
|
|
31
30
|
},
|
|
32
31
|
"compat": {
|
|
33
|
-
"pluginApi": ">=2026.
|
|
32
|
+
"pluginApi": ">=2026.9.1-beta.1"
|
|
34
33
|
},
|
|
35
34
|
"build": {
|
|
36
|
-
"openclawVersion": "2026.
|
|
35
|
+
"openclawVersion": "2026.9.1-beta.1"
|
|
37
36
|
},
|
|
38
37
|
"release": {
|
|
39
38
|
"publishToClawHub": true,
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
],
|
|
51
50
|
"bundledDependencies": [
|
|
52
51
|
"jszip",
|
|
53
|
-
"pretty-ms",
|
|
54
52
|
"typebox"
|
|
55
53
|
]
|
|
56
54
|
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
export type Options = {
|
|
2
|
-
/**
|
|
3
|
-
Number of digits to appear after the seconds decimal point.
|
|
4
|
-
|
|
5
|
-
@default 1
|
|
6
|
-
*/
|
|
7
|
-
readonly secondsDecimalDigits?: number;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
Number of digits to appear after the milliseconds decimal point.
|
|
11
|
-
|
|
12
|
-
Useful in combination with [`process.hrtime()`](https://nodejs.org/api/process.html#process_process_hrtime).
|
|
13
|
-
|
|
14
|
-
@default 0
|
|
15
|
-
*/
|
|
16
|
-
readonly millisecondsDecimalDigits?: number;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
Keep milliseconds on whole seconds: `13s` → `13.0s`.
|
|
20
|
-
|
|
21
|
-
Useful when you are showing a number of seconds spent on an operation and don't want the width of the output to change when hitting a whole number.
|
|
22
|
-
|
|
23
|
-
@default false
|
|
24
|
-
*/
|
|
25
|
-
readonly keepDecimalsOnWholeSeconds?: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
Only show the first unit: `1h 10m` → `1h`.
|
|
29
|
-
|
|
30
|
-
Also ensures that `millisecondsDecimalDigits` and `secondsDecimalDigits` are both set to `0`.
|
|
31
|
-
|
|
32
|
-
@default false
|
|
33
|
-
*/
|
|
34
|
-
readonly compact?: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
Number of units to show. Setting `compact` to `true` overrides this option.
|
|
38
|
-
|
|
39
|
-
@default Infinity
|
|
40
|
-
*/
|
|
41
|
-
readonly unitCount?: number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
Use full-length units: `5h 1m 45s` → `5 hours 1 minute 45 seconds`.
|
|
45
|
-
|
|
46
|
-
@default false
|
|
47
|
-
*/
|
|
48
|
-
readonly verbose?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
Show milliseconds separately. This means they won't be included in the decimal part of the seconds.
|
|
52
|
-
|
|
53
|
-
@default false
|
|
54
|
-
*/
|
|
55
|
-
readonly separateMilliseconds?: boolean;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
Show microseconds and nanoseconds.
|
|
59
|
-
|
|
60
|
-
@default false
|
|
61
|
-
*/
|
|
62
|
-
readonly formatSubMilliseconds?: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
Display time using colon notation: `5h 1m 45s` → `5:01:45`. Always shows time in at least minutes: `1s` → `0:01`
|
|
66
|
-
|
|
67
|
-
Useful when you want to display time without the time units, similar to a digital watch.
|
|
68
|
-
|
|
69
|
-
Setting `colonNotation` to `true` overrides the following options to `false`:
|
|
70
|
-
- `compact`
|
|
71
|
-
- `formatSubMilliseconds`
|
|
72
|
-
- `separateMilliseconds`
|
|
73
|
-
- `verbose`
|
|
74
|
-
|
|
75
|
-
@default false
|
|
76
|
-
*/
|
|
77
|
-
readonly colonNotation?: boolean;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
Hides the year and shows the hidden year additionally as days (365 per year): `1y 3d 5h 1m 45s` → `368d 5h 1m 45s`.
|
|
81
|
-
|
|
82
|
-
@default false
|
|
83
|
-
*/
|
|
84
|
-
readonly hideYear?: boolean;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
Hides the year and days and shows the hidden values additionally as hours: `1y 3d 5h 1m 45s` → `8837h 1m 45s`.
|
|
88
|
-
|
|
89
|
-
@default false
|
|
90
|
-
*/
|
|
91
|
-
readonly hideYearAndDays?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
Hides the seconds: `1y 3d 5h 1m 45s` → `1y 3d 5h 1m`.
|
|
95
|
-
|
|
96
|
-
@default false
|
|
97
|
-
*/
|
|
98
|
-
readonly hideSeconds?: boolean;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
Show sub-second values as decimal seconds: `900ms` → `0.9s`.
|
|
102
|
-
|
|
103
|
-
Useful for progress indicators where you want consistent unit format to prevent flickering.
|
|
104
|
-
|
|
105
|
-
@default false
|
|
106
|
-
*/
|
|
107
|
-
readonly subSecondsAsDecimals?: boolean;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`.
|
|
112
|
-
|
|
113
|
-
@param milliseconds - Milliseconds to humanize.
|
|
114
|
-
|
|
115
|
-
@example
|
|
116
|
-
```
|
|
117
|
-
import prettyMilliseconds from 'pretty-ms';
|
|
118
|
-
|
|
119
|
-
prettyMilliseconds(1337000000);
|
|
120
|
-
//=> '15d 11h 23m 20s'
|
|
121
|
-
|
|
122
|
-
prettyMilliseconds(1337);
|
|
123
|
-
//=> '1.3s'
|
|
124
|
-
|
|
125
|
-
prettyMilliseconds(133);
|
|
126
|
-
//=> '133ms'
|
|
127
|
-
|
|
128
|
-
// `compact` option
|
|
129
|
-
prettyMilliseconds(1337, {compact: true});
|
|
130
|
-
//=> '1s'
|
|
131
|
-
|
|
132
|
-
// `verbose` option
|
|
133
|
-
prettyMilliseconds(1335669000, {verbose: true});
|
|
134
|
-
//=> '15 days 11 hours 1 minute 9 seconds'
|
|
135
|
-
|
|
136
|
-
// `colonNotation` option
|
|
137
|
-
prettyMilliseconds(95500, {colonNotation: true});
|
|
138
|
-
//=> '1:35.5'
|
|
139
|
-
|
|
140
|
-
// `formatSubMilliseconds` option
|
|
141
|
-
prettyMilliseconds(100.400080, {formatSubMilliseconds: true})
|
|
142
|
-
//=> '100ms 400µs 80ns'
|
|
143
|
-
|
|
144
|
-
// `subSecondsAsDecimals` option
|
|
145
|
-
prettyMilliseconds(900, {subSecondsAsDecimals: true});
|
|
146
|
-
//=> '0.9s'
|
|
147
|
-
|
|
148
|
-
// Can be useful for time durations
|
|
149
|
-
prettyMilliseconds(new Date(2014, 0, 1, 10, 40) - new Date(2014, 0, 1, 10, 5))
|
|
150
|
-
//=> '35m'
|
|
151
|
-
```
|
|
152
|
-
*/
|
|
153
|
-
export default function prettyMilliseconds(
|
|
154
|
-
milliseconds: number | bigint,
|
|
155
|
-
options?: Options
|
|
156
|
-
): string;
|
|
157
|
-
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import parseMilliseconds from 'parse-ms';
|
|
2
|
-
|
|
3
|
-
const isZero = value => value === 0 || value === 0n;
|
|
4
|
-
const pluralize = (word, count) => (count === 1 || count === 1n) ? word : `${word}s`;
|
|
5
|
-
|
|
6
|
-
const SECOND_ROUNDING_EPSILON = 0.000_000_1;
|
|
7
|
-
const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
|
|
8
|
-
|
|
9
|
-
export default function prettyMilliseconds(milliseconds, options) {
|
|
10
|
-
const isBigInt = typeof milliseconds === 'bigint';
|
|
11
|
-
if (!isBigInt && !Number.isFinite(milliseconds)) {
|
|
12
|
-
throw new TypeError('Expected a finite number or bigint');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
options = {...options};
|
|
16
|
-
|
|
17
|
-
const sign = milliseconds < 0 ? '-' : '';
|
|
18
|
-
milliseconds = milliseconds < 0 ? -milliseconds : milliseconds; // Cannot use `Math.abs()` because of BigInt support.
|
|
19
|
-
|
|
20
|
-
if (options.colonNotation) {
|
|
21
|
-
options.compact = false;
|
|
22
|
-
options.formatSubMilliseconds = false;
|
|
23
|
-
options.separateMilliseconds = false;
|
|
24
|
-
options.verbose = false;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (options.compact) {
|
|
28
|
-
options.unitCount = 1;
|
|
29
|
-
options.secondsDecimalDigits = 0;
|
|
30
|
-
options.millisecondsDecimalDigits = 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let result = [];
|
|
34
|
-
|
|
35
|
-
const floorDecimals = (value, decimalDigits) => {
|
|
36
|
-
const flooredInterimValue = Math.floor((value * (10 ** decimalDigits)) + SECOND_ROUNDING_EPSILON);
|
|
37
|
-
const flooredValue = Math.round(flooredInterimValue) / (10 ** decimalDigits);
|
|
38
|
-
return flooredValue.toFixed(decimalDigits);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const add = (value, long, short, valueString) => {
|
|
42
|
-
if (
|
|
43
|
-
(result.length === 0 || !options.colonNotation)
|
|
44
|
-
&& isZero(value)
|
|
45
|
-
&& !(options.colonNotation && short === 'm')) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
valueString ??= String(value);
|
|
50
|
-
if (options.colonNotation) {
|
|
51
|
-
const wholeDigits = valueString.includes('.') ? valueString.split('.')[0].length : valueString.length;
|
|
52
|
-
const minLength = result.length > 0 ? 2 : 1;
|
|
53
|
-
valueString = '0'.repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
54
|
-
} else {
|
|
55
|
-
valueString += options.verbose ? ' ' + pluralize(long, value) : short;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
result.push(valueString);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const parsed = parseMilliseconds(milliseconds);
|
|
62
|
-
const days = BigInt(parsed.days);
|
|
63
|
-
|
|
64
|
-
if (options.hideYearAndDays) {
|
|
65
|
-
add((BigInt(days) * 24n) + BigInt(parsed.hours), 'hour', 'h');
|
|
66
|
-
} else {
|
|
67
|
-
if (options.hideYear) {
|
|
68
|
-
add(days, 'day', 'd');
|
|
69
|
-
} else {
|
|
70
|
-
add(days / 365n, 'year', 'y');
|
|
71
|
-
add(days % 365n, 'day', 'd');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
add(Number(parsed.hours), 'hour', 'h');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
add(Number(parsed.minutes), 'minute', 'm');
|
|
78
|
-
|
|
79
|
-
if (!options.hideSeconds) {
|
|
80
|
-
if (
|
|
81
|
-
options.separateMilliseconds
|
|
82
|
-
|| options.formatSubMilliseconds
|
|
83
|
-
|| (!options.colonNotation && milliseconds < 1000 && !options.subSecondsAsDecimals)
|
|
84
|
-
) {
|
|
85
|
-
const seconds = Number(parsed.seconds);
|
|
86
|
-
const milliseconds = Number(parsed.milliseconds);
|
|
87
|
-
const microseconds = Number(parsed.microseconds);
|
|
88
|
-
const nanoseconds = Number(parsed.nanoseconds);
|
|
89
|
-
|
|
90
|
-
add(seconds, 'second', 's');
|
|
91
|
-
|
|
92
|
-
if (options.formatSubMilliseconds) {
|
|
93
|
-
add(milliseconds, 'millisecond', 'ms');
|
|
94
|
-
add(microseconds, 'microsecond', 'µs');
|
|
95
|
-
add(nanoseconds, 'nanosecond', 'ns');
|
|
96
|
-
} else {
|
|
97
|
-
const millisecondsAndBelow
|
|
98
|
-
= milliseconds
|
|
99
|
-
+ (microseconds / 1000)
|
|
100
|
-
+ (nanoseconds / 1e6);
|
|
101
|
-
|
|
102
|
-
const millisecondsDecimalDigits
|
|
103
|
-
= typeof options.millisecondsDecimalDigits === 'number'
|
|
104
|
-
? options.millisecondsDecimalDigits
|
|
105
|
-
: 0;
|
|
106
|
-
|
|
107
|
-
const roundedMilliseconds = millisecondsAndBelow >= 1
|
|
108
|
-
? Math.round(millisecondsAndBelow)
|
|
109
|
-
: Math.ceil(millisecondsAndBelow);
|
|
110
|
-
|
|
111
|
-
const millisecondsString = millisecondsDecimalDigits
|
|
112
|
-
? millisecondsAndBelow.toFixed(millisecondsDecimalDigits)
|
|
113
|
-
: roundedMilliseconds;
|
|
114
|
-
|
|
115
|
-
add(
|
|
116
|
-
Number.parseFloat(millisecondsString),
|
|
117
|
-
'millisecond',
|
|
118
|
-
'ms',
|
|
119
|
-
millisecondsString,
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
} else {
|
|
123
|
-
const seconds = (
|
|
124
|
-
(isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds)
|
|
125
|
-
/ 1000
|
|
126
|
-
) % 60;
|
|
127
|
-
const secondsDecimalDigits
|
|
128
|
-
= typeof options.secondsDecimalDigits === 'number'
|
|
129
|
-
? options.secondsDecimalDigits
|
|
130
|
-
: 1;
|
|
131
|
-
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
132
|
-
const secondsString = options.keepDecimalsOnWholeSeconds
|
|
133
|
-
? secondsFixed
|
|
134
|
-
: secondsFixed.replace(/\.0+$/, '');
|
|
135
|
-
add(Number.parseFloat(secondsString), 'second', 's', secondsString);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (result.length === 0) {
|
|
140
|
-
return sign + '0' + (options.verbose ? ' milliseconds' : 'ms');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const separator = options.colonNotation ? ':' : ' ';
|
|
144
|
-
if (typeof options.unitCount === 'number') {
|
|
145
|
-
result = result.slice(0, Math.max(options.unitCount, 1));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return sign + result.join(separator);
|
|
149
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type TimeComponents<T extends (number | bigint) = number> = {
|
|
2
|
-
days: T;
|
|
3
|
-
hours: T;
|
|
4
|
-
minutes: T;
|
|
5
|
-
seconds: T;
|
|
6
|
-
milliseconds: T;
|
|
7
|
-
microseconds: T;
|
|
8
|
-
nanoseconds: T;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
Parse milliseconds into an object.
|
|
13
|
-
|
|
14
|
-
@example
|
|
15
|
-
```
|
|
16
|
-
import parseMilliseconds from 'parse-ms';
|
|
17
|
-
|
|
18
|
-
parseMilliseconds(1337000001);
|
|
19
|
-
// {
|
|
20
|
-
// days: 15,
|
|
21
|
-
// hours: 11,
|
|
22
|
-
// minutes: 23,
|
|
23
|
-
// seconds: 20,
|
|
24
|
-
// milliseconds: 1,
|
|
25
|
-
// microseconds: 0,
|
|
26
|
-
// nanoseconds: 0
|
|
27
|
-
// }
|
|
28
|
-
```
|
|
29
|
-
*/
|
|
30
|
-
export default function parseMilliseconds<T extends number | bigint>(milliseconds: T): TimeComponents<T>;
|