json-mock-server
Advanced tools
Comparing version 0.0.4 to 0.0.5
const Koa = require('koa'); | ||
const cors = require('@koa/cors'); | ||
const Router = require('koa-router'); | ||
@@ -38,2 +39,3 @@ const chalk = require('chalk'); | ||
} | ||
app.use(cors({ origin: "*", allowHeaders: "Origin, X-Requested-With, Content-Type, Accept" })); | ||
initialRoutes = { ...routes }; | ||
@@ -40,0 +42,0 @@ currentRoutes = { ...routes }; |
{ | ||
"name": "json-mock-server", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A lightweight tool to spin up a simple mock server using JSON syntax - perfect for mocked development, offline development or unit testing.", | ||
@@ -18,2 +18,3 @@ "bin": { | ||
"dependencies": { | ||
"@koa/cors": "^2.2.1", | ||
"chalk": "2.3.2", | ||
@@ -20,0 +21,0 @@ "commander": "2.15.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8177
90
5
+ Added@koa/cors@^2.2.1
+ Added@koa/cors@2.2.3(transitive)