From c1a7660c3896b51922537b3027ea3aa54e3e7a01 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Thu, 16 Sep 2021 21:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=20npm/*=20=E4=BD=BF=E7=94=A8=E6=A0=87=E5=87=86=E5=89=8D?= =?UTF-8?q?=E7=BC=80=20base|core|user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- server.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0722144..078ca65 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sol.webserver", + "name": "base.webserver", "version": "1.0.0", "description": "Launch web server", "main": "server.js", @@ -25,8 +25,8 @@ "method-override": "^2.3.10", "morgan": "^1.9.0", "serve-favicon": "^2.5.0", - "sol.enviconfig": "git+https://git.faronear.org/npm/sol.enviconfig", - "sol.nettool": "git+https://git.faronear.org/npm/sol.nettool", + "base.enviconfig": "git+https://git.faronear.org/npm/base.enviconfig", + "base.nettool": "git+https://git.faronear.org/npm/base.nettool", "vhost": "^3.0.2" }, "devDependencies": { diff --git a/server.js b/server.js index 673a02b..981e665 100644 --- a/server.js +++ b/server.js @@ -1,10 +1,10 @@ const fs = require('fs') const path = require('path') -const nettool = require('sol.nettool') +const nettool = require('base.nettool') const express = require('express') const wo = (global.wo = { - envi : require('sol.enviconfig').mergeConfig({ + envi : require('base.enviconfig').mergeConfig({ commanderOptions: [ // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。 ['protocol', '-P, --protocol ', 'Web Server protocol: http|https|httpall.'],