binary-collections 2.0.14 → 2.0.15
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/.opencode/plugins/opencode-request-logger/README.md +44 -0
- package/.venv/Lib/site-packages/pyarrow/tests/data/orc/README.md +22 -0
- package/docs-src/install-opencode-plugins.md +86 -0
- package/docs-src/opencode-cli.md +38 -10
- package/lib/binary-collections/config-types.cjs +17 -0
- package/lib/binary-collections/config-types.d.ts +12 -0
- package/lib/binary-collections/config-types.js +2 -0
- package/lib/binary-collections/config-types.mjs +7 -0
- package/lib/binary-collections/config.cjs +16 -8
- package/lib/binary-collections/config.d.cts +18 -10
- package/lib/binary-collections/config.mjs +1 -1
- package/lib/binary-collections/findScript.cjs +8 -6
- package/lib/binary-collections/findScript.mjs +2 -2
- package/lib/binary-collections/listScript.cjs +8 -6
- package/lib/binary-collections/listScript.mjs +2 -2
- package/lib/binary-collections.cjs +8 -6
- package/lib/binary-collections.mjs +3 -3
- package/lib/changelog.cjs +142 -4
- package/lib/changelog.mjs +9 -5
- package/lib/{chunk-SARIXFHP.mjs → chunk-3T6AMFI3.mjs} +16 -8
- package/lib/{chunk-3F6EIHYG.mjs → chunk-3ZF2QMDK.mjs} +3 -3
- package/lib/chunk-B77D3SR4.mjs +28 -0
- package/lib/chunk-BPED62FN.mjs +115 -0
- package/lib/{chunk-XI67TI46.mjs → chunk-DHFRWM2W.mjs} +1 -1
- package/lib/{chunk-2SJKVOTN.mjs → chunk-DPEE3FBB.mjs} +1 -1
- package/lib/{chunk-UYNBNLV5.mjs → chunk-H7AE4IO3.mjs} +1 -1
- package/lib/{chunk-YWSLMAQ7.mjs → chunk-KCJYREA2.mjs} +14 -12
- package/lib/{chunk-JK3MG2KF.mjs → chunk-NHD4HLSU.mjs} +1 -1
- package/lib/{chunk-I3O5ZRYU.mjs → chunk-OWNVMKAA.mjs} +1 -1
- package/lib/chunk-SKVF4TMD.mjs +59 -0
- package/lib/{chunk-SJYP66BO.mjs → chunk-TDUUOAQD.mjs} +1 -1
- package/lib/{chunk-D42YBRZW.mjs → chunk-UAEKSLAX.mjs} +1 -1
- package/lib/chunk-V6PTSDW5.mjs +82 -0
- package/lib/{chunk-AJ3OIYYP.mjs → chunk-WNUEY6VJ.mjs} +8 -6
- package/lib/{chunk-YLV4QATP.mjs → chunk-Z53IUBUN.mjs} +6 -5
- package/lib/{chunk-JMUFQSPE.mjs → chunk-Z7RM46Q4.mjs} +1 -1
- package/lib/cross-env/index.mjs +3 -3
- package/lib/git/git-diff-cli.cjs +16 -8
- package/lib/git/git-diff-cli.mjs +3 -3
- package/lib/git/git-diff.cjs +16 -8
- package/lib/git/git-diff.mjs +3 -3
- package/lib/git/git-fix.cjs +16 -8
- package/lib/git/git-fix.mjs +2 -2
- package/lib/git/user-config.cjs +16 -8
- package/lib/git/user-config.mjs +2 -2
- package/lib/github-workflows/clean-github-actions-caches-cli.cjs +16 -8
- package/lib/github-workflows/clean-github-actions-caches-cli.mjs +2 -2
- package/lib/github-workflows/clean-github-actions-caches.cjs +16 -8
- package/lib/github-workflows/clean-github-actions-caches.mjs +2 -2
- package/lib/github-workflows/get-latest-workflow-status-cli.cjs +16 -8
- package/lib/github-workflows/get-latest-workflow-status-cli.mjs +2 -2
- package/lib/github-workflows/utils.cjs +16 -8
- package/lib/github-workflows/utils.mjs +2 -2
- package/lib/github-workflows/workflow-badge-cli.cjs +16 -8
- package/lib/github-workflows/workflow-badge-cli.mjs +4 -4
- package/lib/node-cache-cleaner-cli.mjs +3 -3
- package/lib/opencode/cli/auth-rotate.cjs +343 -28
- package/lib/opencode/cli/auth-rotate.d.ts +3 -1
- package/lib/opencode/cli/auth-rotate.js +10 -15
- package/lib/opencode/cli/auth-rotate.mjs +6 -2
- package/lib/opencode/cli/auth-rotate.runner.cjs +454 -0
- package/lib/opencode/cli/auth-rotate.runner.d.ts +1 -0
- package/lib/opencode/cli/auth-rotate.runner.js +8 -0
- package/lib/opencode/cli/auth-rotate.runner.mjs +21 -0
- package/lib/opencode/install-opencode-plugins-cli.cjs +82 -0
- package/lib/opencode/install-opencode-plugins-cli.d.ts +1 -0
- package/lib/opencode/install-opencode-plugins-cli.js +78 -0
- package/lib/opencode/install-opencode-plugins-cli.mjs +65 -0
- package/lib/opencode/utils/check-api.cjs +332 -18
- package/lib/opencode/utils/check-api.d.ts +5 -1
- package/lib/opencode/utils/check-api.js +101 -15
- package/lib/opencode/utils/check-api.mjs +5 -1
- package/lib/opencode/utils/check-api.runner.cjs +0 -0
- package/lib/opencode/utils/check-api.runner.d.ts +0 -0
- package/lib/opencode/utils/check-api.runner.js +1 -0
- package/lib/opencode/utils/check-api.runner.mjs +7 -0
- package/lib/opencode-cli.cjs +352 -29
- package/lib/opencode-cli.js +3 -2
- package/lib/opencode-cli.mjs +11 -6
- package/lib/package-resolutions-updater-cli.cjs +16 -8
- package/lib/package-resolutions-updater-cli.mjs +2 -2
- package/lib/package-resolutions-updater.cjs +16 -8
- package/lib/package-resolutions-updater.mjs +2 -2
- package/lib/print-directory-tree.cjs +16 -8
- package/lib/print-directory-tree.mjs +1 -1
- package/lib/print-tarball-tree-cli.cjs +305 -0
- package/lib/print-tarball-tree-cli.d.mts +2 -0
- package/lib/print-tarball-tree-cli.mjs +54 -0
- package/lib/print-tarball-tree.cjs +43 -216
- package/lib/print-tarball-tree.d.mts +4 -1
- package/lib/print-tarball-tree.mjs +12 -66
- package/lib/rmpath-cli.cjs +16 -8
- package/lib/rmpath-cli.mjs +2 -2
- package/lib/rmpath.cjs +16 -8
- package/lib/rmpath.mjs +2 -2
- package/lib/run-by-checksum/hash.cjs +45 -67
- package/lib/run-by-checksum/{hash.d.ts → hash.d.cts} +9 -2
- package/lib/run-by-checksum/hash.mjs +3 -7
- package/lib/run-by-checksum/run.cjs +95 -58
- package/lib/run-by-checksum/run.js +3 -3
- package/lib/run-by-checksum/run.mjs +2 -2
- package/lib/run-by-checksum-cli.cjs +96 -74
- package/lib/run-by-checksum-cli.mjs +2 -2
- package/lib/submodule-install.cjs +16 -8
- package/lib/submodule-install.mjs +1 -1
- package/lib/submodule-remove-cli.cjs +16 -8
- package/lib/submodule-remove-cli.mjs +2 -2
- package/lib/submodule-remove.cjs +16 -8
- package/lib/submodule-remove.mjs +2 -2
- package/lib/utils/isDebug.cjs +13 -0
- package/lib/utils/isDebug.d.cts +9 -0
- package/lib/utils/isDebug.mjs +6 -0
- package/package.json +9 -7
- package/readme.md +63 -0
- package/releases/readme.md +1 -1
- package/lib/chunk-546KAIYT.mjs +0 -113
- package/lib/chunk-5WAOOOGZ.mjs +0 -77
- package/lib/chunk-72XTQ3CK.mjs +0 -45
- package/lib/chunk-7Q6YEUQF.mjs +0 -246
- package/lib/chunk-AQZ7LMFS.mjs +0 -100
- package/lib/chunk-BDCMTOZI.mjs +0 -246
- package/lib/chunk-BEUM4LH4.mjs +0 -184
- package/lib/chunk-BO4TZS4Q.mjs +0 -246
- package/lib/chunk-BZWVHODJ.mjs +0 -62
- package/lib/chunk-CM3IC5YC.mjs +0 -226
- package/lib/chunk-FR3DMHJC.mjs +0 -146
- package/lib/chunk-H44UWUFY.mjs +0 -105
- package/lib/chunk-JVMLKHD2.mjs +0 -62
- package/lib/chunk-KAT2JNLZ.mjs +0 -146
- package/lib/chunk-KRCPFWIF.mjs +0 -193
- package/lib/chunk-LVSPEFU2.mjs +0 -86
- package/lib/chunk-MCCMMZSM.mjs +0 -60
- package/lib/chunk-MGPYPKIE.mjs +0 -109
- package/lib/chunk-OA2RKEY3.mjs +0 -162
- package/lib/chunk-PAZH45HS.mjs +0 -41
- package/lib/chunk-QZMGBDSA.mjs +0 -32
- package/lib/chunk-RDGDLSPD.mjs +0 -76
- package/lib/chunk-RKPIBGKE.mjs +0 -61
- package/lib/chunk-SWUAEY4H.mjs +0 -44
- package/lib/chunk-UAIF5VIA.mjs +0 -89
- package/lib/chunk-UHPFLJXH.mjs +0 -227
- package/lib/chunk-WOC4FZ6F.mjs +0 -164
- package/lib/chunk-WSHVPGNM.mjs +0 -44
- package/lib/run-by-checksum/hash.js +0 -119
- package/readme.html +0 -784
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "binary-collections",
|
|
11
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.15",
|
|
12
12
|
description: "Utility to clean any programming caches and more",
|
|
13
13
|
keywords: [
|
|
14
14
|
"cache",
|
|
@@ -68,7 +68,8 @@ var require_package = __commonJS({
|
|
|
68
68
|
"update:ncu": "npx npm-check-updates -u --enginesNode --root -x jest -x @types/jest -x babel-jest -x @babel/core -x @babel/preset-env -x @babel/preset-typescript -x ts-jest -x eslint -x @eslint/eslintrc -x @eslint/js -x @typescript-eslint/eslint-plugin -x @typescript-eslint/parser -x eslint-config-prettier -x eslint-plugin-prettier -x typescript-eslint -x prettier -x typescript -x ts-node -x @yarnpkg/core",
|
|
69
69
|
"update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs",
|
|
70
70
|
serve: "php -S 0.0.0.0:8490",
|
|
71
|
-
upload: "node scripts/upload-backend.mjs"
|
|
71
|
+
upload: "node scripts/upload-backend.mjs",
|
|
72
|
+
"mkdocs-serve": 'mkdocs serve -a "0.0.0.0:5173" --livereload'
|
|
72
73
|
},
|
|
73
74
|
repository: {
|
|
74
75
|
type: "git",
|
|
@@ -79,6 +80,7 @@ var require_package = __commonJS({
|
|
|
79
80
|
"ansi-colors": "^4.1.3",
|
|
80
81
|
axios: "^1.16.1",
|
|
81
82
|
"better-sqlite3": "^12.10.0",
|
|
83
|
+
cosmiconfig: "^9.0.1",
|
|
82
84
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
|
|
83
85
|
"crypto-js": "^4.2.0",
|
|
84
86
|
dotenv: "^17.4.2",
|
|
@@ -88,6 +90,7 @@ var require_package = __commonJS({
|
|
|
88
90
|
minimatch: "^10.2.5",
|
|
89
91
|
minimist: "^1.2.8",
|
|
90
92
|
openai: "^6.41.0",
|
|
93
|
+
"proxy-agent": "^8.0.1",
|
|
91
94
|
"ps-node": "^0.1.6",
|
|
92
95
|
puppeteer: "^25.0.4",
|
|
93
96
|
"puppeteer-extra": "^3.3.6",
|
|
@@ -97,8 +100,7 @@ var require_package = __commonJS({
|
|
|
97
100
|
upath: "^3.0.7",
|
|
98
101
|
which: "^7.0.0",
|
|
99
102
|
yaml: "^2.9.0",
|
|
100
|
-
yarn: "^1.22.22"
|
|
101
|
-
zlib: "^1.0.5"
|
|
103
|
+
yarn: "^1.22.22"
|
|
102
104
|
},
|
|
103
105
|
devDependencies: {
|
|
104
106
|
"@babel/core": "^7.29.0",
|
|
@@ -154,7 +156,7 @@ var require_package = __commonJS({
|
|
|
154
156
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/eb82c8e0e60ce425fdf6e89cd53f4391bb8c77cd/release/cross-spawn.tgz",
|
|
155
157
|
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/7a28dad83c17abfc4b6ccd2b7327c39ff67adfe5/release/git-command-helper.tgz",
|
|
156
158
|
"sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/44e5c7b79b4e60f8c2d34857c27b8ce677d7493e/packages/sbg-utility/release/sbg-utility.tgz",
|
|
157
|
-
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/
|
|
159
|
+
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/822b872f18985462f0da358579cd6493472a2ee0/release/dimaslanjaka-eslint-base-config.tgz"
|
|
158
160
|
},
|
|
159
161
|
bin: {
|
|
160
162
|
"actions-badge": "lib/github-workflows/workflow-badge-cli.cjs",
|
|
@@ -227,7 +229,7 @@ var require_package = __commonJS({
|
|
|
227
229
|
"pkg-res-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
228
230
|
"pkg-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
229
231
|
"print-directory-tree": "lib/print-directory-tree.cjs",
|
|
230
|
-
"print-tarball-tree": "lib/print-tarball-tree.cjs",
|
|
232
|
+
"print-tarball-tree": "lib/print-tarball-tree-cli.cjs",
|
|
231
233
|
"print-tree": "lib/print-directory-tree.cjs",
|
|
232
234
|
prod: "binaries/prod.cjs",
|
|
233
235
|
py: "binaries/py.cjs",
|
|
@@ -5,15 +5,16 @@ import {
|
|
|
5
5
|
saveCache
|
|
6
6
|
} from "./chunk-QD4T255Z.mjs";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-MCCMMZSM.mjs";
|
|
8
|
+
require_hash
|
|
9
|
+
} from "./chunk-V6PTSDW5.mjs";
|
|
11
10
|
import {
|
|
11
|
+
__toESM,
|
|
12
12
|
init_esm_shims
|
|
13
13
|
} from "./chunk-QQ4A6DLD.mjs";
|
|
14
14
|
|
|
15
15
|
// src/run-by-checksum/run.js
|
|
16
16
|
init_esm_shims();
|
|
17
|
+
var import_hash = __toESM(require_hash(), 1);
|
|
17
18
|
import { spawn } from "child_process";
|
|
18
19
|
async function runChecksum({
|
|
19
20
|
patterns = [],
|
|
@@ -34,8 +35,8 @@ async function runChecksum({
|
|
|
34
35
|
console.log("No patterns provided, skipping checksum runner.");
|
|
35
36
|
process.exit(1);
|
|
36
37
|
}
|
|
37
|
-
const files = getAllFiles({ patterns, ignore, cwd });
|
|
38
|
-
const checksum = buildChecksum(files);
|
|
38
|
+
const files = (0, import_hash.getAllFiles)({ patterns, ignore, cwd });
|
|
39
|
+
const checksum = (0, import_hash.buildChecksum)(files);
|
|
39
40
|
const cacheFile = getCacheFile({ patterns, ignore, cwd });
|
|
40
41
|
const cache = loadCache(cacheFile);
|
|
41
42
|
if ((cache == null ? void 0 : cache.checksum) === checksum) {
|
package/lib/cross-env/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
varValueConvert
|
|
4
|
-
} from "../chunk-6C7KTYGZ.mjs";
|
|
5
2
|
import {
|
|
6
3
|
commandConvert
|
|
7
4
|
} from "../chunk-OBXLTXFJ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
varValueConvert
|
|
7
|
+
} from "../chunk-6C7KTYGZ.mjs";
|
|
8
8
|
import "../chunk-QII2EKCS.mjs";
|
|
9
9
|
import {
|
|
10
10
|
init_esm_shims
|
package/lib/git/git-diff-cli.cjs
CHANGED
|
@@ -143,25 +143,33 @@ var require_config = __commonJS({
|
|
|
143
143
|
var minimistLib = require("minimist");
|
|
144
144
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
145
145
|
var dotenv = require("dotenv");
|
|
146
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
146
147
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
147
148
|
loadDotenv();
|
|
148
149
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
149
150
|
string: ["token"]
|
|
150
151
|
});
|
|
151
152
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
152
|
-
function getTempDir() {
|
|
153
|
-
return process.env.TEMP_DIR || path3.join(process.cwd(), "tmp");
|
|
154
|
-
}
|
|
155
153
|
function getTempPath2(...segments) {
|
|
156
|
-
return path3.join(
|
|
154
|
+
return path3.join(process.env.TEMP_DIR || path3.join(process.cwd(), "tmp"), ...segments);
|
|
155
|
+
}
|
|
156
|
+
async function getConfig(options = {}) {
|
|
157
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
158
|
+
searchStrategy: "project",
|
|
159
|
+
stopDir: options.stopDir
|
|
160
|
+
});
|
|
161
|
+
try {
|
|
162
|
+
const result = await explorer.search(options.searchFrom);
|
|
163
|
+
return result ? result.config : null;
|
|
164
|
+
} catch {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
157
167
|
}
|
|
158
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
159
168
|
module2.exports = {
|
|
160
|
-
getTempDir,
|
|
161
169
|
getTempPath: getTempPath2,
|
|
162
|
-
TEMP_BASE_DIR,
|
|
163
170
|
GITHUB_ACCESS_TOKEN,
|
|
164
|
-
loadDotenv
|
|
171
|
+
loadDotenv,
|
|
172
|
+
getConfig
|
|
165
173
|
};
|
|
166
174
|
}
|
|
167
175
|
});
|
package/lib/git/git-diff-cli.mjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
mainGitDiff
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-SARIXFHP.mjs";
|
|
7
|
-
import "../chunk-J4M5EL5P.mjs";
|
|
5
|
+
} from "../chunk-3ZF2QMDK.mjs";
|
|
8
6
|
import "../chunk-GAGABICI.mjs";
|
|
7
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
8
|
+
import "../chunk-J4M5EL5P.mjs";
|
|
9
9
|
import "../chunk-6RK5UCTP.mjs";
|
|
10
10
|
import {
|
|
11
11
|
init_esm_shims
|
package/lib/git/git-diff.cjs
CHANGED
|
@@ -148,25 +148,33 @@ var require_config = __commonJS({
|
|
|
148
148
|
var minimistLib = require("minimist");
|
|
149
149
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
150
150
|
var dotenv = require("dotenv");
|
|
151
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
151
152
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
152
153
|
loadDotenv();
|
|
153
154
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
154
155
|
string: ["token"]
|
|
155
156
|
});
|
|
156
157
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
157
|
-
function getTempDir() {
|
|
158
|
-
return process.env.TEMP_DIR || path3.join(process.cwd(), "tmp");
|
|
159
|
-
}
|
|
160
158
|
function getTempPath2(...segments) {
|
|
161
|
-
return path3.join(
|
|
159
|
+
return path3.join(process.env.TEMP_DIR || path3.join(process.cwd(), "tmp"), ...segments);
|
|
160
|
+
}
|
|
161
|
+
async function getConfig(options = {}) {
|
|
162
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
163
|
+
searchStrategy: "project",
|
|
164
|
+
stopDir: options.stopDir
|
|
165
|
+
});
|
|
166
|
+
try {
|
|
167
|
+
const result = await explorer.search(options.searchFrom);
|
|
168
|
+
return result ? result.config : null;
|
|
169
|
+
} catch {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
162
172
|
}
|
|
163
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
164
173
|
module2.exports = {
|
|
165
|
-
getTempDir,
|
|
166
174
|
getTempPath: getTempPath2,
|
|
167
|
-
TEMP_BASE_DIR,
|
|
168
175
|
GITHUB_ACCESS_TOKEN,
|
|
169
|
-
loadDotenv
|
|
176
|
+
loadDotenv,
|
|
177
|
+
getConfig
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
180
|
});
|
package/lib/git/git-diff.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
git_diff_default,
|
|
10
10
|
mainGitDiff,
|
|
11
11
|
runGitDiff
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-SARIXFHP.mjs";
|
|
14
|
-
import "../chunk-J4M5EL5P.mjs";
|
|
12
|
+
} from "../chunk-3ZF2QMDK.mjs";
|
|
15
13
|
import "../chunk-GAGABICI.mjs";
|
|
14
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
15
|
+
import "../chunk-J4M5EL5P.mjs";
|
|
16
16
|
import "../chunk-6RK5UCTP.mjs";
|
|
17
17
|
import "../chunk-QQ4A6DLD.mjs";
|
|
18
18
|
export {
|
package/lib/git/git-fix.cjs
CHANGED
|
@@ -119,25 +119,33 @@ var require_config = __commonJS({
|
|
|
119
119
|
var minimistLib = require("minimist");
|
|
120
120
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
121
121
|
var dotenv = require("dotenv");
|
|
122
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
122
123
|
var loadDotenv2 = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
123
124
|
loadDotenv2();
|
|
124
125
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
125
126
|
string: ["token"]
|
|
126
127
|
});
|
|
127
128
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
128
|
-
function getTempDir() {
|
|
129
|
-
return process.env.TEMP_DIR || path2.join(process.cwd(), "tmp");
|
|
130
|
-
}
|
|
131
129
|
function getTempPath(...segments) {
|
|
132
|
-
return path2.join(
|
|
130
|
+
return path2.join(process.env.TEMP_DIR || path2.join(process.cwd(), "tmp"), ...segments);
|
|
131
|
+
}
|
|
132
|
+
async function getConfig(options2 = {}) {
|
|
133
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
134
|
+
searchStrategy: "project",
|
|
135
|
+
stopDir: options2.stopDir
|
|
136
|
+
});
|
|
137
|
+
try {
|
|
138
|
+
const result = await explorer.search(options2.searchFrom);
|
|
139
|
+
return result ? result.config : null;
|
|
140
|
+
} catch {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
133
143
|
}
|
|
134
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
135
144
|
module2.exports = {
|
|
136
|
-
getTempDir,
|
|
137
145
|
getTempPath,
|
|
138
|
-
TEMP_BASE_DIR,
|
|
139
146
|
GITHUB_ACCESS_TOKEN,
|
|
140
|
-
loadDotenv: loadDotenv2
|
|
147
|
+
loadDotenv: loadDotenv2,
|
|
148
|
+
getConfig
|
|
141
149
|
};
|
|
142
150
|
}
|
|
143
151
|
});
|
package/lib/git/git-fix.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_user_config
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-H7AE4IO3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
require_line_endings
|
|
8
8
|
} from "../chunk-ZDMWBSYF.mjs";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "../chunk-A3VUZEJK.mjs";
|
|
22
22
|
import {
|
|
23
23
|
require_config
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-3T6AMFI3.mjs";
|
|
25
25
|
import "../chunk-J4M5EL5P.mjs";
|
|
26
26
|
import {
|
|
27
27
|
require_utils
|
package/lib/git/user-config.cjs
CHANGED
|
@@ -118,25 +118,33 @@ var require_config = __commonJS({
|
|
|
118
118
|
var minimistLib = require("minimist");
|
|
119
119
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
120
120
|
var dotenv = require("dotenv");
|
|
121
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
121
122
|
var loadDotenv2 = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
122
123
|
loadDotenv2();
|
|
123
124
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
124
125
|
string: ["token"]
|
|
125
126
|
});
|
|
126
127
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
127
|
-
function getTempDir() {
|
|
128
|
-
return process.env.TEMP_DIR || path.join(process.cwd(), "tmp");
|
|
129
|
-
}
|
|
130
128
|
function getTempPath(...segments) {
|
|
131
|
-
return path.join(
|
|
129
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
130
|
+
}
|
|
131
|
+
async function getConfig(options = {}) {
|
|
132
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
133
|
+
searchStrategy: "project",
|
|
134
|
+
stopDir: options.stopDir
|
|
135
|
+
});
|
|
136
|
+
try {
|
|
137
|
+
const result = await explorer.search(options.searchFrom);
|
|
138
|
+
return result ? result.config : null;
|
|
139
|
+
} catch {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
132
142
|
}
|
|
133
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
134
143
|
module2.exports = {
|
|
135
|
-
getTempDir,
|
|
136
144
|
getTempPath,
|
|
137
|
-
TEMP_BASE_DIR,
|
|
138
145
|
GITHUB_ACCESS_TOKEN,
|
|
139
|
-
loadDotenv: loadDotenv2
|
|
146
|
+
loadDotenv: loadDotenv2,
|
|
147
|
+
getConfig
|
|
140
148
|
};
|
|
141
149
|
}
|
|
142
150
|
});
|
package/lib/git/user-config.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_user_config
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-H7AE4IO3.mjs";
|
|
5
5
|
import "../chunk-A3VUZEJK.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
7
7
|
import "../chunk-J4M5EL5P.mjs";
|
|
8
8
|
import "../chunk-6RK5UCTP.mjs";
|
|
9
9
|
import "../chunk-QQ4A6DLD.mjs";
|
|
@@ -286,25 +286,33 @@ var require_config = __commonJS({
|
|
|
286
286
|
var minimistLib = require("minimist");
|
|
287
287
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
288
288
|
var dotenv = require("dotenv");
|
|
289
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
289
290
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
290
291
|
loadDotenv();
|
|
291
292
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
292
293
|
string: ["token"]
|
|
293
294
|
});
|
|
294
295
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
295
|
-
function getTempDir() {
|
|
296
|
-
return process.env.TEMP_DIR || path.join(process.cwd(), "tmp");
|
|
297
|
-
}
|
|
298
296
|
function getTempPath(...segments) {
|
|
299
|
-
return path.join(
|
|
297
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
298
|
+
}
|
|
299
|
+
async function getConfig(options = {}) {
|
|
300
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
301
|
+
searchStrategy: "project",
|
|
302
|
+
stopDir: options.stopDir
|
|
303
|
+
});
|
|
304
|
+
try {
|
|
305
|
+
const result = await explorer.search(options.searchFrom);
|
|
306
|
+
return result ? result.config : null;
|
|
307
|
+
} catch {
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
300
310
|
}
|
|
301
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
302
311
|
module2.exports = {
|
|
303
|
-
getTempDir,
|
|
304
312
|
getTempPath,
|
|
305
|
-
TEMP_BASE_DIR,
|
|
306
313
|
GITHUB_ACCESS_TOKEN,
|
|
307
|
-
loadDotenv
|
|
314
|
+
loadDotenv,
|
|
315
|
+
getConfig
|
|
308
316
|
};
|
|
309
317
|
}
|
|
310
318
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_clean_github_actions_caches
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-Z7RM46Q4.mjs";
|
|
5
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
6
6
|
import "../chunk-J4M5EL5P.mjs";
|
|
7
7
|
import {
|
|
8
8
|
require_utils
|
|
@@ -285,25 +285,33 @@ var require_config = __commonJS({
|
|
|
285
285
|
var minimistLib = require("minimist");
|
|
286
286
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
287
287
|
var dotenv = require("dotenv");
|
|
288
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
288
289
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
289
290
|
loadDotenv();
|
|
290
291
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
291
292
|
string: ["token"]
|
|
292
293
|
});
|
|
293
294
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
294
|
-
function getTempDir() {
|
|
295
|
-
return process.env.TEMP_DIR || path.join(process.cwd(), "tmp");
|
|
296
|
-
}
|
|
297
295
|
function getTempPath(...segments) {
|
|
298
|
-
return path.join(
|
|
296
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
297
|
+
}
|
|
298
|
+
async function getConfig(options = {}) {
|
|
299
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
300
|
+
searchStrategy: "project",
|
|
301
|
+
stopDir: options.stopDir
|
|
302
|
+
});
|
|
303
|
+
try {
|
|
304
|
+
const result = await explorer.search(options.searchFrom);
|
|
305
|
+
return result ? result.config : null;
|
|
306
|
+
} catch {
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
299
309
|
}
|
|
300
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
301
310
|
module2.exports = {
|
|
302
|
-
getTempDir,
|
|
303
311
|
getTempPath,
|
|
304
|
-
TEMP_BASE_DIR,
|
|
305
312
|
GITHUB_ACCESS_TOKEN,
|
|
306
|
-
loadDotenv
|
|
313
|
+
loadDotenv,
|
|
314
|
+
getConfig
|
|
307
315
|
};
|
|
308
316
|
}
|
|
309
317
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_clean_github_actions_caches
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-Z7RM46Q4.mjs";
|
|
5
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
6
6
|
import "../chunk-J4M5EL5P.mjs";
|
|
7
7
|
import "../chunk-6RK5UCTP.mjs";
|
|
8
8
|
import "../chunk-QQ4A6DLD.mjs";
|
|
@@ -307,25 +307,33 @@ var require_config = __commonJS({
|
|
|
307
307
|
var minimistLib = require("minimist");
|
|
308
308
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
309
309
|
var dotenv = require("dotenv");
|
|
310
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
310
311
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
311
312
|
loadDotenv();
|
|
312
313
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
313
314
|
string: ["token"]
|
|
314
315
|
});
|
|
315
316
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
316
|
-
function getTempDir() {
|
|
317
|
-
return process.env.TEMP_DIR || path.join(process.cwd(), "tmp");
|
|
318
|
-
}
|
|
319
317
|
function getTempPath(...segments) {
|
|
320
|
-
return path.join(
|
|
318
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
319
|
+
}
|
|
320
|
+
async function getConfig(options = {}) {
|
|
321
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
322
|
+
searchStrategy: "project",
|
|
323
|
+
stopDir: options.stopDir
|
|
324
|
+
});
|
|
325
|
+
try {
|
|
326
|
+
const result = await explorer.search(options.searchFrom);
|
|
327
|
+
return result ? result.config : null;
|
|
328
|
+
} catch {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
321
331
|
}
|
|
322
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
323
332
|
module2.exports = {
|
|
324
|
-
getTempDir,
|
|
325
333
|
getTempPath,
|
|
326
|
-
TEMP_BASE_DIR,
|
|
327
334
|
GITHUB_ACCESS_TOKEN,
|
|
328
|
-
loadDotenv
|
|
335
|
+
loadDotenv,
|
|
336
|
+
getConfig
|
|
329
337
|
};
|
|
330
338
|
}
|
|
331
339
|
});
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "../chunk-7N52Z4IJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
require_utils as require_utils2
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-DPEE3FBB.mjs";
|
|
9
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
10
10
|
import "../chunk-J4M5EL5P.mjs";
|
|
11
11
|
import {
|
|
12
12
|
require_utils
|
|
@@ -118,25 +118,33 @@ var require_config = __commonJS({
|
|
|
118
118
|
var minimistLib = require("minimist");
|
|
119
119
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
120
120
|
var dotenv = require("dotenv");
|
|
121
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
121
122
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
122
123
|
loadDotenv();
|
|
123
124
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
124
125
|
string: ["token"]
|
|
125
126
|
});
|
|
126
127
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
127
|
-
function getTempDir() {
|
|
128
|
-
return process.env.TEMP_DIR || path.join(process.cwd(), "tmp");
|
|
129
|
-
}
|
|
130
128
|
function getTempPath(...segments) {
|
|
131
|
-
return path.join(
|
|
129
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
130
|
+
}
|
|
131
|
+
async function getConfig(options = {}) {
|
|
132
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
133
|
+
searchStrategy: "project",
|
|
134
|
+
stopDir: options.stopDir
|
|
135
|
+
});
|
|
136
|
+
try {
|
|
137
|
+
const result = await explorer.search(options.searchFrom);
|
|
138
|
+
return result ? result.config : null;
|
|
139
|
+
} catch {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
132
142
|
}
|
|
133
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
134
143
|
module2.exports = {
|
|
135
|
-
getTempDir,
|
|
136
144
|
getTempPath,
|
|
137
|
-
TEMP_BASE_DIR,
|
|
138
145
|
GITHUB_ACCESS_TOKEN,
|
|
139
|
-
loadDotenv
|
|
146
|
+
loadDotenv,
|
|
147
|
+
getConfig
|
|
140
148
|
};
|
|
141
149
|
}
|
|
142
150
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_utils
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DPEE3FBB.mjs";
|
|
5
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
6
6
|
import "../chunk-J4M5EL5P.mjs";
|
|
7
7
|
import "../chunk-QQ4A6DLD.mjs";
|
|
8
8
|
export default require_utils();
|
|
@@ -307,25 +307,33 @@ var require_config = __commonJS({
|
|
|
307
307
|
var minimistLib = require("minimist");
|
|
308
308
|
var { findEnvWithToken } = require_findEnvFiles();
|
|
309
309
|
var dotenv = require("dotenv");
|
|
310
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
310
311
|
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
311
312
|
loadDotenv();
|
|
312
313
|
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
313
314
|
string: ["token"]
|
|
314
315
|
});
|
|
315
316
|
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
316
|
-
function getTempDir() {
|
|
317
|
-
return process.env.TEMP_DIR || path2.join(process.cwd(), "tmp");
|
|
318
|
-
}
|
|
319
317
|
function getTempPath(...segments) {
|
|
320
|
-
return path2.join(
|
|
318
|
+
return path2.join(process.env.TEMP_DIR || path2.join(process.cwd(), "tmp"), ...segments);
|
|
319
|
+
}
|
|
320
|
+
async function getConfig(options = {}) {
|
|
321
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
322
|
+
searchStrategy: "project",
|
|
323
|
+
stopDir: options.stopDir
|
|
324
|
+
});
|
|
325
|
+
try {
|
|
326
|
+
const result = await explorer.search(options.searchFrom);
|
|
327
|
+
return result ? result.config : null;
|
|
328
|
+
} catch {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
321
331
|
}
|
|
322
|
-
var TEMP_BASE_DIR = getTempDir();
|
|
323
332
|
module2.exports = {
|
|
324
|
-
getTempDir,
|
|
325
333
|
getTempPath,
|
|
326
|
-
TEMP_BASE_DIR,
|
|
327
334
|
GITHUB_ACCESS_TOKEN,
|
|
328
|
-
loadDotenv
|
|
335
|
+
loadDotenv,
|
|
336
|
+
getConfig
|
|
329
337
|
};
|
|
330
338
|
}
|
|
331
339
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
require_utils as require_utils2
|
|
5
|
+
} from "../chunk-DPEE3FBB.mjs";
|
|
3
6
|
import {
|
|
4
7
|
generateBadge
|
|
5
8
|
} from "../chunk-X7UVQ6ZC.mjs";
|
|
6
|
-
import
|
|
7
|
-
require_utils as require_utils2
|
|
8
|
-
} from "../chunk-KAT2JNLZ.mjs";
|
|
9
|
-
import "../chunk-SARIXFHP.mjs";
|
|
9
|
+
import "../chunk-3T6AMFI3.mjs";
|
|
10
10
|
import "../chunk-J4M5EL5P.mjs";
|
|
11
11
|
import {
|
|
12
12
|
require_utils
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
cleanNpmCache
|
|
5
|
-
} from "./chunk-R5FJOR63.mjs";
|
|
6
3
|
import {
|
|
7
4
|
cleanNpxCache
|
|
8
5
|
} from "./chunk-OXV52GD5.mjs";
|
|
9
6
|
import {
|
|
10
7
|
cleanYarnCache
|
|
11
8
|
} from "./chunk-UXCFNAR6.mjs";
|
|
9
|
+
import {
|
|
10
|
+
cleanNpmCache
|
|
11
|
+
} from "./chunk-R5FJOR63.mjs";
|
|
12
12
|
import {
|
|
13
13
|
require_utils
|
|
14
14
|
} from "./chunk-6RK5UCTP.mjs";
|