@makeflow/gateway
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,3 +5,3 @@ import { Context, Next } from 'koa'; | ||
type: string; | ||
match: string | RegExp | { | ||
match?: string | RegExp | { | ||
path?: string | RegExp; | ||
@@ -8,0 +8,0 @@ headers?: Dict<string | RegExp | boolean>; |
@@ -17,3 +17,3 @@ "use strict"; | ||
match(context) { | ||
let { match } = this.descriptor; | ||
let { match = '' } = this.descriptor; | ||
if (typeof match === 'string' || match instanceof RegExp) { | ||
@@ -20,0 +20,0 @@ match = { |
{ | ||
"name": "@makeflow/gateway", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -12,3 +12,3 @@ import {Context, Next} from 'koa'; | ||
type: string; | ||
match: | ||
match?: | ||
| string | ||
@@ -38,3 +38,3 @@ | RegExp | ||
match(context: Context): string | undefined { | ||
let {match} = this.descriptor; | ||
let {match = ''} = this.descriptor; | ||
@@ -41,0 +41,0 @@ if (typeof match === 'string' || match instanceof RegExp) { |
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
42999