@karinjs/plugin-basic 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  config
3
- } from "../chunk-XKQYARLA.js";
4
- import "../chunk-7VNKIAO2.js";
3
+ } from "../chunk-KGBZ474U.js";
4
+ import "../chunk-BVYMR5AV.js";
5
5
 
6
6
  // src/apps/restart.ts
7
7
  import { common, karin, logger, restart } from "node-karin";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  config
3
- } from "../chunk-XKQYARLA.js";
4
- import "../chunk-7VNKIAO2.js";
3
+ } from "../chunk-KGBZ474U.js";
4
+ import "../chunk-BVYMR5AV.js";
5
5
 
6
6
  // src/apps/status.ts
7
7
  import moment from "node-karin/moment";
@@ -52,9 +52,11 @@ var getStat = async (pattern) => {
52
52
  var MB = () => (process.memoryUsage().rss / 1024 / 1024).toFixed(2);
53
53
  var uptime = () => {
54
54
  const uptime2 = process.uptime();
55
- const hour = Math.floor(uptime2 / 3600);
55
+ const day = Math.floor(uptime2 / 86400);
56
+ const hour = Math.floor(uptime2 % 86400 / 3600);
56
57
  const minute = Math.floor(uptime2 % 3600 / 60);
57
- return `${hour}\u5C0F\u65F6${minute}\u5206\u949F`;
58
+ const seconds = Math.floor(uptime2 % 60);
59
+ return `${day}\u5929${hour}\u5C0F\u65F6${minute}\u5206\u949F${seconds}\u79D2`;
58
60
  };
59
61
  (() => {
60
62
  if (!config().status) return;
@@ -4,7 +4,7 @@ import path from "node:path";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@karinjs/plugin-basic",
7
- version: "1.0.4",
7
+ version: "1.0.5",
8
8
  description: "karin plugin for basic functions",
9
9
  homepage: "https://github.com/KarinJS/karin-plugin-basic",
10
10
  bugs: {
@@ -52,7 +52,7 @@ var package_default = {
52
52
  "dist/apps"
53
53
  ],
54
54
  "ts-apps": [
55
- "dist/apps"
55
+ "src/apps"
56
56
  ],
57
57
  static: [
58
58
  "resources"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  info
3
- } from "./chunk-7VNKIAO2.js";
3
+ } from "./chunk-BVYMR5AV.js";
4
4
 
5
5
  // src/utils/config.ts
6
6
  import fs from "node:fs";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  info
3
- } from "./chunk-7VNKIAO2.js";
3
+ } from "./chunk-BVYMR5AV.js";
4
4
 
5
5
  // src/index.ts
6
6
  import { logger } from "node-karin";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  config,
3
3
  writeConfig
4
- } from "./chunk-XKQYARLA.js";
4
+ } from "./chunk-KGBZ474U.js";
5
5
  import {
6
6
  info
7
- } from "./chunk-7VNKIAO2.js";
7
+ } from "./chunk-BVYMR5AV.js";
8
8
 
9
9
  // src/web.config.ts
10
10
  import { components } from "node-karin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karinjs/plugin-basic",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "karin plugin for basic functions",
5
5
  "homepage": "https://github.com/KarinJS/karin-plugin-basic",
6
6
  "bugs": {
@@ -39,7 +39,7 @@
39
39
  "dist/apps"
40
40
  ],
41
41
  "ts-apps": [
42
- "dist/apps"
42
+ "src/apps"
43
43
  ],
44
44
  "static": [
45
45
  "resources"