http-api: making more consistent with @urbit/api

This commit is contained in:
Hunter Miller 2021-11-09 12:43:39 -06:00
parent f8e1bff02b
commit be7fddc650
2 changed files with 4 additions and 41 deletions

View File

@ -1,41 +1,11 @@
{ {
"comments": false,
"targets": {
"esmodules": true,
"node": "current",
"safari": "11"
},
"presets": [ "presets": [
[ [
"@babel/preset-env", "@babel/preset-env",
{ {
"useBuiltIns": false, "targets": "> 1%",
"bugfixes": true, "useBuiltIns": "usage"
"loose": true,
"debug": true
}
],
[
"@babel/preset-typescript",
{
"optimizeConstEnums": true
} }
] ]
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": false, // es2017 support async functions
"useESModules": true
}
],
[
"polyfill-corejs3",
{
"method": "usage-pure"
}
],
"@babel/plugin-proposal-export-namespace-from"
] ]
} }

View File

@ -33,12 +33,8 @@
}, },
"author": "", "author": "",
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8", "@babel/core": "^7.15.8",
"@babel/plugin-proposal-export-namespace-from": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.15.8",
"@babel/preset-env": "^7.15.8", "@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6", "@rollup/plugin-node-resolve": "^13.0.6",
@ -49,13 +45,13 @@
"@typescript-eslint/eslint-plugin": "^4.7.0", "@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0", "@typescript-eslint/parser": "^4.7.0",
"babel-jest": "^27.0.6", "babel-jest": "^27.0.6",
"babel-plugin-polyfill-corejs3": "^0.2.5",
"cross-fetch": "^3.1.4", "cross-fetch": "^3.1.4",
"event-target-polyfill": "0.0.3", "event-target-polyfill": "0.0.3",
"fast-text-encoding": "^1.0.3", "fast-text-encoding": "^1.0.3",
"jest": "^27.0.6", "jest": "^27.0.6",
"rollup": "^2.59.0", "rollup": "^2.59.0",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^3.9.7", "typescript": "^3.9.7",
"util": "^0.12.3", "util": "^0.12.3",
"web-streams-polyfill": "^3.0.3", "web-streams-polyfill": "^3.0.3",
@ -64,9 +60,6 @@
"dependencies": { "dependencies": {
"@babel/runtime": "^7.12.5", "@babel/runtime": "^7.12.5",
"@microsoft/fetch-event-source": "^2.0.0", "@microsoft/fetch-event-source": "^2.0.0",
"@rollup/plugin-typescript": "^8.3.0", "browser-or-node": "^1.3.0"
"browser-or-node": "^1.3.0",
"core-js-pure": "^3.18.3",
"rollup-plugin-typescript2": "^0.30.0"
} }
} }