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

@elysiajs/cors

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elysiajs/cors - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0-rc.0

5

dist/cjs/index.d.ts

@@ -117,3 +117,3 @@ import { Elysia } from 'elysia';

}
export declare const cors: (config?: CORSConfig) => Elysia<"", false, {
export declare const cors: (config?: CORSConfig) => Elysia<"", {
decorator: {};

@@ -124,3 +124,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -131,2 +131,3 @@ }, {

macroFn: {};
parser: {};
}, {}, {

@@ -133,0 +134,0 @@ derive: {};

10

dist/cjs/index.js

@@ -21,8 +21,8 @@ "use strict";

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
cors: () => cors,
default: () => src_default
default: () => index_default
});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);
var import_elysia = require("elysia");

@@ -149,3 +149,3 @@ var isBun = typeof new Headers()?.toJSON === "function";

};
var src_default = cors;
var index_default = cors;
// Annotate the CommonJS export names for ESM import in node:

@@ -152,0 +152,0 @@ 0 && (module.exports = {

@@ -117,3 +117,3 @@ import { Elysia } from 'elysia';

}
export declare const cors: (config?: CORSConfig) => Elysia<"", false, {
export declare const cors: (config?: CORSConfig) => Elysia<"", {
decorator: {};

@@ -124,3 +124,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -131,2 +131,3 @@ }, {

macroFn: {};
parser: {};
}, {}, {

@@ -133,0 +134,0 @@ derive: {};

{
"name": "@elysiajs/cors",
"version": "1.1.1",
"version": "1.2.0-rc.0",
"description": "Plugin for Elysia that for Cross Origin Requests (CORs)",

@@ -39,6 +39,6 @@ "author": {

"devDependencies": {
"@types/bun": "^1.1.6",
"@types/bun": "1.1.14",
"@types/node": "^20.14.10",
"elysia": ">= 1.1.0-rc.2",
"eslint": "^8.26.0",
"elysia": ">= 1.2.0-rc.0",
"eslint": "9.6.0",
"tsup": "^8.1.0",

@@ -48,4 +48,4 @@ "typescript": "^5.5.2"

"peerDependencies": {
"elysia": ">= 1.1.0"
"elysia": ">= 1.2.0-rc.0"
}
}
}

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