lqy-log-toolkit 1.0.1 → 1.0.3

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.
Files changed (3) hide show
  1. package/index.js +6 -8
  2. package/info.js +1 -1
  3. package/package.json +5 -2
package/index.js CHANGED
@@ -1,9 +1,7 @@
1
- const toolkit = require('lqy-log-toolkit');
1
+ const info = require('./info');
2
+ const logger = require('./logger');
2
3
 
3
- console.log("=== Package Attributes ===");
4
- console.log("Author:", toolkit.authorName);
5
- console.log("Version:", toolkit.version);
6
-
7
- console.log("\n=== Package Methods ===");
8
- toolkit.logSuccess("Install and call success!");
9
- toolkit.logError("This is a test error log.");
4
+ module.exports = {
5
+ ...info,
6
+ ...logger
7
+ };
package/info.js CHANGED
@@ -1,4 +1,4 @@
1
- const authorName = "你的名字";
1
+ const authorName = "lqy";
2
2
  const version = "1.0.0";
3
3
 
4
4
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lqy-log-toolkit",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,5 +9,8 @@
9
9
  "keywords": [],
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "type": "commonjs"
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "lqy-log-toolkit": "^1.0.0"
15
+ }
13
16
  }