Comparing version 2.1.0 to 2.1.1
@@ -26,3 +26,3 @@ export interface Request { | ||
HEAD = "HEAD", | ||
UPDATE = "UPDATE", | ||
UPDATE = "UPDATE" | ||
} | ||
@@ -29,0 +29,0 @@ export interface Middleware<Request, Response> { |
@@ -197,2 +197,3 @@ /*! ***************************************************************************** | ||
return function (request, next) { | ||
var _a; | ||
if (override) { | ||
@@ -205,3 +206,2 @@ request.headers[name] = getValue(request); | ||
return next(); | ||
var _a; | ||
}; | ||
@@ -208,0 +208,0 @@ } |
@@ -201,2 +201,3 @@ 'use strict'; | ||
return function (request, next) { | ||
var _a; | ||
if (override) { | ||
@@ -209,3 +210,2 @@ request.headers[name] = getValue(request); | ||
return next(); | ||
var _a; | ||
}; | ||
@@ -212,0 +212,0 @@ } |
{ | ||
"name": "portals", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Client-side HTTP requests with middleware support.", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
"build": "rollup -c", | ||
"watch": "npm run build -- --watch", | ||
"watch": "rollup -cw", | ||
"test": "jest", | ||
@@ -41,9 +41,9 @@ "tdd": "jest --watch", | ||
"devDependencies": { | ||
"@types/jest": "^21.1.9", | ||
"jest": "^22.0.4", | ||
"rollup": "^0.53.0", | ||
"@types/jest": "^21.1.10", | ||
"jest": "^22.4.4", | ||
"rollup": "^0.53.4", | ||
"rollup-plugin-typescript2": "^0.9.0", | ||
"rollup-watch": "^4.3.1", | ||
"ts-jest": "^22.0.0", | ||
"typescript": "^2.6.2" | ||
"ts-jest": "^22.4.6", | ||
"typescript": "^2.9.2" | ||
}, | ||
@@ -50,0 +50,0 @@ "dependencies": {}, |
![Portals](logo.png) | ||
[![Build Status](https://travis-ci.org/HelpfulHuman/Portals.svg?branch=master)](https://travis-ci.org/HelpfulHuman/Portals) [![Join the chat at https://gitter.im/HelpfulHuman/Portals](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/HelpfulHuman/Portals?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
Portals is a library for making XHR requests with middleware support. | ||
@@ -130,2 +128,2 @@ | ||
// { headers: { Authorization: "Bearer ${apiToken}" } } | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
29129
129