@nuxt/http
Advanced tools
Comparing version 0.5.11 to 0.5.12
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.5.12](https://github.com/nuxt/http/compare/v0.5.11...v0.5.12) (2020-09-01) | ||
### Bug Fixes | ||
* **types:** add missing types for `create` and `setBaseURL` ([#122](https://github.com/nuxt/http/issues/122)) ([c002aaa](https://github.com/nuxt/http/commit/c002aaa97c45fa5dfd91325a005fd5cc18a55b57)) | ||
### [0.5.11](https://github.com/nuxt/http/compare/v0.5.10...v0.5.11) (2020-08-20) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@nuxt/http", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "Universal HTTP Module for Nuxt.js", | ||
@@ -37,3 +37,2 @@ "repository": "nuxt/http", | ||
"codecov": "latest", | ||
"core-js": "2", | ||
"eslint": "latest", | ||
@@ -40,0 +39,0 @@ "eslint-config-standard": "latest", |
@@ -26,5 +26,5 @@ # HTTP Module | ||
[npm-version-href]: https://npmjs.com/package/@nuxt/http | ||
[npm-downloads-src]: https://flat.badgen.net/npm/dt/@nuxt/http | ||
[npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxt/http | ||
[npm-downloads-href]: https://npmjs.com/package/@nuxt/http | ||
[checks-src]: https://flat.badgen.net/github/checks/nuxt/http/dev | ||
[checks-src]: https://flat.badgen.net/github/checks/nuxt/http/master | ||
[checks-href]: https://github.com/nuxt/http/actions | ||
@@ -31,0 +31,0 @@ [codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt/http |
@@ -108,2 +108,8 @@ import Vue from 'vue' | ||
/** | ||
* Set the baseURL for all subsequent requests. | ||
* @param baseURL - the base URL (e.g. `https://myapi.com/`) | ||
*/ | ||
setBaseURL(baseURL: string): void | ||
/** | ||
* Set a header on all subsequent requests. | ||
@@ -150,2 +156,7 @@ * @param name - Header name. | ||
onError(hook: (error: ky.HTTPError) => void): void | ||
/** | ||
* If you need to create your own ky instance which based on $http defaults, you can use the create(options) method. | ||
*/ | ||
create(options: Partial<Options>): NuxtHTTPInstance | ||
} | ||
@@ -152,0 +163,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31298
19
499