@karinjs/plugin-basic 1.0.8 → 1.0.9

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-UEURYWPB.js";
4
- import "../chunk-FOHB2OK5.js";
3
+ } from "../chunk-IN6XLNTH.js";
4
+ import "../chunk-473NAVE6.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-UEURYWPB.js";
4
- import "../chunk-FOHB2OK5.js";
3
+ } from "../chunk-IN6XLNTH.js";
4
+ import "../chunk-473NAVE6.js";
5
5
 
6
6
  // src/apps/status.ts
7
7
  import moment from "node-karin/moment";
@@ -55,8 +55,7 @@ var uptime = () => {
55
55
  const day = Math.floor(uptime2 / 86400);
56
56
  const hour = Math.floor(uptime2 % 86400 / 3600);
57
57
  const minute = Math.floor(uptime2 % 3600 / 60);
58
- const seconds = Math.floor(uptime2 % 60);
59
- return `${day}\u5929${hour}\u5C0F\u65F6${minute}\u5206\u949F${seconds}\u79D2`;
58
+ return `${day > 0 ? `${day}\u5929` : ""}${hour}\u5C0F\u65F6${minute}\u5206\u949F`;
60
59
  };
61
60
  (() => {
62
61
  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.8",
7
+ version: "1.0.9",
8
8
  description: "karin plugin for basic functions",
9
9
  homepage: "https://github.com/KarinJS/karin-plugin-basic",
10
10
  bugs: {
@@ -29,7 +29,7 @@ var package_default = {
29
29
  build: "tsc && tsup",
30
30
  pub: "npm publish --access public",
31
31
  sort: "npx sort-package-json",
32
- dev: "tsx src/index.ts",
32
+ dev: "tsx src/app.ts",
33
33
  watch: "tsx watch src/index.ts",
34
34
  karin: "karin"
35
35
  },
@@ -37,7 +37,7 @@ var package_default = {
37
37
  "@types/node": "^20.17.30",
38
38
  eslint: "^9.24.0",
39
39
  neostandard: "^0.12.1",
40
- "node-karin": "^1.7.14",
40
+ "node-karin": "^1.8.12",
41
41
  tsup: "^8.4.0",
42
42
  tsx: "^4.19.3",
43
43
  typescript: "^5.8.3"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  info
3
- } from "./chunk-FOHB2OK5.js";
3
+ } from "./chunk-473NAVE6.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-FOHB2OK5.js";
3
+ } from "./chunk-473NAVE6.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-UEURYWPB.js";
4
+ } from "./chunk-IN6XLNTH.js";
5
5
  import {
6
6
  info
7
- } from "./chunk-FOHB2OK5.js";
7
+ } from "./chunk-473NAVE6.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.8",
3
+ "version": "1.0.9",
4
4
  "description": "karin plugin for basic functions",
5
5
  "homepage": "https://github.com/KarinJS/karin-plugin-basic",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "build": "tsc && tsup",
26
26
  "pub": "npm publish --access public",
27
27
  "sort": "npx sort-package-json",
28
- "dev": "tsx src/index.ts",
28
+ "dev": "tsx src/app.ts",
29
29
  "watch": "tsx watch src/index.ts",
30
30
  "karin": "karin"
31
31
  },