-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
45 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.* | ||
.*/ | ||
coverage/ | ||
node_modules/ | ||
npm-debug.log | ||
|
1 change: 0 additions & 1 deletion
1
...fdc4660e9142b0c569aad5cbcf4f7794ec219/code/cache/b3471d04cf7bf016f20d61841675a5d130cbe1ad
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...fdc4660e9142b0c569aad5cbcf4f7794ec219/code/cache/c13d98d6589f7c216f4077f37d9ab71e63095109
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...fdc4660e9142b0c569aad5cbcf4f7794ec219/code/cache/c565e0f4e683cfdab008dbf3cd5e62cea0900dfa
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...569aad5cbcf4f7794ec219/semanticDiagnostics/cache/b3471d04cf7bf016f20d61841675a5d130cbe1ad
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...569aad5cbcf4f7794ec219/semanticDiagnostics/cache/c13d98d6589f7c216f4077f37d9ab71e63095109
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...569aad5cbcf4f7794ec219/semanticDiagnostics/cache/c565e0f4e683cfdab008dbf3cd5e62cea0900dfa
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...69aad5cbcf4f7794ec219/syntacticDiagnostics/cache/b3471d04cf7bf016f20d61841675a5d130cbe1ad
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...69aad5cbcf4f7794ec219/syntacticDiagnostics/cache/c13d98d6589f7c216f4077f37d9ab71e63095109
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...69aad5cbcf4f7794ec219/syntacticDiagnostics/cache/c565e0f4e683cfdab008dbf3cd5e62cea0900dfa
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
import { IOptions } from 'search-params' | ||
import { IToken } from './tokeniser' | ||
import { IOptions } from 'search-params'; | ||
import { IToken } from './tokeniser'; | ||
export interface IPartialTestOptions { | ||
caseSensitive?: boolean | ||
delimited?: boolean | ||
queryParams?: IOptions | ||
caseSensitive?: boolean; | ||
delimited?: boolean; | ||
queryParams?: IOptions; | ||
} | ||
export interface ITestOptions { | ||
caseSensitive?: boolean | ||
queryParams?: IOptions | ||
caseSensitive?: boolean; | ||
queryParams?: IOptions; | ||
} | ||
export interface IBuildOptions { | ||
ignoreConstraints?: boolean | ||
ignoreSearch?: boolean | ||
queryParams?: IOptions | ||
ignoreConstraints?: boolean; | ||
ignoreSearch?: boolean; | ||
queryParams?: IOptions; | ||
} | ||
export declare type TestMatch = object | null | ||
export declare type TestMatch = object | null; | ||
export default class Path { | ||
static createPath(path: any): Path | ||
path: string | ||
tokens: IToken[] | ||
hasUrlParams: boolean | ||
hasSpatParam: boolean | ||
hasMatrixParams: boolean | ||
hasQueryParams: boolean | ||
spatParams: string[] | ||
urlParams: string[] | ||
queryParams: string[] | ||
params: string[] | ||
source: string | ||
constructor(path: any) | ||
isQueryParam(name: string): boolean | ||
test(path: any, opts: any): TestMatch | ||
partialTest(path: string, opts: IPartialTestOptions): TestMatch | ||
build(params?: object, opts?: IBuildOptions): string | ||
private getParams(type) | ||
private urlTest(path, source, { caseSensitive }?) | ||
static createPath(path: any): Path; | ||
path: string; | ||
tokens: IToken[]; | ||
hasUrlParams: boolean; | ||
hasSpatParam: boolean; | ||
hasMatrixParams: boolean; | ||
hasQueryParams: boolean; | ||
spatParams: string[]; | ||
urlParams: string[]; | ||
queryParams: string[]; | ||
params: string[]; | ||
source: string; | ||
constructor(path: any); | ||
isQueryParam(name: string): boolean; | ||
test(path: any, opts: any): TestMatch; | ||
partialTest(path: string, opts: IPartialTestOptions): TestMatch; | ||
build(params?: object, opts?: IBuildOptions): string; | ||
private getParams(type); | ||
private urlTest(path, source, {caseSensitive}?); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export declare const defaultOrConstrained: (match: string) => string | ||
export declare type RegExpFactory = (match: any) => RegExp | ||
export declare const defaultOrConstrained: (match: string) => string; | ||
export declare type RegExpFactory = (match: any) => RegExp; | ||
export interface IRule { | ||
name: string | ||
pattern: RegExp | ||
regex?: RegExp | RegExpFactory | ||
name: string; | ||
pattern: RegExp; | ||
regex?: RegExp | RegExpFactory; | ||
} | ||
declare const rules: IRule[] | ||
export default rules | ||
declare const rules: IRule[]; | ||
export default rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export interface IToken { | ||
type: string | ||
match: string | ||
val: any | ||
otherVal: any | ||
regex: RegExp | ||
type: string; | ||
match: string; | ||
val: any; | ||
otherVal: any; | ||
regex: RegExp; | ||
} | ||
declare const tokenise: (str: string, tokens?: IToken[]) => IToken[] | ||
export default tokenise | ||
declare const tokenise: (str: string, tokens?: IToken[]) => IToken[]; | ||
export default tokenise; |