From e38838416a9b2dde6cd08ff7962539e55b085327 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Mon, 18 Mar 2019 21:19:29 +0330 Subject: [PATCH] chore: migrate meta to nuxt/http --- CHANGELOG.md | 549 ---------------------------------------------- README.md | 34 ++- docs/README.md | 2 +- docs/extend.md | 2 +- docs/migration.md | 30 --- docs/options.md | 2 +- docs/setup.md | 6 +- package.json | 8 +- 8 files changed, 26 insertions(+), 607 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index f63c166..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,549 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -## [5.4.1](https://github.com/nuxt-community/axios-module/compare/v5.4.0...v5.4.1) (2019-03-05) - - -### Bug Fixes - -* **types:** correct Vuex Store instance ([#227](https://github.com/nuxt-community/axios-module/issues/227)) ([1ed6e2f](https://github.com/nuxt-community/axios-module/commit/1ed6e2f)) - - - -# [5.4.0](https://github.com/nuxt-community/axios-module/compare/v5.3.6...v5.4.0) (2019-03-02) - - -### Bug Fixes - -* **types:** `onResponseError` typo ([#203](https://github.com/nuxt-community/axios-module/issues/203)) ([5fc1441](https://github.com/nuxt-community/axios-module/commit/5fc1441)) -* **types:** add AxiosError interface ([efb7191](https://github.com/nuxt-community/axios-module/commit/efb7191)) -* **types:** move types in types folder ([deb2834](https://github.com/nuxt-community/axios-module/commit/deb2834)) - - -### Features - -* **types:** add Context interface ([7f8952a](https://github.com/nuxt-community/axios-module/commit/7f8952a)) -* **types:** add types for helper functions ([#193](https://github.com/nuxt-community/axios-module/issues/193)) ([79909cc](https://github.com/nuxt-community/axios-module/commit/79909cc)) - - - - -## [5.3.6](https://github.com/nuxt-community/axios-module/compare/v5.3.5...v5.3.6) (2018-11-08) - - -### Bug Fixes - -* correctly ignore brotli encoding on server-side ([#180](https://github.com/nuxt-community/axios-module/issues/180)) ([4a52bfd](https://github.com/nuxt-community/axios-module/commit/4a52bfd)) - - - - -## [5.3.5](https://github.com/nuxt-community/axios-module/compare/v5.3.4...v5.3.5) (2018-11-07) - - -### Bug Fixes - -* **defaults:** ignore `cf-ray` and `cf-connecting-ip` headers on server side ([#20](https://github.com/nuxt-community/axios-module/issues/20)) ([#175](https://github.com/nuxt-community/axios-module/issues/175)) ([3ae5416](https://github.com/nuxt-community/axios-module/commit/3ae5416)) -* **defaults:** set proper Accept-Encoding for server side ([#176](https://github.com/nuxt-community/axios-module/issues/176)) ([c84fb56](https://github.com/nuxt-community/axios-module/commit/c84fb56)) - - - - -## [5.3.4](https://github.com/nuxt-community/axios-module/compare/v5.3.3...v5.3.4) (2018-10-30) - - - - -## [5.3.3](https://github.com/nuxt-community/axios-module/compare/v5.3.2...v5.3.3) (2018-09-28) - - -### Bug Fixes - -* **package:** add missing types from index.d.ts ([3a06503](https://github.com/nuxt-community/axios-module/commit/3a06503)) - - - - -## [5.3.2](https://github.com/nuxt-community/axios-module/compare/v5.3.1...v5.3.2) (2018-09-21) - - -### Bug Fixes - -* **types:** replace AxiosPromise to Promise ([#162](https://github.com/nuxt-community/axios-module/issues/162)) ([5fd9214](https://github.com/nuxt-community/axios-module/commit/5fd9214)) - - - - -## [5.3.1](https://github.com/nuxt-community/axios-module/compare/v5.3.0...v5.3.1) (2018-03-31) - - - - -# [5.3.0](https://github.com/nuxt-community/axios-module/compare/v5.2.0...v5.3.0) (2018-03-31) - - -### Features - -* CLI improvements ([481e6da](https://github.com/nuxt-community/axios-module/commit/481e6da)) - - - - -# [5.2.0](https://github.com/nuxt-community/axios-module/compare/v5.1.1...v5.2.0) (2018-03-31) - - -### Bug Fixes - -* **progress:** onProgress when currentRequests is zero ([#118](https://github.com/nuxt-community/axios-module/issues/118)) ([a90236e](https://github.com/nuxt-community/axios-module/commit/a90236e)) - - -### Features - -* consola integration ([4ec3b5d](https://github.com/nuxt-community/axios-module/commit/4ec3b5d)) - - - - -## [5.1.1](https://github.com/nuxt-community/axios-module/compare/v5.1.0...v5.1.1) (2018-03-06) - - -### Bug Fixes - -* **progress:** handle division by zero ([#117](https://github.com/nuxt-community/axios-module/issues/117)) ([040eaf7](https://github.com/nuxt-community/axios-module/commit/040eaf7)), closes [#166](https://github.com/nuxt-community/axios-module/issues/166) - - - - -# [5.1.0](https://github.com/nuxt-community/axios-module/compare/v5.0.1...v5.1.0) (2018-03-05) - - -### Features - -* allow disable progress per request. closes [#112](https://github.com/nuxt-community/axios-module/issues/112). ([1530bb6](https://github.com/nuxt-community/axios-module/commit/1530bb6)) -* disable https for localhost url ([#93](https://github.com/nuxt-community/axios-module/issues/93)) ([dd67734](https://github.com/nuxt-community/axios-module/commit/dd67734)) - - - - -## [5.0.1](https://github.com/nuxt-community/axios-module/compare/v5.0.0...v5.0.1) (2018-02-08) - - -### Bug Fixes - -* don't mutate env.API_URL ([a8ea331](https://github.com/nuxt-community/axios-module/commit/a8ea331)) - - - - -# [5.0.0](https://github.com/nuxt-community/axios-module/compare/v5.0.0-rc.2...v5.0.0) (2018-02-04) - - -### Bug Fixes - -* **progress:** finish on fail ([ea7b569](https://github.com/nuxt-community/axios-module/commit/ea7b569)) - - -### Features - -* https option ([#57](https://github.com/nuxt-community/axios-module/issues/57)) ([9ecb547](https://github.com/nuxt-community/axios-module/commit/9ecb547)) -* passing options via proxy option ([a923db3](https://github.com/nuxt-community/axios-module/commit/a923db3)) -* support retry with axios-retry ([7221cac](https://github.com/nuxt-community/axios-module/commit/7221cac)), closes [#77](https://github.com/nuxt-community/axios-module/issues/77) - - - - -# [5.0.0-rc.2](https://github.com/nuxt-community/axios-module/compare/v5.0.0-rc.1...v5.0.0-rc.2) (2018-01-29) - - -### Bug Fixes - -* **package:** require [@nuxtjs](https://github.com/nuxtjs)/proxy as a peerDependency ([fd1ef47](https://github.com/nuxt-community/axios-module/commit/fd1ef47)) -* support dynamic API_URL for SSR ([ea4882a](https://github.com/nuxt-community/axios-module/commit/ea4882a)) - - - - -# [5.0.0-rc.1](https://github.com/nuxt-community/axios-module/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2018-01-28) - - -### Bug Fixes - -* **progress:** ensure $loading is valid ([cbdc586](https://github.com/nuxt-community/axios-module/commit/cbdc586)) - - - - -# [5.0.0-rc.0](https://github.com/nuxt-community/axios-module/compare/v5.0.0-alpha.1...v5.0.0-rc.0) (2018-01-28) - - -### Features - -* support proxy ([0d3be17](https://github.com/nuxt-community/axios-module/commit/0d3be17)) - - - - -# [5.0.0-alpha.1](https://github.com/nuxt-community/axios-module/compare/v5.0.0-alpha.0...v5.0.0-alpha.1) (2018-01-28) - - -### Features - -* integrate with nuxt progress bar ([41a0964](https://github.com/nuxt-community/axios-module/commit/41a0964)) - - - - -# [5.0.0-alpha.0](https://github.com/nuxt-community/axios-module/compare/v4.5.2...v5.0.0-alpha.0) (2018-01-28) - - -### Code Refactoring - -* a better and more stable way to specify baseURL and browserBaseURL options ([533cf4e](https://github.com/nuxt-community/axios-module/commit/533cf4e)) - - -### Features - -* interceptor helpers ([fa3eb47](https://github.com/nuxt-community/axios-module/commit/fa3eb47)) -* rewrite plugin ([647b58f](https://github.com/nuxt-community/axios-module/commit/647b58f)) - - -### BREAKING CHANGES - -* prefix should be set to `/api` for backward compability. refer to new docs. - - - - -## [4.5.2](https://github.com/nuxt-community/axios-module/compare/v4.5.1...v4.5.2) (2017-12-29) - - - - -## [4.5.1](https://github.com/nuxt-community/axios-module/compare/v4.5.0...v4.5.1) (2017-12-29) - - - - -# [4.5.0](https://github.com/nuxt-community/axios-module/compare/v4.4.0...v4.5.0) (2017-11-16) - - -### Bug Fixes - -* link to the proxy page ([5449939](https://github.com/nuxt-community/axios-module/commit/5449939)) - - -### Features - -* disable sefault error handler ([#44](https://github.com/nuxt-community/axios-module/issues/44)) ([f1e95ff](https://github.com/nuxt-community/axios-module/commit/f1e95ff)) - - - - -# [4.4.0](https://github.com/nuxt-community/axios-module/compare/v4.3.1...v4.4.0) (2017-09-30) - - -### Features - -* **proxyHeader:** proxyHeadersIgnore option ([7c13655](https://github.com/nuxt-community/axios-module/commit/7c13655)) - - - - -## [4.3.1](https://github.com/nuxt-community/axios-module/compare/v4.3.0...v4.3.1) (2017-09-28) - - - - -# [4.3.0](https://github.com/nuxt-community/axios-module/compare/v4.2.1...v4.3.0) (2017-09-11) - - -### Features - -* don't rely on hostname for default values ([dadd7d8](https://github.com/nuxt-community/axios-module/commit/dadd7d8)) - - - - -## [4.2.1](https://github.com/nuxt-community/axios-module/compare/v4.2.0...v4.2.1) (2017-09-08) - - - - -# [4.2.0](https://github.com/nuxt-community/axios-module/compare/v4.1.1...v4.2.0) (2017-09-08) - - -### Features - -* pass ctx to errorHandlers ([c70749a](https://github.com/nuxt-community/axios-module/commit/c70749a)) - - - - -## [4.1.1](https://github.com/nuxt-community/axios-module/compare/v4.1.0...v4.1.1) (2017-09-06) - - -### Bug Fixes - -* delete accept header ([2f04e30](https://github.com/nuxt-community/axios-module/commit/2f04e30)), closes [#12](https://github.com/nuxt-community/axios-module/issues/12) - - - - -# [4.1.0](https://github.com/nuxt-community/axios-module/compare/v4.0.1...v4.1.0) (2017-09-06) - - -### Bug Fixes - -* inject $axios in current ctx ([356b31f](https://github.com/nuxt-community/axios-module/commit/356b31f)) - - -### Features - -* add options.init ([8e0c0e8](https://github.com/nuxt-community/axios-module/commit/8e0c0e8)) - - -### Performance Improvements - -* move init outside of plugin ([bcd4710](https://github.com/nuxt-community/axios-module/commit/bcd4710)) - - - - -## [4.0.1](https://github.com/nuxt-community/axios-module/compare/v4.0.0...v4.0.1) (2017-09-04) - - -### Bug Fixes - -* **package:** make nuxt devDependency ([a36a886](https://github.com/nuxt-community/axios-module/commit/a36a886)) - - - - -# [4.0.0](https://github.com/nuxt-community/axios-module/compare/v3.1.4...v4.0.0) (2017-08-30) - - -### Features - -* better baseURL message ([61432a1](https://github.com/nuxt-community/axios-module/commit/61432a1)) -* responseInterceptor and errorHandler ([b16d6bf](https://github.com/nuxt-community/axios-module/commit/b16d6bf)) -* upgrade for nuxt rc8 ([a341185](https://github.com/nuxt-community/axios-module/commit/a341185)) - - -### BREAKING CHANGES - -* app.axios is not available anymore (without $) should always use app.$axios - - - - -## [3.1.4](https://github.com/nuxt-community/axios-module/compare/v3.1.3...v3.1.4) (2017-08-13) - - -### Bug Fixes - -* create fresh objects for all default header scopes ([7ba3ae8](https://github.com/nuxt-community/axios-module/commit/7ba3ae8)) - - - - -## [3.1.3](https://github.com/nuxt-community/axios-module/compare/v3.1.1...v3.1.3) (2017-08-13) - -### Bug Fixes - -* **headers:** fix security bug with default request headers ([9355228](https://github.com/nuxt-community/axios-module/commit/9355228)) - - - - -## 3.1.1 (2017-08-13) - (repository moved from nuxt-community/modules) - -### Features - -* **axios:** fetch style requests - - -## [3.0.1](https://github.com/nuxt/modules/compare/@nuxtjs/axios@3.0.0...@nuxtjs/axios@3.0.1) (2017-07-25) - - -### Bug Fixes - -* **axios:** typo in default headers ([9697559](https://github.com/nuxt/modules/commit/9697559)) - - - - - -# [3.0.0](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.3.0...@nuxtjs/axios@3.0.0) (2017-07-25) - - -### Code Refactoring - -* **axios:** remove $ shortcut mixins ([1ab2bd6](https://github.com/nuxt/modules/commit/1ab2bd6)) - - -### BREAKING CHANGES - -* **axios:** You have to explicitly use `this.$axios.[method]` instead of `this.$[method]` - - - - - -# [2.3.0](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.4...@nuxtjs/axios@2.3.0) (2017-07-24) - - -### Features - -* **axios:** optionally disable error handling (#74) ([a195feb](https://github.com/nuxt/modules/commit/a195feb)) -* **axios:** redirectError ([4ce1a1c](https://github.com/nuxt/modules/commit/4ce1a1c)) - - - - - -## [2.2.4](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.3...@nuxtjs/axios@2.2.4) (2017-07-20) - - -### Bug Fixes - -* **axios:** temporary fix for nuxt/nuxt.js#1127 ([499b639](https://github.com/nuxt/modules/commit/499b639)), closes [nuxt/nuxt.js#1127](https://github.com/nuxt/nuxt.js/issues/1127) - - - - - -## [2.2.3](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.1...@nuxtjs/axios@2.2.3) (2017-07-19) - - -### Bug Fixes - -* **axios:** don't proxy Host header from request (#72, #39) ([61462ca](https://github.com/nuxt/modules/commit/61462ca)) - - - - - -## [2.2.2](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.1...@nuxtjs/axios@2.2.2) (2017-07-19) - - -### Bug Fixes - -* **axios:** don't proxy Host header from request (#72, #39) ([61462ca](https://github.com/nuxt/modules/commit/61462ca)) - - - - - -## [2.2.1](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.0...@nuxtjs/axios@2.2.1) (2017-07-15) - - -### Bug Fixes - -* **axios:** problems related to #65 ([4e7dd3f](https://github.com/nuxt/modules/commit/4e7dd3f)) - - - - - -## [2.0.3](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.0.2...@nuxtjs/axios@2.0.3) (2017-06-10) - - -### Bug Fixes - -* **axios:** Handle relative baseURL ([19b8453](https://github.com/nuxt/modules/commit/19b8453)) -* handle 0.0.0.0 host ([610e0f5](https://github.com/nuxt/modules/commit/610e0f5)) - - - - - -## [2.0.2](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.0.1...@nuxtjs/axios@2.0.2) (2017-06-09) - - -### Bug Fixes - -* **axios:** Node 6.x support ([54deac0](https://github.com/nuxt/modules/commit/54deac0)) - - - - - -## [2.0.1](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.0.0...@nuxtjs/axios@2.0.1) (2017-06-09) - - -### Bug Fixes - -* **axios:** ensure store exists before injecting ([23ad7b7](https://github.com/nuxt/modules/commit/23ad7b7)) - - - - - -# [2.0.0](https://github.com/nuxt/modules/compare/@nuxtjs/axios@1.0.2...@nuxtjs/axios@2.0.0) (2017-06-09) - - -### Bug Fixes - -* **axios:** install using Vue.use ([184651b](https://github.com/nuxt/modules/commit/184651b)) -* **axios:** req typo ([16f28b1](https://github.com/nuxt/modules/commit/16f28b1)) -* **axios:** use relative `API_URL` if same host and port else `API_URL` ([3421d19](https://github.com/nuxt/modules/commit/3421d19)) - - -### Features - -* **axios:** AXIOS_CREDENTIALS, AXIOS_SSR_HEADERS ([4dfdc2d](https://github.com/nuxt/modules/commit/4dfdc2d)) -* **axios:** don't append optional config into env ([fe189e8](https://github.com/nuxt/modules/commit/fe189e8)) -* **axios:** Easier API ([f54a434](https://github.com/nuxt/modules/commit/f54a434)) -* **axios:** New API ([0194226](https://github.com/nuxt/modules/commit/0194226)) -* **axios:** nuxt friendly errors for SSR ([65bc50f](https://github.com/nuxt/modules/commit/65bc50f)) - - -### BREAKING CHANGES - -* **axios:** API_PREFIX is deprecated. - - - - - -## [1.0.2](https://github.com/nuxt/modules/compare/@nuxtjs/axios@1.0.0...@nuxtjs/axios@1.0.2) (2017-05-29) - - -### Bug Fixes - -* **axios:** remove extra function call on computed prop ([cd9da0b](https://github.com/nuxt/modules/commit/cd9da0b)) - - - - - -## [1.0.1](https://github.com/nuxt/modules/compare/@nuxtjs/axios@1.0.0...@nuxtjs/axios@1.0.1) (2017-05-26) - - -### Bug Fixes - -* **axios:** remove extra function call on computed prop ([cd9da0b](https://github.com/nuxt/modules/commit/cd9da0b)) - - - - - -# 1.0.0 (2017-05-26) - - -### Features - -* initial migration to 1.0.0-alpha1 ([05c1b7a](https://github.com/nuxt/modules/commit/05c1b7a)) - - -### BREAKING CHANGES - -* New modules system is backward incompatible with nuxt-helpers style modules - - - - - -## 0.0.1 (2017-05-10) diff --git a/README.md b/README.md index e4d8dcf..9ab8b62 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 📦 Axios Module +# 📦 HTTP Module [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] @@ -7,7 +7,7 @@ [![Dependencies][david-dm-src]][david-dm-href] [![Standard JS][standard-js-src]][standard-js-href] -> Secure and Easy Axios integration with Nuxt.js +TODO ## ✅ Features @@ -19,15 +19,13 @@ ✓ Proxy request headers in SSR (Useful for auth) -✓ Fetch Style requests - -✓ Integrated with Nuxt.js Progressbar while making requests +✓ Integrated with Nuxt.js Progressbar while making requests (TODO) ✓ Integrated with [Proxy Module](https://github.com/nuxt-community/proxy-module) -✓ Auto retry requests with [axios-retry](https://github.com/softonic/axios-retry) +✓ Auto retry requests -📖 [**Read Documentation**](https://axios.nuxtjs.org) +📖 [**Read Documentation**](https://http.nuxtjs.org) (TODO) ## Development @@ -39,18 +37,18 @@ [MIT License](./LICENSE) -Copyright (c) Nuxt Community +Copyright (c) Nuxt.js Team -[npm-version-src]: https://img.shields.io/npm/dt/@nuxtjs/axios.svg?style=flat-square -[npm-version-href]: https://npmjs.com/package/@nuxtjs/axios -[npm-downloads-src]: https://img.shields.io/npm/v/@nuxtjs/axios/latest.svg?style=flat-square -[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/axios -[circle-ci-src]: https://img.shields.io/circleci/project/github/nuxt-community/axios-module.svg?style=flat-square -[circle-ci-href]: https://circleci.com/gh/nuxt-community/axios-module -[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/axios-module.svg?style=flat-square -[codecov-href]: https://codecov.io/gh/nuxt-community/axios-module -[david-dm-src]: https://david-dm.org/nuxt-community/axios-module/status.svg?style=flat-square -[david-dm-href]: https://david-dm.org/nuxt-community/axios-module +[npm-version-src]: https://img.shields.io/npm/dt/@nuxt/http.svg?style=flat-square +[npm-version-href]: https://npmjs.com/package/@nuxt/http +[npm-downloads-src]: https://img.shields.io/npm/v/@nuxt/http/latest.svg?style=flat-square +[npm-downloads-href]: https://npmjs.com/package/@nuxt/http +[circle-ci-src]: https://img.shields.io/circleci/project/github/nuxt/http-module.svg?style=flat-square +[circle-ci-href]: https://circleci.com/gh/nuxt/http-module +[codecov-src]: https://img.shields.io/codecov/c/github/nuxt/http-module.svg?style=flat-square +[codecov-href]: https://codecov.io/gh/nuxt/http-module +[david-dm-src]: https://david-dm.org/nuxt/http-module/status.svg?style=flat-square +[david-dm-href]: https://david-dm.org/nuxt/http-module [standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square [standard-js-href]: https://standardjs.com diff --git a/docs/README.md b/docs/README.md index 0cd4a20..9f1db1d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -22,7 +22,7 @@ ## Links -* [GitHub](https://github.com/nuxt-community/axios-module) +* [GitHub](https://github.com/nuxt/http-module) * [Release Notes](./CHANGELOG.md) * [Migration Guide](migration.md) * [Examples](https://axios.nuxtjs.org/usage.html) diff --git a/docs/extend.md b/docs/extend.md index 493f67e..a3e77aa 100644 --- a/docs/extend.md +++ b/docs/extend.md @@ -7,7 +7,7 @@ If you need to customize axios by registering interceptors and changing global c ```js { modules: [ - '@nuxtjs/axios', + '@nuxt/http', ], plugins: [ diff --git a/docs/migration.md b/docs/migration.md index ebc7b66..e69de29 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -1,30 +0,0 @@ -## From 4.x to 5.x - -**BaseURL options and handling have been completely rewritten.** - -Please refer to the latest docs. - -**Default prefix is now `/` instead of `/api`.** - -You have to explicitly add `/api/` in all requests. - -**`credentials` is now disabled by default.** - -For using old defaults: - -```js -{ - axios: { - prefix: '/api', - credentials: true - } -} -``` - -**Default error interceptor removed** - -**All lifecycle functions removed** - -You can now easily use a plugin to extend axios and add your custom logic there. - -Please see [Extending Axios](https://github.com/nuxt-community/axios-module#extending-axios) section in docs. diff --git a/docs/options.md b/docs/options.md index f244a5c..acf1629 100644 --- a/docs/options.md +++ b/docs/options.md @@ -57,7 +57,7 @@ You can easily integrate Axios with [Proxy Module](https://github.com/nuxt-commu ```js { modules: [ - '@nuxtjs/axios' + '@nuxt/http' ], axios: { diff --git a/docs/setup.md b/docs/setup.md index 552a319..12a9775 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -4,13 +4,13 @@ Install with yarn: ```bash -yarn add @nuxtjs/axios +yarn add @nuxt/http ``` Install with npm: ```bash -npm install @nuxtjs/axios +npm install @nuxt/http ``` **nuxt.config.js** @@ -18,7 +18,7 @@ npm install @nuxtjs/axios ```js module.exports = { modules: [ - '@nuxtjs/axios', + '@nuxt/http', ], axios: { diff --git a/package.json b/package.json index cf632a9..8141f0f 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "@nuxtjs/axios", - "version": "5.4.1", - "description": "Secure and easy axios integration with Nuxt.js", + "name": "@nuxt/http", + "version": "0.0.0", + "description": "HTTP Module for Nuxt.js", "license": "MIT", "contributors": [ "Pooya Parsa " ], "main": "lib/module.js", "types": "types/index.d.ts", - "repository": "https://github.com/nuxt-community/axios-module", + "repository": "https://github.com/nuxt/http-module", "publishConfig": { "access": "public" },