File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function samples(...args) {
149149 } , ...files ] ) . then ( ( result ) => {
150150 next . samples [ sample ] = Object . assign ( { } , contents . samples [ sample ] , {
151151 hash : meta . hash ,
152- uid : result . uid ,
152+ uid : result . id ,
153153 files : meta . files ,
154154 } ) ;
155155 } ) ) ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ module.exports = class SvelteReplRepository {
66 throw new Error ( 'No auth token' )
77 }
88 axios . defaults . headers . common . cookie = `sid=${ auth } ;`
9- axios . defaults . headers . post [ 'Content-Type' ] = 'text/plain;charset=UTF-8 ' ;
10- axios . defaults . headers . patch [ 'Content-Type' ] = 'text/plain;charset=UTF-8 ' ;
9+ axios . defaults . headers . post [ 'Content-Type' ] = 'application/json ' ;
10+ axios . defaults . headers . put [ 'Content-Type' ] = 'application/json ' ;
1111 }
1212
1313 getAll ( ) {
@@ -20,7 +20,7 @@ module.exports = class SvelteReplRepository {
2020 }
2121
2222 update ( id , name , files ) {
23- return axios . patch ( `https://svelte.dev/repl/${ id } .json` , JSON . stringify ( { name, files } ) )
23+ return axios . put ( `https://svelte.dev/repl/${ id } .json` , JSON . stringify ( { name, files } ) )
2424 . then ( ( response ) => response . data ) ;
2525 }
2626}
Original file line number Diff line number Diff line change 3737
3838 let areaSeries = null ;
3939
40- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type,@typescript-eslint/typedef
4140 function handleSeriesReference (ref ) {
4241 areaSeries = ref;
4342 }
4443
4544 let legend = ' ETC USD 7D VWAP' ;
4645
47- // eslint-disable-next-line @typescript-eslint/typedef,@typescript-eslint/explicit-function-return-type
4846 function handleCrosshairMove ({detail: param}) {
4947 if (param .time ) {
5048 const price = param .seriesPrices .get (areaSeries);
You can’t perform that action at this time.
0 commit comments