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

@zenweb/cors

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zenweb/cors - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

1

dist/index.js

@@ -10,2 +10,1 @@ "use strict";

exports.default = setup;
//# sourceMappingURL=index.js.map

10

package.json
{
"name": "@zenweb/cors",
"version": "2.3.0",
"version": "2.4.0",
"description": "zenweb cors module",

@@ -31,8 +31,10 @@ "exports": "./dist/index.js",

"devDependencies": {
"@zenweb/core": "^2.3.1"
"@zenweb/core": "^3.5.1",
"rimraf": "^4.4.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@koa/cors": "^3.1.0",
"@types/koa__cors": "^3.1.0"
"@koa/cors": "^3",
"@types/koa__cors": "^3.3.1"
}
}
# zenweb-cors
zenweb cors module
跨域支持
## Quick start

@@ -10,9 +12,15 @@

app.js
```js
export const app = create({
cors: {
origin: '*',
}
});
```ts
import { create } from 'zenweb';
import modCors from '@zenweb/cors';
const app = create();
app.setup(modCors({ origin: '*' }));
```
## Changelog
## 2.4.0
- @koa/cors: ^3
- null 检查
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