@augment-vir/node 31.50.0 → 31.50.1

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.
@@ -14,8 +14,17 @@ export declare enum PackageJsonDependencyKey {
14
14
  * output from {@link listAllDirectNpmDeps}.
15
15
  *
16
16
  * @category Internal
17
+ * @category Package : @augment-vir/node
18
+ * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
17
19
  */
18
20
  export type NpmDeps = Record<string, NpmDep[]>;
21
+ /**
22
+ * An individual dependency used in {@link NpmDeps}.
23
+ *
24
+ * @category Internal
25
+ * @category Package : @augment-vir/node
26
+ * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
27
+ */
19
28
  export type NpmDep = {
20
29
  /** Path to the `package.json` file that depends on this. */
21
30
  requiredBy: string;
package/dist/index.d.ts CHANGED
@@ -17,7 +17,6 @@ export * from './augments/path/contains.js';
17
17
  export * from './augments/path/os-path.js';
18
18
  export * from './augments/path/resolve-import.js';
19
19
  export * from './augments/path/root.js';
20
- export * from './augments/path/sanitize-path.js';
21
20
  export * from './augments/terminal/question.js';
22
21
  export * from './augments/terminal/relevant-args.js';
23
22
  export * from './augments/terminal/run-cli-script.js';
package/dist/index.js CHANGED
@@ -17,7 +17,6 @@ export * from './augments/path/contains.js';
17
17
  export * from './augments/path/os-path.js';
18
18
  export * from './augments/path/resolve-import.js';
19
19
  export * from './augments/path/root.js';
20
- export * from './augments/path/sanitize-path.js';
21
20
  export * from './augments/terminal/question.js';
22
21
  export * from './augments/terminal/relevant-args.js';
23
22
  export * from './augments/terminal/run-cli-script.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "31.50.0",
3
+ "version": "31.50.1",
4
4
  "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.",
5
5
  "keywords": [
6
6
  "augment",
@@ -38,8 +38,8 @@
38
38
  "test:update": "npm test"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^31.50.0",
42
- "@augment-vir/common": "^31.50.0",
41
+ "@augment-vir/assert": "^31.50.1",
42
+ "@augment-vir/common": "^31.50.1",
43
43
  "@date-vir/duration": "^8.0.0",
44
44
  "ansi-styles": "^6.2.3",
45
45
  "sanitize-filename": "^1.6.3",
@@ -49,7 +49,7 @@
49
49
  "typed-event-target": "^4.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@augment-vir/test": "^31.50.0",
52
+ "@augment-vir/test": "^31.50.1",
53
53
  "@types/node": "^24.10.0",
54
54
  "@web/dev-server-esbuild": "^1.0.4",
55
55
  "@web/test-runner": "^0.20.2",
@@ -21,8 +21,18 @@ export enum PackageJsonDependencyKey {
21
21
  * output from {@link listAllDirectNpmDeps}.
22
22
  *
23
23
  * @category Internal
24
+ * @category Package : @augment-vir/node
25
+ * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
24
26
  */
25
27
  export type NpmDeps = Record<string, NpmDep[]>;
28
+
29
+ /**
30
+ * An individual dependency used in {@link NpmDeps}.
31
+ *
32
+ * @category Internal
33
+ * @category Package : @augment-vir/node
34
+ * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
35
+ */
26
36
  export type NpmDep = {
27
37
  /** Path to the `package.json` file that depends on this. */
28
38
  requiredBy: string;
package/src/index.ts CHANGED
@@ -17,7 +17,6 @@ export * from './augments/path/contains.js';
17
17
  export * from './augments/path/os-path.js';
18
18
  export * from './augments/path/resolve-import.js';
19
19
  export * from './augments/path/root.js';
20
- export * from './augments/path/sanitize-path.js';
21
20
  export * from './augments/terminal/question.js';
22
21
  export * from './augments/terminal/relevant-args.js';
23
22
  export * from './augments/terminal/run-cli-script.js';
@@ -1,2 +0,0 @@
1
- /** @deprecated: use `sanitizeFilePath` from `@augment-vir/common` instead. */
2
- export declare function sanitizePath(original: string | null | undefined): string | undefined;
@@ -1,29 +0,0 @@
1
- import { collapseWhiteSpace, safeSplit } from '@augment-vir/common';
2
- import { extname } from 'node:path';
3
- import sanitizeFileName from 'sanitize-filename';
4
- /** @deprecated: use `sanitizeFilePath` from `@augment-vir/common` instead. */
5
- export function sanitizePath(original) {
6
- if (!original) {
7
- return undefined;
8
- }
9
- const sanitized = sanitizeFileName(collapseWhiteSpace(original)
10
- .replaceAll(' ', '_')
11
- /** This ESLint error is wrong. */
12
- .replaceAll(/['()*"![\]{}\s?=&<>:/\-\\|]/g, '_')
13
- .replaceAll(/_{2,}/g, '_')
14
- .replace(/_$/, '')
15
- .replaceAll(/_\./g, '.')
16
- .replace(/^_+/, '')
17
- .replace(/^\.+/, '')
18
- .toLowerCase()).trim();
19
- const extension = extname(sanitized);
20
- if (extension) {
21
- return [
22
- safeSplit(sanitized, extension)[0],
23
- extension.replaceAll('_', ''),
24
- ].join('');
25
- }
26
- else {
27
- return sanitized || undefined;
28
- }
29
- }
@@ -1,33 +0,0 @@
1
- import {collapseWhiteSpace, safeSplit} from '@augment-vir/common';
2
- import {extname} from 'node:path';
3
- import sanitizeFileName from 'sanitize-filename';
4
-
5
- /** @deprecated: use `sanitizeFilePath` from `@augment-vir/common` instead. */
6
- export function sanitizePath(original: string | null | undefined): string | undefined {
7
- if (!original) {
8
- return undefined;
9
- }
10
- const sanitized = sanitizeFileName(
11
- collapseWhiteSpace(original)
12
- .replaceAll(' ', '_')
13
- /** This ESLint error is wrong. */
14
- .replaceAll(/['()*"![\]{}\s?=&<>:/\-\\|]/g, '_')
15
- .replaceAll(/_{2,}/g, '_')
16
- .replace(/_$/, '')
17
- .replaceAll(/_\./g, '.')
18
- .replace(/^_+/, '')
19
- .replace(/^\.+/, '')
20
- .toLowerCase(),
21
- ).trim();
22
-
23
- const extension = extname(sanitized);
24
-
25
- if (extension) {
26
- return [
27
- safeSplit(sanitized, extension)[0],
28
- extension.replaceAll('_', ''),
29
- ].join('');
30
- } else {
31
- return sanitized || undefined;
32
- }
33
- }