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

lws-cors

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lws-cors - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

6

index.js

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

const EventEmitter = require('events')
import kcors from '@koa/cors'
import EventEmitter from 'events'

@@ -32,3 +33,2 @@ class Cors extends EventEmitter {

this.emit('verbose', 'middleware.cors.config', corsOptions)
const kcors = require('@koa/cors')
return kcors(corsOptions)

@@ -38,2 +38,2 @@ }

module.exports = Cors
export default Cors
{
"name": "lws-cors",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "3.0.0",
"version": "3.1.0",
"description": "Support for setting Cross-Origin Resource Sharing (CORS) headers to lws",

@@ -13,4 +13,6 @@ "repository": "https://github.com/lwsjs/cors.git",

],
"exports": "./index.js",
"type": "module",
"engines": {
"node": ">=10"
"node": ">=12.17"
},

@@ -21,8 +23,8 @@ "scripts": {

"dependencies": {
"@koa/cors": "^3.0.0"
"@koa/cors": "^3.1.0"
},
"devDependencies": {
"lws": "^2.0.8",
"node-fetch": "^2.6.0",
"test-runner": "^0.8.13"
"lws": "^4.1.1",
"node-fetch": "^3.2.0",
"test-runner": "^0.10.1"
},

@@ -29,0 +31,0 @@ "files": [

@@ -1,5 +0,6 @@

[![view on npm](https://img.shields.io/npm/v/lws-cors.svg)](https://www.npmjs.org/package/lws-cors)
[![npm module downloads](https://img.shields.io/npm/dt/lws-cors.svg)](https://www.npmjs.org/package/lws-cors)
[![Build Status](https://travis-ci.org/lwsjs/cors.svg?branch=master)](https://travis-ci.org/lwsjs/cors)
[![Dependency Status](https://badgen.net/david/dep/lwsjs/cors)](https://david-dm.org/lwsjs/cors)
[![view on npm](https://badgen.net/npm/v/lws-cors)](https://www.npmjs.org/package/lws-cors)
[![npm module downloads](https://badgen.net/npm/dt/lws-cors)](https://www.npmjs.org/package/lws-cors)
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/lwsjs/cors)](https://github.com/lwsjs/cors/network/dependents?dependent_type=REPOSITORY)
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/lwsjs/cors)](https://github.com/lwsjs/cors/network/dependents?dependent_type=PACKAGE)
[![Node.js CI](https://github.com/lwsjs/cors/actions/workflows/node.js.yml/badge.svg)](https://github.com/lwsjs/cors/actions/workflows/node.js.yml)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

@@ -22,2 +23,2 @@

&copy; 2016-20 Lloyd Brookes \<75pound@gmail.com\>.
&copy; 2016-22 Lloyd Brookes \<75pound@gmail.com\>.

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