Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxt/http

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/http - npm Package Compare versions

Comparing version 0.5.11 to 0.5.12

7

CHANGELOG.md

@@ -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 @@

3

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc