concept-tree 1.0.3 → 1.0.4

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 (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -125,8 +125,8 @@ var ConceptTree = class ConceptTree {
125
125
  }
126
126
  return rList;
127
127
  }
128
- drawTree() {
129
- return this._genTxtDiag(true, true, " ", 0).join("\n");
128
+ drawTree(iPrefix = "") {
129
+ return this._genTxtDiag(true, true, iPrefix, 0).join("\n");
130
130
  }
131
131
  _genPathList(iRoot, iPad) {
132
132
  const rList = [];
@@ -145,8 +145,8 @@ var ConceptTree = class ConceptTree {
145
145
  for (const elem of this.sub) rList.push(...elem._genPathList(nextFirst, lePad));
146
146
  return rList;
147
147
  }
148
- listTree() {
149
- return this._genPathList(true, "");
148
+ listTree(iPrefix = "") {
149
+ return this._genPathList(true, iPrefix);
150
150
  }
151
151
  };
152
152
  function conceptTree(iName) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "concept-tree",
3
3
  "description": "build and output virtual tree",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -70,16 +70,16 @@
70
70
  "devDependencies": {
71
71
  "@eslint/js": "^10.0.1",
72
72
  "@types/eslint__js": "^8.42.3",
73
- "@types/node": "^26.6.6",
74
- "eslint": "^10.15.0",
75
- "eslint-config-prettier": "^10.1.8",
73
+ "@types/node": "^26.6.11",
74
+ "eslint": "^10.16.0",
75
+ "eslint-config-prettier": "^10.1.9",
76
76
  "npm-run-all2": "^9.1.0",
77
77
  "prettier": "^3.10.1",
78
78
  "rimraf": "^6.1.4",
79
79
  "tsdown": "^0.23.7",
80
80
  "tsx": "^4.23.15",
81
81
  "typescript": "^6.0.3",
82
- "typescript-eslint": "^8.73.0",
83
- "vitest": "^5.1.1"
82
+ "typescript-eslint": "^8.74.0",
83
+ "vitest": "^5.1.2"
84
84
  }
85
85
  }