diff --git a/plugins/babel-plugin-canyon/package.json b/plugins/babel-plugin-canyon/package.json index 7ad87f5c..6e94f364 100644 --- a/plugins/babel-plugin-canyon/package.json +++ b/plugins/babel-plugin-canyon/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-canyon", - "version": "1.8.78-beta.19", + "version": "1.8.78-beta.20", "description": "A Babel plugin cooperates with istanbul to report the coverage", "author": "Allen Zhang ", "license": "MIT", diff --git a/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js b/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js index 7fd6a411..bb191d07 100644 --- a/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js +++ b/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js @@ -213,7 +213,7 @@ const uploadPromise = ()=>{ return fetch(canyon.dsn, { - method: 'POST', + method: 'post', body: JSON.stringify({ ...canyon, reportID: document.querySelector('.canyon-form-value-reportid').value, diff --git a/plugins/inject-popup/index.html b/plugins/inject-popup/index.html index cfe7d1b7..fe450473 100644 --- a/plugins/inject-popup/index.html +++ b/plugins/inject-popup/index.html @@ -197,7 +197,7 @@ document.querySelector('.result').innerHTML = 'Uploading...' fetch(canyon.dsn, { - method: 'POST', + method: 'post', body: JSON.stringify({ ...canyon, coverage: window.__coverage__