Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
6
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.53 to 1.1.54

code/coder/_apiAccess.js

12

code/api/coder.api.js

@@ -21,5 +21,11 @@ 'use strict';

{ file: 'api.js', single: false, target: '../api/xf-api/{TABLE_NAME}.api.js' },
{ file: 'home/home.css', single: true, target: '../www/xf-view/home/home.css' },
{ file: 'home/home.html', single: true, target: '../www/xf-view/home/home.html' },
{ file: 'home/home.js', single: true, target: '../www/xf-view/home/home.js' },
{ file: 'grid/grid.css', single: false, target: '../www/xf-view/{TABLE_NAME}-grid/{TABLE_NAME}-grid.css' },
{ file: 'grid/grid.html', single: false, target: '../www/xf-view/{TABLE_NAME}-grid/{TABLE_NAME}-grid.html' },
{ file: 'grid/grid.js', single: false, target: '../www/xf-view/{TABLE_NAME}-grid/{TABLE_NAME}-grid.js' },
{ file: 'edit/edit.css', single: false, target: '../www/xf-view/{TABLE_NAME}-edit/{TABLE_NAME}-edit.css' },

@@ -61,4 +67,4 @@ { file: 'edit/edit.html', single: false, target: '../www/xf-view/{TABLE_NAME}-edit/{TABLE_NAME}-edit.html' },

let sql1 = "SELECT * FROM information_schema.TABLES WHERE table_schema=database()";
if (body.tableName) {
sql1 += ` AND TABLE_NAME like '${body.tableName}%'`
if (body.hd) {
sql1 += ` AND TABLE_NAME like '${body.hd}%'`
}

@@ -74,3 +80,3 @@ const tables = await new Access(body).query(sql1);

// 获取模板
const dir = t.root + '/_template/';
const dir = t.root + '/';
for (let item of t.map) {

@@ -77,0 +83,0 @@ const str = fs.readFileSync(dir + '/' + item.file).toString();

{
"name": "koa-rtapi",
"version": "1.1.53",
"version": "1.1.54",
"description": "koa api in rtworld company",

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

@@ -6,2 +6,3 @@ # koa-rtapi

- 支持 `request.body(koa-bodyparser)`,`跨域(koa2-cors)`,`静态服务(koa-static)`
- 继承了tkui(填坑UI)和前后台生成工具

@@ -25,3 +26,6 @@ **初始化**

- index.js 启动和配置
- api/ 放api文件
- api/ api文件
- coder.api.js: 代码生成api
- demo.api.js: 范例api
- coder/ 代码生成模板
- www/ 放静态文件

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc