@cratis/arc 20.33.9 → 20.33.17

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.
@@ -0,0 +1,18 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import { describe, it, beforeEach } from 'vitest';
5
+ import { UrlHelpers } from '../../UrlHelpers';
6
+
7
+ describe('when building query params with date values', () => {
8
+ const startTime = new Date(Date.UTC(2026, 5, 3, 13, 57, 6));
9
+ const endTime = new Date(Date.UTC(2026, 5, 3, 14, 0, 32));
10
+ let result: URLSearchParams;
11
+
12
+ beforeEach(() => {
13
+ result = UrlHelpers.buildQueryParams({ startTime, endTime });
14
+ });
15
+
16
+ it('should serialize startTime as ISO 8601', () => result.get('startTime')!.should.equal('2026-06-03T13:57:06.000Z'));
17
+ it('should serialize endTime as ISO 8601', () => result.get('endTime')!.should.equal('2026-06-03T14:00:32.000Z'));
18
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/arc",
3
- "version": "20.33.9",
3
+ "version": "20.33.17",
4
4
  "description": "",
5
5
  "author": "Cratis",
6
6
  "license": "MIT",