ide-assi 0.199.0 → 0.200.0

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.
@@ -193687,9 +193687,14 @@ class IdeAi
193687
193687
  #getSourcePath = (menuUrl) => {
193688
193688
  const path = menuUrl.replace(/^\/+/, '');
193689
193689
 
193690
- const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193690
+ const raw = path.split("/").join(".").toLowerCase();
193691
+ const cleaned = raw.replace(/[^a-z0-9.]/g, "");
193692
+ const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
193693
+
193694
+ const packageName = namespace.split(".").slice(0, -1).join(".");
193695
+
193691
193696
  //const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193692
- const namespace = path.split("/").join(".").toLowerCase();
193697
+ //const packageName = path.split("/").join(".").toLowerCase();
193693
193698
  const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193694
193699
 
193695
193700
  //console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
@@ -193683,9 +193683,14 @@ class IdeAi
193683
193683
  #getSourcePath = (menuUrl) => {
193684
193684
  const path = menuUrl.replace(/^\/+/, '');
193685
193685
 
193686
- const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193686
+ const raw = path.split("/").join(".").toLowerCase();
193687
+ const cleaned = raw.replace(/[^a-z0-9.]/g, "");
193688
+ const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
193689
+
193690
+ const packageName = namespace.split(".").slice(0, -1).join(".");
193691
+
193687
193692
  //const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193688
- const namespace = path.split("/").join(".").toLowerCase();
193693
+ //const packageName = path.split("/").join(".").toLowerCase();
193689
193694
  const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193690
193695
 
193691
193696
  //console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
@@ -285,9 +285,14 @@ export class IdeAi
285
285
  #getSourcePath = (menuUrl) => {
286
286
  const path = menuUrl.replace(/^\/+/, '');
287
287
 
288
- const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
288
+ const raw = path.split("/").join(".").toLowerCase();
289
+ const cleaned = raw.replace(/[^a-z0-9.]/g, "");
290
+ const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
291
+
292
+ const packageName = namespace.split(".").slice(0, -1).join(".");
293
+
289
294
  //const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
290
- const namespace = path.split("/").join(".").toLowerCase();
295
+ //const packageName = path.split("/").join(".").toLowerCase();
291
296
  const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
292
297
 
293
298
  //console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.199.0",
4
+ "version": "0.200.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -285,9 +285,14 @@ export class IdeAi
285
285
  #getSourcePath = (menuUrl) => {
286
286
  const path = menuUrl.replace(/^\/+/, '');
287
287
 
288
- const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
288
+ const raw = path.split("/").join(".").toLowerCase();
289
+ const cleaned = raw.replace(/[^a-z0-9.]/g, "");
290
+ const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
291
+
292
+ const packageName = namespace.split(".").slice(0, -1).join(".");
293
+
289
294
  //const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
290
- const namespace = path.split("/").join(".").toLowerCase();
295
+ //const packageName = path.split("/").join(".").toLowerCase();
291
296
  const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
292
297
 
293
298
  //console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);