vivth 1.5.10 → 1.5.11

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/README.md CHANGED
@@ -774,6 +774,7 @@ body {
774
774
  > > - has `[type="module]"`: will be processed as `esm`;
775
775
  > > - has `[minify="true"]`: will be minified;
776
776
  > - other than those files, they will be just copied to `targetPaths`;
777
+ - avoid forbidden filename characters and problematic one such as curly/square/normal-braces, that might be used for file pointing cli;
777
778
  - for runtime example see file `/dev/auto/` on source code;
778
779
 
779
780
  ```js
@@ -35,6 +35,7 @@
35
35
  * >>- has `[type="module]"`: will be processed as `esm`;
36
36
  * >>- has `[minify="true"]`: will be minified;
37
37
  * >- other than those files, they will be just copied to `targetPaths`;
38
+ * - avoid forbidden filename characters and problematic one such as curly/square/normal-braces, that might be used for file pointing cli;
38
39
  * - for runtime example see file `/dev/auto/` on source code;
39
40
  * @implements {VivthCleanup}
40
41
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vivth",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "library primitives",
5
5
  "devDependencies": {
6
6
  "@types/bun": "^1.3.3",
@@ -63,6 +63,7 @@ import { LazyFactory } from '../function/LazyFactory.mjs';
63
63
  * >>- has `[type="module]"`: will be processed as `esm`;
64
64
  * >>- has `[minify="true"]`: will be minified;
65
65
  * >- other than those files, they will be just copied to `targetPaths`;
66
+ * - avoid forbidden filename characters and problematic one such as curly/square/normal-braces, that might be used for file pointing cli;
66
67
  * - for runtime example see file `/dev/auto/` on source code;
67
68
  * @implements {VivthCleanup}
68
69
  */
@@ -267,7 +268,7 @@ export class FileSelfMapper {
267
268
  Console.error({ errorWriteHTML }, { now: true });
268
269
  return;
269
270
  }
270
- Console.info(`✅ Successfully map:'${path}' to:'${target}'`, { now: true });
271
+ Console.info(`✅ Successfully map:'${path}' 👉:'${target}'`, { now: true });
271
272
  })[0],
272
273
  );
273
274
  };
@@ -543,15 +544,20 @@ export class FileSelfMapper {
543
544
  if (!group) {
544
545
  break;
545
546
  }
546
- const candidate = group.trim();
547
- if (!/^(?:[A-Za-z]:[\\/]|[\\/]|\.{1,2}[\\/])?[A-Za-z0-9._\\/-]+$/g.test(candidate)) {
548
- break;
549
- }
550
- if (!candidate) {
547
+ const pathCandidate = group.trim();
548
+ if (
549
+ !pathCandidate ||
550
+ !/^(?:[A-Za-z]:[\\/]|[\\/]|\.{1,2}[\\/])?[A-Za-z0-9._\\/-]+$/g.test(pathCandidate)
551
+ ) {
552
+ Console.error({
553
+ pathCandidate,
554
+ message: 'pathCandidate invalid for testRegex',
555
+ testRegex: /^(?:[A-Za-z]:[\\/]|[\\/]|\.{1,2}[\\/])?[A-Za-z0-9._\\/-]+$/g,
556
+ });
551
557
  break;
552
558
  }
553
559
  perLinesCode[i] = '';
554
- targetPaths.add(Paths.normalize(candidate));
560
+ targetPaths.add(Paths.normalize(pathCandidate));
555
561
  }
556
562
 
557
563
  return {