@pisell/core 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.
package/es/app/app.d.ts CHANGED
@@ -8,8 +8,6 @@ import { MenuManager } from '../menuManager';
8
8
  import LoggerManager, { LoggerOptions } from '../logger';
9
9
  import { TasksManager } from '../tasks';
10
10
  import IndexDBManager, { DBOptions } from '../indexDB';
11
- import CMD from "../cmd";
12
- import AWS from "../aws";
13
11
  declare global {
14
12
  interface Window {
15
13
  app: App;
@@ -63,8 +61,6 @@ declare class App {
63
61
  };
64
62
  logger: LoggerManager;
65
63
  pubsub: import("../pubsub").PubSub;
66
- cmd: CMD;
67
- aws: AWS;
68
64
  tasksManager: TasksManager;
69
65
  dbManager: IndexDBManager | null;
70
66
  constants: {
package/es/app/app.js CHANGED
@@ -24,8 +24,6 @@ import { TasksManager } from "../tasks";
24
24
  import IndexDBManager from "../indexDB";
25
25
  import pubsub from "../pubsub";
26
26
  import { APPEvent } from "./const";
27
- import CMD from "../cmd";
28
- import AWS from "../aws";
29
27
  var App = /*#__PURE__*/function () {
30
28
  function App(options) {
31
29
  _classCallCheck(this, App);
@@ -61,10 +59,6 @@ var App = /*#__PURE__*/function () {
61
59
  _defineProperty(this, "logger", void 0);
62
60
  // 发布订阅
63
61
  _defineProperty(this, "pubsub", pubsub);
64
- // cmd
65
- _defineProperty(this, "cmd", void 0);
66
- // aws
67
- _defineProperty(this, "aws", void 0);
68
62
  // 任务管理
69
63
  _defineProperty(this, "tasksManager", void 0);
70
64
  _defineProperty(this, "dbManager", null);
@@ -85,8 +79,6 @@ var App = /*#__PURE__*/function () {
85
79
  }
86
80
  this.logger = new LoggerManager(this, options === null || options === void 0 ? void 0 : options.logger);
87
81
  this.tasksManager = new TasksManager(this);
88
- this.cmd = new CMD(this, options === null || options === void 0 ? void 0 : options.cmd);
89
- this.aws = new AWS(this, options === null || options === void 0 ? void 0 : options.aws);
90
82
  if (options !== null && options !== void 0 && options.constants) {
91
83
  this.constants = options.constants || {};
92
84
  }
@@ -4,12 +4,10 @@ export declare type LogConsoleType = "info" | "warning" | "error" | "debug";
4
4
  * 日志项接口
5
5
  */
6
6
  interface LogItem {
7
- logId?: string | number;
8
7
  type: LogConsoleType;
9
8
  title: string;
10
9
  date?: string;
11
10
  metadata?: any;
12
- feishu?: any;
13
11
  }
14
12
  interface LogFile {
15
13
  fileName: string;
@@ -40,7 +38,6 @@ declare class LoggerManager {
40
38
  private feishuConfig;
41
39
  private retentionDays;
42
40
  private metadataFunction;
43
- private status;
44
41
  /**
45
42
  * 构造函数
46
43
  * @param prefix 日志前缀
@@ -62,8 +59,6 @@ declare class LoggerManager {
62
59
  * 初始化定时器
63
60
  */
64
61
  initTimer(): void;
65
- private setStatus;
66
- stop(): void;
67
62
  /**
68
63
  * 添加日志
69
64
  * @param log 日志项
@@ -79,12 +74,6 @@ declare class LoggerManager {
79
74
  * @returns 日志文件名
80
75
  */
81
76
  private createFileName;
82
- /**
83
- * 创建AWS日志文件名
84
- * @param isManual 是否手动上传
85
- * @returns 日志文件名
86
- */
87
- createAWSFileName(isManual?: boolean): Promise<string>;
88
77
  /**
89
78
  * 创建日志文件
90
79
  * @param _fileName 文件名
@@ -94,8 +83,7 @@ declare class LoggerManager {
94
83
  /**
95
84
  * 存储日志到持久化存储
96
85
  */
97
- storeLog(): Promise<void>;
98
- private storeLogToIndexDB;
86
+ private storeLog;
99
87
  /**
100
88
  * 清理旧日志,只保留最近指定天数的日志
101
89
  */