File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ which encodes most non-alphanumeric characters.
26
26
e.g., ` { foo: true, bar: false } ` serializes to ` foo=true&bar=false ` .
27
27
- The primitive ` null ` and ` undefined ` values are removed,
28
28
e.g., ` { foo: null, bar: undefined, baz: 1 } ` serializes to ` baz=1 ` .
29
- - ` Date ` objects are detected and serialized using ` Date.toISOString() ` .
29
+ - ` Date ` objects are detected and serialized using ` Date.toISOString() ` ,
30
+ e.g., ` { foo: new Date(0) } ` serializes to ` foo=1970-01-01T00%3A00%3A00.000Z ` .
30
31
- ` Temporal.Instant ` objects are detected and serialized by first converting them to ` Date `
31
32
and then serializing the ` Date ` as above.
32
33
- Arrays are serialized using
Original file line number Diff line number Diff line change
1
+ import { Temporal } from '@js-temporal/polyfill'
1
2
import axios from 'axios'
2
3
import type { Builder , Command , Describe , Handler } from 'landlubber'
3
4
@@ -22,6 +23,8 @@ export const handler: Handler<Options> = async ({ logger }) => {
22
23
d : null ,
23
24
e : [ 'a' , 2 ] ,
24
25
f : [ ] ,
26
+ g : new Date ( ) ,
27
+ h : Temporal . Now . instant ( ) ,
25
28
} ,
26
29
} )
27
30
logger . info ( { data } , 'Response' )
You can’t perform that action at this time.
0 commit comments