New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cfworker/web

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfworker/web - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

2

dist/application.d.ts

@@ -1,2 +0,2 @@

import { Middleware } from './middleware';
import { Middleware } from './middleware.js';
export declare class Application {

@@ -3,0 +3,0 @@ private readonly middleware;

import statuses from 'statuses';
import { Context } from './context';
import { HttpError } from './http-error';
import { composeMiddleware } from './middleware';
import { Context } from './context.js';
import { HttpError } from './http-error.js';
import { composeMiddleware } from './middleware.js';
const resolved = Promise.resolve();

@@ -6,0 +6,0 @@ export class Application {

@@ -1,4 +0,4 @@

import { Cookies } from './cookies';
import { Req } from './req';
import { ResponseBuilder } from './response-builder';
import { Cookies } from './cookies.js';
import { Req } from './req.js';
import { ResponseBuilder } from './response-builder.js';
export declare class Context {

@@ -5,0 +5,0 @@ private readonly event;

@@ -1,4 +0,4 @@

import { Cookies } from './cookies';
import { Req } from './req';
import { ResponseBuilder } from './response-builder';
import { Cookies } from './cookies.js';
import { Req } from './req.js';
import { ResponseBuilder } from './response-builder.js';
export class Context {

@@ -5,0 +5,0 @@ constructor(event) {

@@ -1,13 +0,13 @@

export * from './accepts';
export * from './application';
export * from './context';
export * from './cookies';
export * from './http-error';
export * from './middleware';
export * from './req';
export * from './response-builder';
export * from './router';
export * from './to-object';
export * from './validate';
export * from './accepts.js';
export * from './application.js';
export * from './context.js';
export * from './cookies.js';
export * from './http-error.js';
export * from './middleware.js';
export * from './req.js';
export * from './response-builder.js';
export * from './router.js';
export * from './to-object.js';
export * from './validate.js';
import escape_html from 'escape-html';
export declare const htmlEncode: typeof escape_html;

@@ -1,13 +0,13 @@

export * from './accepts';
export * from './application';
export * from './context';
export * from './cookies';
export * from './http-error';
export * from './middleware';
export * from './req';
export * from './response-builder';
export * from './router';
export * from './to-object';
export * from './validate';
export * from './accepts.js';
export * from './application.js';
export * from './context.js';
export * from './cookies.js';
export * from './http-error.js';
export * from './middleware.js';
export * from './req.js';
export * from './response-builder.js';
export * from './router.js';
export * from './to-object.js';
export * from './validate.js';
import escape_html from 'escape-html';
export const htmlEncode = escape_html;
import compose, { Middleware as GenericMiddleware } from 'koa-compose';
import { Context } from './context';
import { Context } from './context.js';
export declare type Middleware = GenericMiddleware<Context>;
export declare const composeMiddleware: typeof compose;
import { Reviver } from 'secure-json-parse';
import { Accepts } from './accepts';
import { Accepts } from './accepts.js';
export declare class Req {

@@ -4,0 +4,0 @@ readonly raw: Request;

import { safeParse } from 'secure-json-parse';
import { Accepts } from './accepts';
import { Accepts } from './accepts.js';
export class Req {

@@ -4,0 +4,0 @@ constructor(request) {

@@ -1,3 +0,3 @@

import { Context } from './context';
import { Middleware } from './middleware';
import { Context } from './context.js';
import { Middleware } from './middleware.js';
export declare const Method: (method: string) => ({ req }: Context) => boolean;

@@ -4,0 +4,0 @@ export declare const Get: ({ req }: Context) => boolean;

import { pathToRegexp } from 'path-to-regexp';
import { HttpError } from './http-error';
import { composeMiddleware } from './middleware';
import { HttpError } from './http-error.js';
import { composeMiddleware } from './middleware.js';
export const Method = (method) => {

@@ -5,0 +5,0 @@ method = method.toUpperCase();

import { OutputUnit, Schema } from '@cfworker/json-schema';
import { Middleware } from './middleware';
import { Middleware } from './middleware.js';
export interface RequestSchemas {

@@ -4,0 +4,0 @@ body?: Schema;

import { dereference, validate as schemaValidate } from '@cfworker/json-schema';
import { HttpError } from './http-error';
import { toObject } from './to-object';
import { HttpError } from './http-error.js';
import { toObject } from './to-object.js';
const draft = '2019-09';

@@ -5,0 +5,0 @@ const hasBody = {

{
"name": "@cfworker/web",
"version": "1.5.0",
"version": "1.6.0",
"description": "Web framework for Cloudflare Workers and service workers, inspired by Koa and fastify",

@@ -36,4 +36,4 @@ "keywords": [

"dependencies": {
"@cfworker/json-schema": "^1.5.0",
"@cfworker/worker-types": "^1.2.10",
"@cfworker/json-schema": "^1.6.0",
"@cfworker/worker-types": "^1.6.0",
"@cloudflare/workers-types": "^2.0.0",

@@ -49,3 +49,3 @@ "@types/cookie": "^0.4.0",

"negotiator": "^0.6.2",
"path-to-regexp": "^6.1.0",
"path-to-regexp": "^6.2.0",
"secure-json-parse": "^2.1.0",

@@ -55,10 +55,10 @@ "statuses": "^1.5.0"

"devDependencies": {
"@cfworker/dev": "^1.2.18",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@cfworker/dev": "^1.6.0",
"@types/chai": "^4.2.12",
"@types/mocha": "^8.0.3",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"typescript": "^3.9.5"
"mocha": "^8.1.3",
"typescript": "^4.0.3"
},
"gitHead": "aa4ac6b86a495a2795399e3b16f47268e199e96f"
"gitHead": "cd404cb5bcce9b5ebb740d8b96fa12f6b1ddc701"
}
import statuses from 'statuses';
import { Context } from './context';
import { HttpError } from './http-error';
import { composeMiddleware, Middleware } from './middleware';
import { Context } from './context.js';
import { HttpError } from './http-error.js';
import { composeMiddleware, Middleware } from './middleware.js';

@@ -6,0 +6,0 @@ const resolved = Promise.resolve();

@@ -1,4 +0,4 @@

import { Cookies } from './cookies';
import { Req } from './req';
import { ResponseBuilder } from './response-builder';
import { Cookies } from './cookies.js';
import { Req } from './req.js';
import { ResponseBuilder } from './response-builder.js';

@@ -5,0 +5,0 @@ export class Context {

@@ -1,13 +0,13 @@

export * from './accepts';
export * from './application';
export * from './context';
export * from './cookies';
export * from './http-error';
export * from './middleware';
export * from './req';
export * from './response-builder';
export * from './router';
export * from './to-object';
export * from './validate';
export * from './accepts.js';
export * from './application.js';
export * from './context.js';
export * from './cookies.js';
export * from './http-error.js';
export * from './middleware.js';
export * from './req.js';
export * from './response-builder.js';
export * from './router.js';
export * from './to-object.js';
export * from './validate.js';
import escape_html from 'escape-html';
export const htmlEncode = escape_html;
import compose, { Middleware as GenericMiddleware } from 'koa-compose';
import { Context } from './context';
import { Context } from './context.js';

@@ -4,0 +4,0 @@ export type Middleware = GenericMiddleware<Context>;

import { Reviver, safeParse } from 'secure-json-parse';
import { Accepts } from './accepts';
import { Accepts } from './accepts.js';

@@ -4,0 +4,0 @@ export class Req {

import { Key, pathToRegexp } from 'path-to-regexp';
import { Context } from './context';
import { HttpError } from './http-error';
import { composeMiddleware, Middleware } from './middleware';
import { Context } from './context.js';
import { HttpError } from './http-error.js';
import { composeMiddleware, Middleware } from './middleware.js';

@@ -6,0 +6,0 @@ export const Method = (method: string) => {

@@ -7,5 +7,5 @@ import {

} from '@cfworker/json-schema';
import { HttpError } from './http-error';
import { Middleware } from './middleware';
import { toObject } from './to-object';
import { HttpError } from './http-error.js';
import { Middleware } from './middleware.js';
import { toObject } from './to-object.js';

@@ -12,0 +12,0 @@ export interface RequestSchemas {

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