@socketsecurity/lib 3.5.0 → 4.0.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.
- package/CHANGELOG.md +13 -0
- package/README.md +8 -8
- package/dist/agent.js +12 -25
- package/dist/bin.d.ts +97 -40
- package/dist/bin.js +133 -138
- package/dist/cacache.d.ts +5 -2
- package/dist/cacache.js +29 -18
- package/dist/cache-with-ttl.js +1 -1
- package/dist/constants/agents.d.ts +0 -4
- package/dist/constants/agents.js +13 -4
- package/dist/constants/node.d.ts +1 -0
- package/dist/constants/node.js +2 -5
- package/dist/constants/packages.js +23 -11
- package/dist/constants/process.d.ts +1 -1
- package/dist/constants/process.js +2 -2
- package/dist/debug.js +3 -3
- package/dist/dlx-binary.js +10 -18
- package/dist/dlx-manifest.js +2 -2
- package/dist/dlx-package.js +22 -62
- package/dist/dlx.js +14 -14
- package/dist/effects/text-shimmer.js +1 -1
- package/dist/env/ci.js +2 -2
- package/dist/env/debug.js +1 -1
- package/dist/env/github.js +1 -1
- package/dist/env/home.js +1 -1
- package/dist/env/locale.js +1 -1
- package/dist/env/node-auth-token.js +1 -1
- package/dist/env/node-env.js +1 -1
- package/dist/env/npm.js +1 -1
- package/dist/env/package-manager.js +1 -1
- package/dist/env/path.js +1 -1
- package/dist/env/pre-commit.js +2 -2
- package/dist/env/rewire.d.ts +7 -7
- package/dist/env/rewire.js +1 -1
- package/dist/env/shell.js +1 -1
- package/dist/env/socket-cli-shadow.js +2 -2
- package/dist/env/socket-cli.js +2 -2
- package/dist/env/socket.js +2 -2
- package/dist/env/temp-dir.js +1 -1
- package/dist/env/term.js +1 -1
- package/dist/env/test.js +3 -3
- package/dist/env/windows.js +1 -1
- package/dist/env/xdg.js +1 -1
- package/dist/fs.js +20 -25
- package/dist/git.d.ts +6 -6
- package/dist/git.js +11 -14
- package/dist/github.js +2 -2
- package/dist/globs.js +16 -29
- package/dist/ipc.d.ts +4 -4
- package/dist/ipc.js +3 -3
- package/dist/logger.d.ts +0 -25
- package/dist/logger.js +0 -26
- package/dist/objects.js +1 -1
- package/dist/package-default-node-range.js +13 -3
- package/dist/package-extensions.d.ts +2 -1
- package/dist/package-extensions.js +12 -2
- package/dist/packages/editable.d.ts +0 -3
- package/dist/packages/editable.js +34 -24
- package/dist/packages/exports.js +1 -1
- package/dist/packages/isolation.js +33 -33
- package/dist/packages/licenses.js +20 -34
- package/dist/packages/manifest.js +21 -36
- package/dist/packages/normalize.js +20 -52
- package/dist/packages/operations.js +39 -103
- package/dist/packages/provenance.js +15 -5
- package/dist/packages/specs.js +13 -12
- package/dist/packages/validation.js +12 -10
- package/dist/packages.d.ts +2 -2
- package/dist/packages.js +3 -3
- package/dist/paths/dirnames.d.ts +13 -0
- package/dist/paths/dirnames.js +50 -0
- package/dist/paths/exts.d.ts +18 -0
- package/dist/paths/exts.js +68 -0
- package/dist/paths/filenames.d.ts +16 -0
- package/dist/paths/filenames.js +62 -0
- package/dist/paths/globs.d.ts +10 -0
- package/dist/{argv/quote.js → paths/globs.js} +21 -19
- package/dist/{path.d.ts → paths/normalize.d.ts} +41 -0
- package/dist/{path.js → paths/normalize.js} +18 -5
- package/dist/{packages/paths.js → paths/packages.js} +8 -8
- package/dist/paths/rewire.d.ts +1 -1
- package/dist/{paths.js → paths/socket.js} +31 -67
- package/dist/promises.js +2 -2
- package/dist/sea.js +2 -2
- package/dist/shadow.js +3 -3
- package/dist/sorts.js +12 -2
- package/dist/spawn.d.ts +15 -12
- package/dist/spawn.js +43 -31
- package/dist/spinner.d.ts +2 -6
- package/dist/spinner.js +9 -41
- package/dist/stdio/prompts.d.ts +8 -10
- package/dist/stdio/prompts.js +15 -13
- package/dist/streams.d.ts +0 -4
- package/dist/streams.js +3 -12
- package/dist/temporary-executor.js +4 -4
- package/dist/versions.js +31 -28
- package/package.json +28 -29
- package/dist/argv/quote.d.ts +0 -49
- package/dist/constants/paths.d.ts +0 -51
- package/dist/constants/paths.js +0 -152
- /package/dist/{packages/paths.d.ts → paths/packages.d.ts} +0 -0
- /package/dist/{paths.d.ts → paths/socket.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"packageManager": "pnpm@10.22.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Core utilities and infrastructure for Socket.dev security tools",
|
|
@@ -111,10 +111,6 @@
|
|
|
111
111
|
"types": "./dist/argv/parse.d.ts",
|
|
112
112
|
"default": "./dist/argv/parse.js"
|
|
113
113
|
},
|
|
114
|
-
"./argv/quote": {
|
|
115
|
-
"types": "./dist/argv/quote.d.ts",
|
|
116
|
-
"default": "./dist/argv/quote.js"
|
|
117
|
-
},
|
|
118
114
|
"./arrays": {
|
|
119
115
|
"types": "./dist/arrays.d.ts",
|
|
120
116
|
"default": "./dist/arrays.js"
|
|
@@ -163,10 +159,6 @@
|
|
|
163
159
|
"types": "./dist/constants/packages.d.ts",
|
|
164
160
|
"default": "./dist/constants/packages.js"
|
|
165
161
|
},
|
|
166
|
-
"./constants/paths": {
|
|
167
|
-
"types": "./dist/constants/paths.d.ts",
|
|
168
|
-
"default": "./dist/constants/paths.js"
|
|
169
|
-
},
|
|
170
162
|
"./constants/platform": {
|
|
171
163
|
"types": "./dist/constants/platform.d.ts",
|
|
172
164
|
"default": "./dist/constants/platform.js"
|
|
@@ -439,10 +431,6 @@
|
|
|
439
431
|
"types": "./dist/packages/operations.d.ts",
|
|
440
432
|
"default": "./dist/packages/operations.js"
|
|
441
433
|
},
|
|
442
|
-
"./packages/paths": {
|
|
443
|
-
"types": "./dist/packages/paths.d.ts",
|
|
444
|
-
"default": "./dist/packages/paths.js"
|
|
445
|
-
},
|
|
446
434
|
"./packages/provenance": {
|
|
447
435
|
"types": "./dist/packages/provenance.d.ts",
|
|
448
436
|
"default": "./dist/packages/provenance.js"
|
|
@@ -455,18 +443,38 @@
|
|
|
455
443
|
"types": "./dist/packages/validation.d.ts",
|
|
456
444
|
"default": "./dist/packages/validation.js"
|
|
457
445
|
},
|
|
458
|
-
"./
|
|
459
|
-
"types": "./dist/
|
|
460
|
-
"default": "./dist/
|
|
446
|
+
"./paths/dirnames": {
|
|
447
|
+
"types": "./dist/paths/dirnames.d.ts",
|
|
448
|
+
"default": "./dist/paths/dirnames.js"
|
|
449
|
+
},
|
|
450
|
+
"./paths/exts": {
|
|
451
|
+
"types": "./dist/paths/exts.d.ts",
|
|
452
|
+
"default": "./dist/paths/exts.js"
|
|
453
|
+
},
|
|
454
|
+
"./paths/filenames": {
|
|
455
|
+
"types": "./dist/paths/filenames.d.ts",
|
|
456
|
+
"default": "./dist/paths/filenames.js"
|
|
461
457
|
},
|
|
462
|
-
"./paths": {
|
|
463
|
-
"types": "./dist/paths.d.ts",
|
|
464
|
-
"default": "./dist/paths.js"
|
|
458
|
+
"./paths/globs": {
|
|
459
|
+
"types": "./dist/paths/globs.d.ts",
|
|
460
|
+
"default": "./dist/paths/globs.js"
|
|
461
|
+
},
|
|
462
|
+
"./paths/normalize": {
|
|
463
|
+
"types": "./dist/paths/normalize.d.ts",
|
|
464
|
+
"default": "./dist/paths/normalize.js"
|
|
465
|
+
},
|
|
466
|
+
"./paths/packages": {
|
|
467
|
+
"types": "./dist/paths/packages.d.ts",
|
|
468
|
+
"default": "./dist/paths/packages.js"
|
|
465
469
|
},
|
|
466
470
|
"./paths/rewire": {
|
|
467
471
|
"types": "./dist/paths/rewire.d.ts",
|
|
468
472
|
"default": "./dist/paths/rewire.js"
|
|
469
473
|
},
|
|
474
|
+
"./paths/socket": {
|
|
475
|
+
"types": "./dist/paths/socket.d.ts",
|
|
476
|
+
"default": "./dist/paths/socket.js"
|
|
477
|
+
},
|
|
470
478
|
"./performance": {
|
|
471
479
|
"types": "./dist/performance.d.ts",
|
|
472
480
|
"default": "./dist/performance.js"
|
|
@@ -638,15 +646,6 @@
|
|
|
638
646
|
"./tsconfig.json": "./tsconfig.json",
|
|
639
647
|
"./tsconfig.test.json": "./tsconfig.test.json"
|
|
640
648
|
},
|
|
641
|
-
"imports": {
|
|
642
|
-
"#constants/*": "./dist/constants/*.js",
|
|
643
|
-
"#env/*": "./dist/env/*.js",
|
|
644
|
-
"#lib/*": "./dist/*.js",
|
|
645
|
-
"#packages/*": "./dist/packages/*.js",
|
|
646
|
-
"#socketsecurity/lib/*": "@socketsecurity/lib-stable/*",
|
|
647
|
-
"#types": "./dist/types.js",
|
|
648
|
-
"#utils/*": "./dist/utils/*.js"
|
|
649
|
-
},
|
|
650
649
|
"files": [
|
|
651
650
|
"dist",
|
|
652
651
|
"data/extensions.json",
|
|
@@ -691,7 +690,7 @@
|
|
|
691
690
|
"@socketregistry/is-unicode-supported": "1.0.5",
|
|
692
691
|
"@socketregistry/packageurl-js": "1.3.5",
|
|
693
692
|
"@socketregistry/yocto-spinner": "1.0.25",
|
|
694
|
-
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@
|
|
693
|
+
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@4.0.0",
|
|
695
694
|
"@types/node": "24.9.2",
|
|
696
695
|
"@typescript/native-preview": "7.0.0-dev.20250920.1",
|
|
697
696
|
"@vitest/coverage-v8": "4.0.3",
|
package/dist/argv/quote.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Argument quoting utilities for shell execution with spawn()
|
|
3
|
-
*
|
|
4
|
-
* These functions handle quoting of command-line arguments when using
|
|
5
|
-
* child_process.spawn() with shell: true.
|
|
6
|
-
*
|
|
7
|
-
* IMPORTANT: Only needed when shell: true. With shell: false, arguments
|
|
8
|
-
* are passed directly to the OS kernel as an array (no quoting needed).
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Quote an argument for POSIX shell execution (bash, sh, zsh).
|
|
12
|
-
*
|
|
13
|
-
* Uses single quotes (POSIX standard) which prevent all expansions except
|
|
14
|
-
* single quotes themselves. Internal single quotes are escaped using '\''
|
|
15
|
-
*
|
|
16
|
-
* @param arg - Argument to quote
|
|
17
|
-
* @returns Quoted argument safe for POSIX shells when using shell: true
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* import { posixQuote } from '@socketsecurity/lib/argv/quote'
|
|
22
|
-
*
|
|
23
|
-
* // With shell: true on Unix
|
|
24
|
-
* const path = '/path/with spaces/file.txt'
|
|
25
|
-
* spawn('sh', ['-c', 'cat', posixQuote(path)], { shell: true })
|
|
26
|
-
* // sh receives: sh -c cat '/path/with spaces/file.txt'
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function posixQuote(arg: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* Quote an argument for Windows cmd.exe shell execution.
|
|
32
|
-
*
|
|
33
|
-
* Uses double quotes (cmd.exe standard) and escapes internal quotes by doubling.
|
|
34
|
-
* Handles all cmd.exe special characters: space, &, |, <, >, ^, %, (, ), !, "
|
|
35
|
-
*
|
|
36
|
-
* @param arg - Argument to quote
|
|
37
|
-
* @returns Quoted argument safe for cmd.exe when using shell: true
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { win32Quote } from '@socketsecurity/lib/argv/quote'
|
|
42
|
-
*
|
|
43
|
-
* // With shell: true on Windows
|
|
44
|
-
* const path = 'C:\\Program Files\\app.exe'
|
|
45
|
-
* spawn('cmd', ['/c', 'app', win32Quote(path)], { shell: true })
|
|
46
|
-
* // cmd.exe receives: cmd /c app "C:\Program Files\app.exe"
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare function win32Quote(arg: string): string;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File paths, directory names, extensions, and glob patterns.
|
|
3
|
-
*/
|
|
4
|
-
// File names.
|
|
5
|
-
export declare const PACKAGE_JSON = "package.json";
|
|
6
|
-
export declare const TSCONFIG_JSON = "tsconfig.json";
|
|
7
|
-
export declare const LICENSE = "LICENSE";
|
|
8
|
-
export declare const LICENSE_MD = "LICENSE.md";
|
|
9
|
-
export declare const LICENSE_ORIGINAL = "LICENSE.original";
|
|
10
|
-
export declare const README_MD = "README.md";
|
|
11
|
-
export declare const CHANGELOG_MD = "CHANGELOG.md";
|
|
12
|
-
export declare const MANIFEST_JSON = "manifest.json";
|
|
13
|
-
export declare const EXTENSIONS_JSON = "extensions.json";
|
|
14
|
-
export declare const ESLINT_CONFIG_JS = "eslint.config.js";
|
|
15
|
-
export declare const GITIGNORE = ".gitignore";
|
|
16
|
-
export declare const DOT_PACKAGE_LOCK_JSON = ".package-lock.json";
|
|
17
|
-
// Directory names.
|
|
18
|
-
export declare const NODE_MODULES = "node_modules";
|
|
19
|
-
export declare const DOT_GIT_DIR = ".git";
|
|
20
|
-
export declare const DOT_GITHUB = ".github";
|
|
21
|
-
export declare const DOT_SOCKET_DIR = ".socket";
|
|
22
|
-
export declare const CACHE_DIR = "cache";
|
|
23
|
-
export declare const CACHE_TTL_DIR = "ttl";
|
|
24
|
-
// Path patterns.
|
|
25
|
-
export declare const NODE_MODULES_GLOB_RECURSIVE = "**/node_modules";
|
|
26
|
-
export declare const SLASH_NODE_MODULES_SLASH = "/node_modules/";
|
|
27
|
-
// File extensions.
|
|
28
|
-
export declare const EXT_CJS = ".cjs";
|
|
29
|
-
export declare const EXT_CMD = ".cmd";
|
|
30
|
-
export declare const EXT_CTS = ".cts";
|
|
31
|
-
export declare const EXT_DTS = ".d.ts";
|
|
32
|
-
export declare const EXT_JS = ".js";
|
|
33
|
-
export declare const EXT_JSON = ".json";
|
|
34
|
-
export declare const EXT_LOCK = ".lock";
|
|
35
|
-
export declare const EXT_LOCKB = ".lockb";
|
|
36
|
-
export declare const EXT_MD = ".md";
|
|
37
|
-
export declare const EXT_MJS = ".mjs";
|
|
38
|
-
export declare const EXT_MTS = ".mts";
|
|
39
|
-
export declare const EXT_PS1 = ".ps1";
|
|
40
|
-
export declare const EXT_YAML = ".yaml";
|
|
41
|
-
export declare const EXT_YML = ".yml";
|
|
42
|
-
// Glob patterns.
|
|
43
|
-
export declare const LICENSE_GLOB = "LICEN[CS]E{[.-]*,}";
|
|
44
|
-
export declare const LICENSE_GLOB_RECURSIVE = "**/LICEN[CS]E{[.-]*,}";
|
|
45
|
-
export declare const LICENSE_ORIGINAL_GLOB = "*.original{.*,}";
|
|
46
|
-
export declare const LICENSE_ORIGINAL_GLOB_RECURSIVE = "**/*.original{.*,}";
|
|
47
|
-
export declare const README_GLOB = "README{.*,}";
|
|
48
|
-
export declare const README_GLOB_RECURSIVE = "**/README{.*,}";
|
|
49
|
-
// Miscellaneous path constants.
|
|
50
|
-
export declare const EXTENSIONS = "extensions";
|
|
51
|
-
export declare const ROLLUP_EXTERNAL_SUFFIX = "__rollup_external";
|
package/dist/constants/paths.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Socket Lib - Built with esbuild */
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var paths_exports = {};
|
|
21
|
-
__export(paths_exports, {
|
|
22
|
-
CACHE_DIR: () => CACHE_DIR,
|
|
23
|
-
CACHE_TTL_DIR: () => CACHE_TTL_DIR,
|
|
24
|
-
CHANGELOG_MD: () => CHANGELOG_MD,
|
|
25
|
-
DOT_GITHUB: () => DOT_GITHUB,
|
|
26
|
-
DOT_GIT_DIR: () => DOT_GIT_DIR,
|
|
27
|
-
DOT_PACKAGE_LOCK_JSON: () => DOT_PACKAGE_LOCK_JSON,
|
|
28
|
-
DOT_SOCKET_DIR: () => DOT_SOCKET_DIR,
|
|
29
|
-
ESLINT_CONFIG_JS: () => ESLINT_CONFIG_JS,
|
|
30
|
-
EXTENSIONS: () => EXTENSIONS,
|
|
31
|
-
EXTENSIONS_JSON: () => EXTENSIONS_JSON,
|
|
32
|
-
EXT_CJS: () => EXT_CJS,
|
|
33
|
-
EXT_CMD: () => EXT_CMD,
|
|
34
|
-
EXT_CTS: () => EXT_CTS,
|
|
35
|
-
EXT_DTS: () => EXT_DTS,
|
|
36
|
-
EXT_JS: () => EXT_JS,
|
|
37
|
-
EXT_JSON: () => EXT_JSON,
|
|
38
|
-
EXT_LOCK: () => EXT_LOCK,
|
|
39
|
-
EXT_LOCKB: () => EXT_LOCKB,
|
|
40
|
-
EXT_MD: () => EXT_MD,
|
|
41
|
-
EXT_MJS: () => EXT_MJS,
|
|
42
|
-
EXT_MTS: () => EXT_MTS,
|
|
43
|
-
EXT_PS1: () => EXT_PS1,
|
|
44
|
-
EXT_YAML: () => EXT_YAML,
|
|
45
|
-
EXT_YML: () => EXT_YML,
|
|
46
|
-
GITIGNORE: () => GITIGNORE,
|
|
47
|
-
LICENSE: () => LICENSE,
|
|
48
|
-
LICENSE_GLOB: () => LICENSE_GLOB,
|
|
49
|
-
LICENSE_GLOB_RECURSIVE: () => LICENSE_GLOB_RECURSIVE,
|
|
50
|
-
LICENSE_MD: () => LICENSE_MD,
|
|
51
|
-
LICENSE_ORIGINAL: () => LICENSE_ORIGINAL,
|
|
52
|
-
LICENSE_ORIGINAL_GLOB: () => LICENSE_ORIGINAL_GLOB,
|
|
53
|
-
LICENSE_ORIGINAL_GLOB_RECURSIVE: () => LICENSE_ORIGINAL_GLOB_RECURSIVE,
|
|
54
|
-
MANIFEST_JSON: () => MANIFEST_JSON,
|
|
55
|
-
NODE_MODULES: () => NODE_MODULES,
|
|
56
|
-
NODE_MODULES_GLOB_RECURSIVE: () => NODE_MODULES_GLOB_RECURSIVE,
|
|
57
|
-
PACKAGE_JSON: () => PACKAGE_JSON,
|
|
58
|
-
README_GLOB: () => README_GLOB,
|
|
59
|
-
README_GLOB_RECURSIVE: () => README_GLOB_RECURSIVE,
|
|
60
|
-
README_MD: () => README_MD,
|
|
61
|
-
ROLLUP_EXTERNAL_SUFFIX: () => ROLLUP_EXTERNAL_SUFFIX,
|
|
62
|
-
SLASH_NODE_MODULES_SLASH: () => SLASH_NODE_MODULES_SLASH,
|
|
63
|
-
TSCONFIG_JSON: () => TSCONFIG_JSON
|
|
64
|
-
});
|
|
65
|
-
module.exports = __toCommonJS(paths_exports);
|
|
66
|
-
const PACKAGE_JSON = "package.json";
|
|
67
|
-
const TSCONFIG_JSON = "tsconfig.json";
|
|
68
|
-
const LICENSE = "LICENSE";
|
|
69
|
-
const LICENSE_MD = "LICENSE.md";
|
|
70
|
-
const LICENSE_ORIGINAL = "LICENSE.original";
|
|
71
|
-
const README_MD = "README.md";
|
|
72
|
-
const CHANGELOG_MD = "CHANGELOG.md";
|
|
73
|
-
const MANIFEST_JSON = "manifest.json";
|
|
74
|
-
const EXTENSIONS_JSON = "extensions.json";
|
|
75
|
-
const ESLINT_CONFIG_JS = "eslint.config.js";
|
|
76
|
-
const GITIGNORE = ".gitignore";
|
|
77
|
-
const DOT_PACKAGE_LOCK_JSON = ".package-lock.json";
|
|
78
|
-
const NODE_MODULES = "node_modules";
|
|
79
|
-
const DOT_GIT_DIR = ".git";
|
|
80
|
-
const DOT_GITHUB = ".github";
|
|
81
|
-
const DOT_SOCKET_DIR = ".socket";
|
|
82
|
-
const CACHE_DIR = "cache";
|
|
83
|
-
const CACHE_TTL_DIR = "ttl";
|
|
84
|
-
const NODE_MODULES_GLOB_RECURSIVE = "**/node_modules";
|
|
85
|
-
const SLASH_NODE_MODULES_SLASH = "/node_modules/";
|
|
86
|
-
const EXT_CJS = ".cjs";
|
|
87
|
-
const EXT_CMD = ".cmd";
|
|
88
|
-
const EXT_CTS = ".cts";
|
|
89
|
-
const EXT_DTS = ".d.ts";
|
|
90
|
-
const EXT_JS = ".js";
|
|
91
|
-
const EXT_JSON = ".json";
|
|
92
|
-
const EXT_LOCK = ".lock";
|
|
93
|
-
const EXT_LOCKB = ".lockb";
|
|
94
|
-
const EXT_MD = ".md";
|
|
95
|
-
const EXT_MJS = ".mjs";
|
|
96
|
-
const EXT_MTS = ".mts";
|
|
97
|
-
const EXT_PS1 = ".ps1";
|
|
98
|
-
const EXT_YAML = ".yaml";
|
|
99
|
-
const EXT_YML = ".yml";
|
|
100
|
-
const LICENSE_GLOB = "LICEN[CS]E{[.-]*,}";
|
|
101
|
-
const LICENSE_GLOB_RECURSIVE = "**/LICEN[CS]E{[.-]*,}";
|
|
102
|
-
const LICENSE_ORIGINAL_GLOB = "*.original{.*,}";
|
|
103
|
-
const LICENSE_ORIGINAL_GLOB_RECURSIVE = "**/*.original{.*,}";
|
|
104
|
-
const README_GLOB = "README{.*,}";
|
|
105
|
-
const README_GLOB_RECURSIVE = "**/README{.*,}";
|
|
106
|
-
const EXTENSIONS = "extensions";
|
|
107
|
-
const ROLLUP_EXTERNAL_SUFFIX = "__rollup_external";
|
|
108
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
109
|
-
0 && (module.exports = {
|
|
110
|
-
CACHE_DIR,
|
|
111
|
-
CACHE_TTL_DIR,
|
|
112
|
-
CHANGELOG_MD,
|
|
113
|
-
DOT_GITHUB,
|
|
114
|
-
DOT_GIT_DIR,
|
|
115
|
-
DOT_PACKAGE_LOCK_JSON,
|
|
116
|
-
DOT_SOCKET_DIR,
|
|
117
|
-
ESLINT_CONFIG_JS,
|
|
118
|
-
EXTENSIONS,
|
|
119
|
-
EXTENSIONS_JSON,
|
|
120
|
-
EXT_CJS,
|
|
121
|
-
EXT_CMD,
|
|
122
|
-
EXT_CTS,
|
|
123
|
-
EXT_DTS,
|
|
124
|
-
EXT_JS,
|
|
125
|
-
EXT_JSON,
|
|
126
|
-
EXT_LOCK,
|
|
127
|
-
EXT_LOCKB,
|
|
128
|
-
EXT_MD,
|
|
129
|
-
EXT_MJS,
|
|
130
|
-
EXT_MTS,
|
|
131
|
-
EXT_PS1,
|
|
132
|
-
EXT_YAML,
|
|
133
|
-
EXT_YML,
|
|
134
|
-
GITIGNORE,
|
|
135
|
-
LICENSE,
|
|
136
|
-
LICENSE_GLOB,
|
|
137
|
-
LICENSE_GLOB_RECURSIVE,
|
|
138
|
-
LICENSE_MD,
|
|
139
|
-
LICENSE_ORIGINAL,
|
|
140
|
-
LICENSE_ORIGINAL_GLOB,
|
|
141
|
-
LICENSE_ORIGINAL_GLOB_RECURSIVE,
|
|
142
|
-
MANIFEST_JSON,
|
|
143
|
-
NODE_MODULES,
|
|
144
|
-
NODE_MODULES_GLOB_RECURSIVE,
|
|
145
|
-
PACKAGE_JSON,
|
|
146
|
-
README_GLOB,
|
|
147
|
-
README_GLOB_RECURSIVE,
|
|
148
|
-
README_MD,
|
|
149
|
-
ROLLUP_EXTERNAL_SUFFIX,
|
|
150
|
-
SLASH_NODE_MODULES_SLASH,
|
|
151
|
-
TSCONFIG_JSON
|
|
152
|
-
});
|
|
File without changes
|
|
File without changes
|