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

fets

Package Overview
Dependencies
Maintainers
1
Versions
707
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fets - npm Package Compare versions

Comparing version 0.8.1-alpha-20240611081545-285d13e9d358a9063993a24bc907fc2cc1d62328 to 0.8.1

2

package.json
{
"name": "fets",
"version": "0.8.1-alpha-20240611081545-285d13e9d358a9063993a24bc907fc2cc1d62328",
"version": "0.8.1",
"description": "TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -5,4 +5,4 @@ /// <reference types="urlpattern-polyfill" />

import type { ErrorHandler, FetchAPI, ServerAdapter, ServerAdapterOptions, ServerAdapterPlugin, ServerAdapterRequestHandler } from '@whatwg-node/server';
import { ClientTypedResponsePromise } from './client/clientResponse.js';
import { ClientRequestInit } from './client/types.js';
import type { ClientTypedResponsePromise } from './client/clientResponse.js';
import type { ClientRequestInit } from './client/types.js';
import type { SwaggerUIOpts } from './plugins/openapi.js';

@@ -169,9 +169,18 @@ import type { HTTPMethod, StatusCode, TypedRequest, TypedResponse, TypedResponseWithJSONStatusMap } from './typed-fetch.js';

};
type ObjectSchemaWithPrimitiveProperties = JSONSchema & {
type: 'object';
properties: Record<string, {
type: 'string' | 'number' | 'integer' | 'boolean' | 'null';
}>;
};
type ObjectSchema = JSONSchema & {
type: 'object';
};
export type RouteSchemas = {
request?: {
headers?: JSONSchema;
params?: JSONSchema;
query?: JSONSchema;
headers?: ObjectSchemaWithPrimitiveProperties;
params?: ObjectSchemaWithPrimitiveProperties;
query?: ObjectSchema;
json?: JSONSchema;
formData?: JSONSchema;
formData?: ObjectSchema;
};

@@ -178,0 +187,0 @@ responses?: StatusCodeMap<JSONSchema>;

Sorry, the diff of this file is not supported yet

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