File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class Cloudnode {
9191 const text = await response . text ( ) ;
9292 let data ;
9393 if ( response . headers . get ( "Content-Type" ) ?. startsWith ( "application/json" ) ) {
94- data = JSON . parse ( text , ( key , value ) => {
94+ data = JSON . parse ( text , ( _key , value ) => {
9595 // parse dates
9696 if ( / ^ \d { 4 } - \d { 2 } - \d { 2 } T (?: \d { 2 } : ) { 2 } \d { 2 } (?: \. \d + ) ? (?: [ a - z A - Z ] + | \+ \d { 2 } : \d { 2 } ) ? $ / . test ( value ) )
9797 return new Date ( value ) ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class {{config.name}} {
102102 const text = await response.text();
103103 let data: T;
104104 if (response.headers.get("Content-Type")?.startsWith("application/json")) {
105- data = JSON.parse(text, (key , value) => {
105+ data = JSON.parse(text, (_key , value) => {
106106 // parse dates
107107 if (/^\d{4} -\d{ 2} -\d{ 2} T(?:\d{ 2} :){ 2} \d{ 2} (?:\.\d+)?(?:[a-zA-Z]+|\+\d{ 2} :\d{ 2} )?$/.test(value))
108108 return new Date(value);
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class Cloudnode {
9191 const text = await response . text ( ) ;
9292 let data ;
9393 if ( response . headers . get ( "Content-Type" ) ?. startsWith ( "application/json" ) ) {
94- data = JSON . parse ( text , ( key , value ) => {
94+ data = JSON . parse ( text , ( _key , value ) => {
9595 // parse dates
9696 if ( / ^ \d { 4 } - \d { 2 } - \d { 2 } T (?: \d { 2 } : ) { 2 } \d { 2 } (?: \. \d + ) ? (?: [ a - z A - Z ] + | \+ \d { 2 } : \d { 2 } ) ? $ / . test ( value ) )
9797 return new Date ( value ) ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class Cloudnode {
102102 const text = await response . text ( ) ;
103103 let data : T ;
104104 if ( response . headers . get ( "Content-Type" ) ?. startsWith ( "application/json" ) ) {
105- data = JSON . parse ( text , ( key , value ) => {
105+ data = JSON . parse ( text , ( _key , value ) => {
106106 // parse dates
107107 if ( / ^ \d { 4 } - \d { 2 } - \d { 2 } T (?: \d { 2 } : ) { 2 } \d { 2 } (?: \. \d + ) ? (?: [ a - z A - Z ] + | \+ \d { 2 } : \d { 2 } ) ? $ / . test ( value ) )
108108 return new Date ( value ) ;
You can’t perform that action at this time.
0 commit comments