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

@aomex/cors

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/cors - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

120

CHANGELOG.md
# @aomex/cors
## 0.0.20
## 0.0.21
### Patch Changes
- Updated dependencies [[`e9996cb`](https://github.com/aomex/aomex/commit/e9996cb33cc0ef70b42147be02fbbe2b4954e022)]:
- @aomex/web@0.0.22
- @aomex/core@0.0.21
## 0.0.19
### Patch Changes
- Updated dependencies [[`a8dbaf3`](https://github.com/aomex/aomex/commit/a8dbaf38524f5a5d58337bc617175115742f9e1a), [`ddcec91`](https://github.com/aomex/aomex/commit/ddcec91803b00f35f7c55964d1a2d97c40a22c6e)]:
- @aomex/web@0.0.21
- @aomex/core@0.0.20
## 0.0.18
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.19
- @aomex/web@0.0.20
## 0.0.17
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.18
- @aomex/web@0.0.19
## 0.0.16
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.17
- @aomex/web@0.0.18
## 0.0.15
### Patch Changes
- Updated dependencies [[`216aa79`](https://github.com/aomex/aomex/commit/216aa798bcd2d0856f5fe4028235aa54d4b10922)]:
- @aomex/web@0.0.17
- @aomex/core@0.0.16
## 0.0.14
### Patch Changes
- Updated dependencies [[`280359e`](https://github.com/aomex/aomex/commit/280359eb90b71720304cfc212374b6dc4c90236d), [`9881653`](https://github.com/aomex/aomex/commit/988165361439738d27bc29bd0ed5a85c608db5ef), [`15ecd1c`](https://github.com/aomex/aomex/commit/15ecd1c75bc21929f79980b32e63ea46e081cc6a)]:
- @aomex/web@0.0.16
- @aomex/core@0.0.15
## 0.0.13
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.14
- @aomex/web@0.0.15
## 0.0.12
### Patch Changes
- Updated dependencies [[`715cf66`](https://github.com/aomex/aomex/commit/715cf660e3b275b338dcf15c25ba9523cf6fb204)]:
- @aomex/web@0.0.14
- @aomex/core@0.0.13
## 0.0.11
### Patch Changes
- Updated dependencies [[`6e63df8`](https://github.com/aomex/aomex/commit/6e63df84d1b32e713aba8c52451e289a72b57bae), [`67acf4f`](https://github.com/aomex/aomex/commit/67acf4f42cd86bf1f0a7c647a5ff779c7cd0fa10)]:
- @aomex/web@0.0.13
- @aomex/core@0.0.12
## 0.0.10
### Patch Changes
- Updated dependencies [[`f14eb5f`](https://github.com/aomex/aomex/commit/f14eb5fe7bf06e1e2f64d45e3546c96d6079a2f1), [`7d923cf`](https://github.com/aomex/aomex/commit/7d923cf971b6a23d50113ab104c67041c6489053), [`3c5ad4e`](https://github.com/aomex/aomex/commit/3c5ad4e2f34be7da54c8b63f6fd4b88fd1e593c4), [`6154ee5`](https://github.com/aomex/aomex/commit/6154ee5ed500984f969d4c335ac3ad800c739937), [`92273f9`](https://github.com/aomex/aomex/commit/92273f913e38543f34f41ec5941ff43b6e1caaa9), [`a0fd49e`](https://github.com/aomex/aomex/commit/a0fd49ef276c05f312257521c75887458857bbb7)]:
- @aomex/web@0.0.12
- @aomex/core@0.0.11
## 0.0.9
### Patch Changes
- Updated dependencies [[`d9dc050`](https://github.com/aomex/aomex/commit/d9dc050897367353588c4bb778cbafb7607406ab), [`41ae605`](https://github.com/aomex/aomex/commit/41ae6054b2e87c4120f3fcee12302bb3d96f1df3)]:
- @aomex/web@0.0.11
- @aomex/core@0.0.10
## 0.0.8
### Patch Changes
- Updated dependencies [[`2439286`](https://github.com/aomex/aomex/commit/2439286e69dcc7211ac280b91dbca5de95cc488b)]:
- @aomex/web@0.0.10
- @aomex/core@0.0.9
## 0.0.7
### Patch Changes
- Updated dependencies [[`dcf2f4b`](https://github.com/aomex/aomex/commit/dcf2f4b6a13228d4731e4969e6abff9bef8ef0e2), [`d788ce7`](https://github.com/aomex/aomex/commit/d788ce731af885eae3819683813b2a9502742cea), [`c6fe6cb`](https://github.com/aomex/aomex/commit/c6fe6cb2f21acf74bc06db1509deff4aa35c48b3), [`a2727fb`](https://github.com/aomex/aomex/commit/a2727fb7619341dc3b23736e5dc11cee7d65e0bc), [`4253004`](https://github.com/aomex/aomex/commit/42530043854956a42d16be090b89fbac70e2fa17), [`fc7008e`](https://github.com/aomex/aomex/commit/fc7008e889a55e6a0a268bb77cab5be0f0bd9d30), [`d80df1a`](https://github.com/aomex/aomex/commit/d80df1a07eb92214a9c3c7fa15c629ea1ee88c43)]:
- @aomex/web@0.0.9
- @aomex/core@0.0.8
## 0.0.5
### Patch Changes
- Updated dependencies [[`bbc8dda`](https://github.com/aomex/aomex/commit/bbc8dda9f0876c3402608133085350cc693def6f), [`ceb2d82`](https://github.com/aomex/aomex/commit/ceb2d8269755dca3f79b755224259b8a99bc65d0)]:
- @aomex/core@0.0.6
- @aomex/web@0.0.7
- Updated dependencies [[`6f7d706`](https://github.com/aomex/aomex/commit/6f7d7066c23711abdd149eb1c9a293ab8c4284a4), [`e21007a`](https://github.com/aomex/aomex/commit/e21007a82cb8eac73e1f696340bbe986d57dc159), [`e7bf93c`](https://github.com/aomex/aomex/commit/e7bf93cee6896c61d0bf3eb0921151dc6c1bc107), [`e21007a`](https://github.com/aomex/aomex/commit/e21007a82cb8eac73e1f696340bbe986d57dc159), [`818e840`](https://github.com/aomex/aomex/commit/818e840d36c7456a863fc071968b246c123c17f5), [`fb6c72d`](https://github.com/aomex/aomex/commit/fb6c72dbb266be4db92a542afe93dfa5d8c7cd41)]:
- @aomex/core@0.0.22
- @aomex/web@0.0.23

23

dist/index.d.ts

@@ -5,13 +5,7 @@ import { WebContext, WebMiddleware } from '@aomex/web';

/**
* `Access-Control-Allow-Origin`, default is request Origin header.
*
* @remarks
* If a function is provided, it will be called for each request with
* the web context object. It may return a string or a promise that
* will resolve with a string.
* `Access-Control-Allow-Origin`
*/
origin?: ((ctx: WebContext) => string) | ((ctx: WebContext) => PromiseLike<string>) | string;
/**
* `Access-Control-Allow-Methods`, default is
* 'GET,HEAD,PUT,POST,DELETE,PATCH'
* `Access-Control-Allow-Methods`, 默认值:`GET,HEAD,PUT,POST,DELETE,PATCH`
*/

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

/**
* `Access-Control-Max-Age` in seconds
* `Access-Control-Max-Age`。时间单位:`秒`
*/

@@ -34,15 +28,10 @@ maxAge?: number | string;

* `Access-Control-Allow-Credentials`
*
* @remarks
* If a function is provided, it will be called for each request with
* the web context object. It may return a boolean or a promise that
* will resolve with a boolean.
*/
credentials?: ((ctx: WebContext) => boolean) | ((ctx: WebContext) => PromiseLike<boolean>) | boolean;
/**
* Add set headers to `err.header` if an error is thrown
* 抛出异常时把headers信息附加在`err.header`上
*/
keepHeadersOnError?: boolean;
/**
* Add `Cross-Origin-Opener-Policy` & `Cross-Origin-Embedder-Policy` to response headers
* 响应头部增加 `Cross-Origin-Opener-Policy` 和 `Cross-Origin-Embedder-Policy` 这两个条信息。默认值:`false`
*

@@ -53,3 +42,3 @@ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Planned_changes

/**
* Handle `Access-Control-Request-Private-Network` request by return `Access-Control-Allow-Private-Network`
* 处理请求头部 `Access-Control-Request-Private-Network` 并返回 `Access-Control-Allow-Private-Network`
*

@@ -56,0 +45,0 @@ * @see https://wicg.github.io/private-network-access/

{
"name": "@aomex/cors",
"version": "0.0.20",
"version": "0.0.21",
"description": "跨站资源共享",

@@ -32,8 +32,8 @@ "keywords": [

"peerDependencies": {
"@aomex/core": "^0.0.21",
"@aomex/web": "^0.0.22"
"@aomex/core": "^0.0.22",
"@aomex/web": "^0.0.23"
},
"devDependencies": {
"@aomex/core": "^0.0.21",
"@aomex/web": "^0.0.22"
"@aomex/core": "^0.0.22",
"@aomex/web": "^0.0.23"
},

@@ -40,0 +40,0 @@ "scripts": {

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