alemonjs 1.0.50 → 1.0.51

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.
@@ -4,7 +4,7 @@
4
4
  * ***********
5
5
  */
6
6
  const ApplicationProcessingConfiguration = {
7
- dir: '/application',
7
+ dir: '/plugins',
8
8
  main: '/main',
9
9
  type: 'stript',
10
10
  openRegex: /./,
package/lib/logs.js CHANGED
@@ -3,21 +3,21 @@
3
3
  * @param fun 中间值
4
4
  * @param prefix 前缀
5
5
  */
6
- export function setLog(fun, prefix = '[AlemonJS]') {
6
+ export function setLog(fun) {
7
7
  const log = console.log;
8
8
  global.console.log = (...argv) => {
9
- log(prefix, `[${fun()}]`, ...argv);
9
+ log(fun(), ...argv);
10
10
  };
11
11
  const info = console.info;
12
12
  global.console.info = (...argv) => {
13
- info(prefix, `[${fun()}]`, ...argv);
13
+ info(fun(), ...argv);
14
14
  };
15
15
  const error = console.error;
16
16
  global.console.error = (...argv) => {
17
- error(prefix, `[${fun()}]`, ...argv);
17
+ error(fun(), ...argv);
18
18
  };
19
19
  const debug = console.debug;
20
20
  global.console.debug = (...argv) => {
21
- debug(prefix, `[${fun()}]`, ...argv);
21
+ debug(fun(), ...argv);
22
22
  };
23
23
  }
package/logs.d.ts CHANGED
@@ -3,7 +3,4 @@
3
3
  * @param fun 中间值
4
4
  * @param prefix 前缀
5
5
  */
6
- export declare function setLog(
7
- fun: (...args: any[]) => any,
8
- prefix?: string
9
- ): void
6
+ export declare function setLog(fun: (...args: any[]) => any): void
package/logs.js CHANGED
@@ -3,21 +3,21 @@
3
3
  * @param fun 中间值
4
4
  * @param prefix 前缀
5
5
  */
6
- export function setLog(fun, prefix = '[AlemonJS]') {
6
+ export function setLog(fun) {
7
7
  const log = console.log
8
8
  global.console.log = (...argv) => {
9
- log(prefix, `[${fun()}]`, ...argv)
9
+ log(fun(), ...argv)
10
10
  }
11
11
  const info = console.info
12
12
  global.console.info = (...argv) => {
13
- info(prefix, `[${fun()}]`, ...argv)
13
+ info(fun(), ...argv)
14
14
  }
15
15
  const error = console.error
16
16
  global.console.error = (...argv) => {
17
- error(prefix, `[${fun()}]`, ...argv)
17
+ error(fun(), ...argv)
18
18
  }
19
19
  const debug = console.debug
20
20
  global.console.debug = (...argv) => {
21
- debug(prefix, `[${fun()}]`, ...argv)
21
+ debug(fun(), ...argv)
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "DOCS https://alemonjs.com/",
5
5
  "author": "ningmengchongshui",
6
6
  "license": "GPL-2.0",
package/types/logs.d.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * @param fun 中间值
4
4
  * @param prefix 前缀
5
5
  */
6
- export declare function setLog(fun: (...args: any[]) => any, prefix?: string): void;
6
+ export declare function setLog(fun: (...args: any[]) => any): void;