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

elysia

Package Overview
Dependencies
Maintainers
1
Versions
444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Compare versions

Comparing version 0.1.0-rc.8 to 0.1.0-rc.9

4

dist/cjs/utils.d.ts

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

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