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

@compas/server

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/server - npm Package Compare versions

Comparing version 0.0.241 to 0.0.242

4

package.json
{
"name": "@compas/server",
"version": "0.0.241",
"version": "0.0.242",
"description": "Koa server and common middleware",

@@ -21,3 +21,3 @@ "main": "./index.js",

"dependencies": {
"@compas/stdlib": "0.0.241",
"@compas/stdlib": "0.0.242",
"@types/formidable": "2.0.5",

@@ -24,0 +24,0 @@ "@types/koa": "2.13.6",

@@ -12,3 +12,3 @@ /**

* @property {ErrorHandlerOptions|undefined} [errorOptions] Flexible error handling
* options
* options
* @property {HeaderOptions|undefined} [headers] Argument for defaultHeader middleware.

@@ -38,3 +38,3 @@ * Can only be completely disabled by setting `disableHeaders`.

* @property {string|((ctx: Koa.Context) => (string|undefined))} [origin]
* 'Access-Control-Allow-Origin', defaults to the 'Origin' header.
* 'Access-Control-Allow-Origin', defaults to the 'Origin' header.
* @property {string|string[]|undefined} [exposeHeaders] 'Access-Control-Expose-Headers'

@@ -44,3 +44,3 @@ * @property {string|number|undefined} [maxAge] 'Access-Control-Max-Age' in seconds

* @property {string|string[]|undefined} [allowMethods] 'Access-Control-Allow-Methods',
* defaults to ["DELETE", "GET", "PUT", "POST", "PATCH", "HEAD", "OPTIONS"]
* defaults to ["DELETE", "GET", "PUT", "POST", "PATCH", "HEAD", "OPTIONS"]
* @property {string|string[]|undefined} [allowHeaders] 'Access-Control-Allow-Headers'

@@ -47,0 +47,0 @@ */

@@ -23,3 +23,3 @@ import { isProduction } from "@compas/stdlib";

* @property {ErrorHandlerOptions|undefined} [errorOptions] Flexible error handling
* options
* options
* @property {HeaderOptions|undefined} [headers] Argument for defaultHeader middleware.

@@ -52,3 +52,3 @@ * Can only be completely disabled by setting `disableHeaders`.

* @property {string|((ctx: Koa.Context) => (string|undefined))} [origin]
* 'Access-Control-Allow-Origin', defaults to the 'Origin' header.
* 'Access-Control-Allow-Origin', defaults to the 'Origin' header.
* @property {string|string[]|undefined} [exposeHeaders] 'Access-Control-Expose-Headers'

@@ -58,3 +58,3 @@ * @property {string|number|undefined} [maxAge] 'Access-Control-Max-Age' in seconds

* @property {string|string[]|undefined} [allowMethods] 'Access-Control-Allow-Methods',
* defaults to ["DELETE", "GET", "PUT", "POST", "PATCH", "HEAD", "OPTIONS"]
* defaults to ["DELETE", "GET", "PUT", "POST", "PATCH", "HEAD", "OPTIONS"]
* @property {string|string[]|undefined} [allowHeaders] 'Access-Control-Allow-Headers'

@@ -61,0 +61,0 @@ */

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