Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-rtapi - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

8

demo/demo/startApi.js

@@ -1,1 +0,7 @@

./dist/demo/startApi.js
'use strict';
module.exports = class {
async $hello(body) {
return 'hello world';
}
}

@@ -1,1 +0,14 @@

./dist/index.js
const Koa = require('koa');
const app = new Koa();
const bodyParser = require('koa-bodyparser');
const rtApi = require('koa-rtapi');
const map = [
{ path: '/demo/', dir: '/demo/' }
]
app.use(bodyParser())
.use(rtApi(map))
.listen(1996);
console.log('started http://127.0.0.1:1996');

2

package.json
{
"name": "koa-rtapi",
"version": "1.0.4",
"version": "1.0.5",
"description": "koa api in rtworld company",

@@ -5,0 +5,0 @@ "main": "index.js",

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