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

@tinyhttp/cors

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/cors - npm Package Compare versions

Comparing version 1.3.2 to 2.0.0

75

package.json
{
"name": "@tinyhttp/cors",
"version": "1.3.2",
"description": "tinyhttp CORS module",
"version": "2.0.0",
"type": "module",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json",
"./": "./"
},
"funding": {
"type": "individual",
"url": "https://github.com/talentlessguy/tinyhttp?sponsor=1"
},
"homepage": "https://tinyhttp.v1rtl.site",
"description": "CORS middleware for modern Node.js ",
"homepage": "https://github.com/tinyhttp/cors#readme",
"repository": {
"type": "git",
"url": "https://github.com/talentlessguy/tinyhttp.git",
"directory": "packages/cors"
"url": "https://github.com/tinyhttp/cors.git"
},
"engines": {
"node": ">=12.4 || 14.x || >=16"
},
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"keywords": [

@@ -32,16 +21,42 @@ "tinyhttp",

"web",
"backend",
"cors"
"backend"
],
"engines": {
"node": ">=12.4.0"
},
"author": "v1rtl",
"license": "MIT",
"files": [
"dist"
],
"dependencies": {
"es-vary": "^0.0.8"
"es-vary": "^0.1.1"
},
"author": "v1rtl",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@rollup/plugin-typescript": "^8.2.5",
"@tinyhttp/app": "1.3.15",
"@types/node": "^16.7.1",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"c8": "^7.8.0",
"esbuild-node-loader": "^0.3.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1",
"expect": "^27.0.6",
"husky": "^7.0.1",
"prettier": "^2.3.2",
"rollup": "^2.56.2",
"supertest-fetch": "^1.4.3",
"typescript": "^4.3.5",
"uvu": "^0.5.1"
},
"scripts": {
"build": "rollup -c ../../build/defaultConfig.js"
"build": "rollup -c",
"test": "node --experimental-loader esbuild-node-loader node_modules/uvu/bin.js tests",
"test:coverage": "c8 --include=src pnpm test",
"test:report": "c8 report --reporter=text-lcov > coverage.lcov",
"lint": "eslint . --ext=ts",
"format": "prettier --check \"./**/*.{ts,md}\"",
"format:fix": "prettier --write \"./**/*.{ts,md}\""
}
}
}

19

README.md

@@ -0,8 +1,12 @@

<div align="center">
# @tinyhttp/cors
[![npm (scoped)][badge-url]][npm-url] [![npm][dl-badge-url]][npm-url]
[![npm][npm-img]][npm-url] [![GitHub Workflow Status][gh-actions-img]][github-actions] [![Coverage][cov-img]][cov-url]
</div>
> A rewrite of [expressjs/cors](https://github.com/expressjs/cors) module.
HTTP cors header middleware
HTTP cors header middleware.

@@ -64,8 +68,7 @@ ## Install

## Alternatives
- [cors](https://github.com/expressjs/cors)
[badge-url]: https://img.shields.io/npm/v/@tinyhttp/cors?style=flat-square
[npm-url]: https://npmjs.com/package/@tinyhttp/cors
[dl-badge-url]: https://img.shields.io/npm/dt/@tinyhttp/cors?style=flat-square
[github-actions]: https://github.com/tinyhttp/cors/actions
[gh-actions-img]: https://img.shields.io/github/workflow/status/tinyhttp/cors/CI?style=for-the-badge&logo=github&label=&color=hotpink
[cov-img]: https://img.shields.io/coveralls/github/tinyhttp/cors?style=for-the-badge&color=hotpink
[cov-url]: https://coveralls.io/github/tinyhttp/cors
[npm-img]: https://img.shields.io/npm/dt/@tinyhttp/cors?style=for-the-badge&color=hotpink
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