Comparing version 0.1.0-rc.8 to 0.1.0-rc.9
@@ -8,6 +8,6 @@ import { TypeCheck } from '@sinclair/typebox/compiler'; | ||
export declare const clone: <T extends Object | any[] = Object | any[]>(value: T) => T; | ||
export declare const getPath: (url: string, queryIndex: number) => string; | ||
export declare const mapQuery: (url: string, queryIndex: number) => Record<string, string>; | ||
export declare const getPath: (url: string, queryIndex?: number) => string; | ||
export declare const mapQuery: (url: string, queryIndex?: number) => Record<string, string>; | ||
export declare const mergeDeep: <A extends Object = Object, B extends Object = Object>(target: A, source: B) => DeepMergeTwoTypes<A, B>; | ||
export declare const createValidationError: (type: string, validator: TypeCheck<any>, value: any) => Error; | ||
export declare const getSchemaValidator: <Schema extends TSchema | undefined = undefined>(schema: Schema, additionalProperties?: boolean) => TypeCheck<NonNullable<Schema>> | undefined; |
@@ -35,5 +35,5 @@ "use strict"; | ||
exports.clone = clone; | ||
const getPath = (url, queryIndex) => url.substring(url.indexOf('/', 11), queryIndex === -1 ? url.length : queryIndex); | ||
const getPath = (url, queryIndex = url.indexOf('?')) => url.substring(url.indexOf('/', 11), queryIndex === -1 ? url.length : queryIndex); | ||
exports.getPath = getPath; | ||
const mapQuery = (url, queryIndex) => { | ||
const mapQuery = (url, queryIndex = url.indexOf('?')) => { | ||
if (queryIndex === -1) | ||
@@ -40,0 +40,0 @@ return {}; |
@@ -8,6 +8,6 @@ import { TypeCheck } from '@sinclair/typebox/compiler'; | ||
export declare const clone: <T extends Object | any[] = Object | any[]>(value: T) => T; | ||
export declare const getPath: (url: string, queryIndex: number) => string; | ||
export declare const mapQuery: (url: string, queryIndex: number) => Record<string, string>; | ||
export declare const getPath: (url: string, queryIndex?: number) => string; | ||
export declare const mapQuery: (url: string, queryIndex?: number) => Record<string, string>; | ||
export declare const mergeDeep: <A extends Object = Object, B extends Object = Object>(target: A, source: B) => DeepMergeTwoTypes<A, B>; | ||
export declare const createValidationError: (type: string, validator: TypeCheck<any>, value: any) => Error; | ||
export declare const getSchemaValidator: <Schema extends TSchema | undefined = undefined>(schema: Schema, additionalProperties?: boolean) => TypeCheck<NonNullable<Schema>> | undefined; |
@@ -29,4 +29,4 @@ import { TypeCompiler } from '@sinclair/typebox/compiler'; | ||
export const clone = (value) => [value][0]; | ||
export const getPath = (url, queryIndex) => url.substring(url.indexOf('/', 11), queryIndex === -1 ? url.length : queryIndex); | ||
export const mapQuery = (url, queryIndex) => { | ||
export const getPath = (url, queryIndex = url.indexOf('?')) => url.substring(url.indexOf('/', 11), queryIndex === -1 ? url.length : queryIndex); | ||
export const mapQuery = (url, queryIndex = url.indexOf('?')) => { | ||
if (queryIndex === -1) | ||
@@ -33,0 +33,0 @@ return {}; |
{ | ||
"name": "elysia", | ||
"description": "Fast, and friendly Bun web framework", | ||
"version": "0.1.0-rc.8", | ||
"version": "0.1.0-rc.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
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
172886