Socket
Socket
Sign inDemoInstall

@halsp/cors

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@halsp/cors - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/cors.middleware.d.ts

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

import { Middleware } from "@halsp/common";
import { Middleware } from "@halsp/core";
import { Options } from "./options";

@@ -3,0 +3,0 @@ export declare class CorsMiddleware extends Middleware {

@@ -19,5 +19,5 @@ "use strict";

exports.CorsMiddleware = void 0;
const common_1 = require("@halsp/common");
const core_1 = require("@halsp/core");
const methods_1 = require("@halsp/methods");
class CorsMiddleware extends common_1.Middleware {
class CorsMiddleware extends core_1.Middleware {
constructor(options) {

@@ -24,0 +24,0 @@ super();

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

import { Context } from "@halsp/common";
import { Context } from "@halsp/core";
export interface Options {

@@ -3,0 +3,0 @@ allowMethods?: string | string[];

{
"name": "@halsp/cors",
"version": "1.0.1",
"version": "1.0.2",
"description": "Halsp 跨域插件",

@@ -36,5 +36,5 @@ "engines": {

"dependencies": {
"@halsp/common": "^1.0.1",
"@halsp/http": "^1.0.1",
"@halsp/methods": "^1.0.1"
"@halsp/core": "^1.0.2",
"@halsp/http": "^1.0.2",
"@halsp/methods": "^1.0.2"
},

@@ -53,3 +53,3 @@ "files": [

],
"gitHead": "b5c9e9af4f1d2d1b8ebe840946c835792babff62"
"gitHead": "e4a1d02a707f5d409f5802414f632912f143cb34"
}

@@ -8,5 +8,5 @@ <p align="center">

<a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
<a href=""><img src="https://img.shields.io/npm/v/@halsp/common.svg" alt="npm version"></a>
<a href=""><img src="https://badgen.net/npm/dt/@halsp/common" alt="npm downloads"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/common.svg" alt="node compatibility"></a>
<a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
<a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
<a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>

@@ -13,0 +13,0 @@ <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>

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

import { Middleware } from "@halsp/common";
import { Middleware } from "@halsp/core";
import { HttpMethods } from "@halsp/methods";

@@ -3,0 +3,0 @@ import { Options } from "./options";

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

import { Context } from "@halsp/common";
import { Context } from "@halsp/core";

@@ -3,0 +3,0 @@ export interface Options {

import { HttpMethods } from "@halsp/methods";
import { Request } from "@halsp/common";
import { Request } from "@halsp/core";
import { TestHttpStartup } from "@halsp/testing/dist/http";

@@ -4,0 +4,0 @@ import "../src";

import { TestHttpStartup } from "@halsp/testing/dist/http";
import { HttpMethods } from "@halsp/methods";
import { Request } from "@halsp/common";
import { Request } from "@halsp/core";
import "../src";

@@ -5,0 +5,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