@k3000/s1 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
package/admin/base.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Base} from 'tools2/router.mjs'
1
+ import {Base} from '@k3000/express'
2
2
  import {fromJWT} from "../common/tools.mjs";
3
3
  import {store1} from './service.mjs'
4
4
  import {adminLifetime} from "../common/config.mjs";
package/admin/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Express} from "tools2/router.mjs";
1
+ import {Express} from "@k3000/express";
2
2
  import bodyParser from "body-parser";
3
3
  import fileUpload from "express-fileupload";
4
4
  import {adminServicePort} from "../common/config.mjs";
@@ -1,4 +1,4 @@
1
- import {cpu, disk, mem, node, sys} from "tools2/info.mjs"
1
+ import {cpu, disk, mem, node, sys} from "@k3000/info"
2
2
  import {AdminAuth} from "../base.mjs";
3
3
 
4
4
  export class Server extends AdminAuth {
package/admin/service.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import createServer from 'tools2/server.mjs'
1
+ import createServer from '@k3000/server'
2
2
  import {adminUdpPort as port} from "../common/config.mjs";
3
3
  import {service as pools} from '../common/service.mjs'
4
4
 
@@ -1,4 +1,4 @@
1
- import Query from "tools2/mysql2ssh2.mjs";
1
+ import Query from "@k3000/mysql";
2
2
  import {mysql} from "../../common/config.mjs";
3
3
  import {AdminAuth, AdminAuthPerm, NoActionHandle, NoActionParams} from "../base.mjs";
4
4
  import {store1} from "../service.mjs";
package/app/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Express} from "tools2/router.mjs";
1
+ import {Express} from "@k3000/express";
2
2
  import bodyParser from "body-parser";
3
3
  import {appServicePort} from "../common/config.mjs";
4
4
 
@@ -6,4 +6,4 @@ const app = new Express({
6
6
  port: appServicePort,
7
7
  callback: () => console.log('running on ' + appServicePort),
8
8
  })
9
- app.use(bodyParser.urlencoded({extended: true}));
9
+ app.use(bodyParser.urlencoded({extended: true}));
package/bin.mjs CHANGED
@@ -79,6 +79,8 @@ function init(override) {
79
79
  pm2.exec('npm i @k3000/server').log()
80
80
  pm2.exec('npm i @k3000/store').log()
81
81
  pm2.exec('npm i @k3000/tools').log()
82
+ pm2.exec('npm i @k3000/info').log()
83
+ pm2.exec('npm i @k3000/build').log()
82
84
  pm2.exec('npm i svg-captcha').log()
83
85
  pm2.exec('npm i mysql2').log()
84
86
  pm2.exec('npm i ssh2').log()
package/build.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*import {build} from 'tools2/module.mjs'
1
+ /*import {build} from '@k3000/build'
2
2
 
3
3
  // build('admin', 'index', 'admin') // 打包
4
4
  // build('jwt', 'index', 'jwt') // 打包
@@ -11,7 +11,7 @@ build('test', {
11
11
  // import './test/index.mjs'
12
12
  import './index2.mjs'
13
13
 
14
- /*import {build} from 'tools2/module.mjs'
14
+ /*import {build} from '@k3000/build'
15
15
 
16
16
  // build('admin', 'index', 'admin') // 打包
17
17
  // build('jwt', 'index', 'jwt') // 打包
package/common/tools.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Cipher} from "tools2";
1
+ import {Cipher} from "@k3000/tools";
2
2
  import {jwtLifetime, jwtSalt} from "./config.mjs";
3
3
  import {readdirSync, statSync} from "node:fs";
4
4
 
package/jwt/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import createServer from 'tools2/server.mjs'
1
+ import createServer from '@k3000/server'
2
2
  import {jwtPort as port} from "../common/config.mjs";
3
3
  import {service as pools} from "../common/service.mjs";
4
4
  import {fromJWT, toJWT} from "../common/tools.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/s1",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "sync": "npm link",
package/proxy/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {createProxy} from "tools2/proxy.mjs";
1
+ import {createProxy} from "@k3000/proxy";
2
2
  import {proxyMap, proxyPort} from "../common/config.mjs";
3
3
 
4
4
  try {
package/store1/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import createServer from 'tools2/server.mjs'
1
+ import createServer from '@k3000/server'
2
2
  import {store1Port as port} from "../common/config.mjs";
3
3
  import store from "./store/index.mjs";
4
4
  import {Pools} from "../common/tools.mjs";
package/store1/tool.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {colIncludes, page, Pools, rowSlice, update} from "../common/tools.mjs";
2
2
  import store, {getStruct, remark} from "./store/index.mjs";
3
- import Query from "tools2/mysql2ssh2.mjs";
3
+ import Query from "@k3000/mysql";
4
4
  import {mysql, serverDir} from "../common/config.mjs";
5
5
  import {
6
6
  columnNameNotEdit,