binary-collections 2.0.6 → 2.0.8

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.
Files changed (183) hide show
  1. package/bin/dir-tree.cmd +7 -0
  2. package/bin/git-diff +4 -0
  3. package/bin/git-diff.cmd +7 -0
  4. package/bin/{git-fix-encoding → git-fix} +1 -4
  5. package/bin/git-fix.cmd +7 -0
  6. package/bin/nodekill +0 -0
  7. package/bin/nodekill.cmd +0 -0
  8. package/bin/{submodule-install → submodule-install.txt} +0 -0
  9. package/bin/{submodule → submodule.txt} +0 -0
  10. package/lib/binary-collections-config.cjs +14 -0
  11. package/lib/binary-collections-config.d.mts +18 -0
  12. package/lib/binary-collections-config.d.ts +16 -0
  13. package/lib/binary-collections-config.js +39 -0
  14. package/lib/binary-collections-config.mjs +6 -0
  15. package/lib/binary-collections.cjs +105 -0
  16. package/lib/binary-collections.d.cts +2 -0
  17. package/lib/binary-collections.d.mts +121 -0
  18. package/lib/binary-collections.d.ts +121 -0
  19. package/lib/binary-collections.mjs +108 -0
  20. package/lib/chunk-4BYBVEYC.mjs +30 -0
  21. package/lib/chunk-AASHBCRW.mjs +57 -0
  22. package/lib/chunk-APBWENF6.mjs +135 -0
  23. package/lib/{chunk-M4IBUK4H.mjs → chunk-DPKAJKFO.mjs} +2 -4
  24. package/lib/chunk-EGSSKVDH.mjs +66 -0
  25. package/lib/{chunk-GA4DDV65.mjs → chunk-G3THLIDT.mjs} +3 -5
  26. package/lib/chunk-JGR2NW6D.mjs +187 -0
  27. package/lib/chunk-ONIBBBQ3.mjs +108 -0
  28. package/lib/chunk-SH3L6HHV.mjs +27 -0
  29. package/lib/chunk-VVEZVNIV.mjs +81 -0
  30. package/lib/{chunk-E75HJFJO.mjs → chunk-W3ENOM53.mjs} +2 -4
  31. package/lib/chunk-YV7DO3YV.mjs +48 -0
  32. package/lib/chunk-YX5U7XDR.mjs +58 -0
  33. package/lib/chunk-ZYAQRPUL.mjs +28 -0
  34. package/lib/clean-github-actions-caches.cjs +162 -0
  35. package/lib/clean-github-actions-caches.d.cts +1 -0
  36. package/lib/clean-github-actions-caches.d.mts +169 -0
  37. package/lib/clean-github-actions-caches.d.ts +169 -0
  38. package/lib/clean-github-actions-caches.mjs +132 -0
  39. package/lib/del-gradle.cjs +99 -15
  40. package/lib/del-gradle.d.ts +1 -2
  41. package/lib/del-gradle.js +12 -69
  42. package/lib/del-gradle.mjs +4 -6
  43. package/lib/del-node-modules.cjs +98 -14
  44. package/lib/del-node-modules.d.ts +1 -2
  45. package/lib/del-node-modules.js +11 -68
  46. package/lib/del-node-modules.mjs +3 -5
  47. package/lib/del-ps.cjs +98 -627
  48. package/lib/del-ps.d.ts +1 -2
  49. package/lib/del-ps.js +27 -702
  50. package/lib/del-ps.mjs +7 -12
  51. package/lib/del-yarn-caches.cjs +98 -14
  52. package/lib/del-yarn-caches.d.ts +1 -2
  53. package/lib/del-yarn-caches.js +6 -63
  54. package/lib/del-yarn-caches.mjs +3 -5
  55. package/lib/find-node-modules-cli.cjs +67 -0
  56. package/lib/find-node-modules-cli.d.mts +1 -0
  57. package/lib/find-node-modules-cli.d.ts +2 -0
  58. package/lib/find-node-modules-cli.js +3 -0
  59. package/lib/find-node-modules-cli.mjs +13 -0
  60. package/lib/find-node-modules.cjs +39 -9
  61. package/lib/find-node-modules.d.mts +12 -1
  62. package/lib/find-node-modules.d.ts +12 -2
  63. package/lib/find-node-modules.js +53 -12
  64. package/lib/find-node-modules.mjs +4 -19
  65. package/lib/git/gitattributes.cjs +171 -0
  66. package/lib/git/gitattributes.d.mts +35 -0
  67. package/lib/git/gitattributes.d.ts +33 -0
  68. package/lib/git/gitattributes.js +223 -0
  69. package/lib/git/gitattributes.mjs +6 -0
  70. package/lib/git/line-endings.cjs +74 -0
  71. package/lib/git/line-endings.d.cts +7 -0
  72. package/lib/git/line-endings.d.mts +83 -0
  73. package/lib/git/line-endings.d.ts +83 -0
  74. package/lib/git/line-endings.mjs +8 -0
  75. package/lib/git/normalize.cjs +42 -0
  76. package/lib/git/normalize.d.cts +6 -0
  77. package/lib/git/normalize.d.mts +43 -0
  78. package/lib/git/normalize.d.ts +43 -0
  79. package/lib/git/normalize.mjs +6 -0
  80. package/lib/git/permissions.cjs +15 -0
  81. package/lib/git/permissions.d.cts +6 -0
  82. package/lib/git/permissions.d.mts +17 -0
  83. package/lib/git/permissions.d.ts +17 -0
  84. package/lib/git/permissions.mjs +7 -0
  85. package/lib/git/pull-strategy.cjs +13 -0
  86. package/lib/git/pull-strategy.d.cts +5 -0
  87. package/lib/git/pull-strategy.d.mts +15 -0
  88. package/lib/git/pull-strategy.d.ts +15 -0
  89. package/lib/git/pull-strategy.mjs +7 -0
  90. package/lib/git/user-config.cjs +100 -0
  91. package/lib/git/user-config.d.cts +10 -0
  92. package/lib/git/user-config.d.mts +105 -0
  93. package/lib/git/user-config.d.ts +105 -0
  94. package/lib/git/user-config.mjs +8 -0
  95. package/lib/git/utils.cjs +70 -0
  96. package/lib/git/utils.d.cts +20 -0
  97. package/lib/git/utils.d.mts +69 -0
  98. package/lib/git/utils.d.ts +69 -0
  99. package/lib/git/utils.mjs +6 -0
  100. package/lib/git-diff.cjs +73 -0
  101. package/lib/git-diff.d.cts +2 -0
  102. package/lib/git-diff.d.mts +84 -0
  103. package/lib/git-diff.d.ts +84 -0
  104. package/lib/git-diff.mjs +88 -0
  105. package/lib/git-fix.cjs +129 -0
  106. package/lib/git-fix.d.cts +2 -0
  107. package/lib/git-fix.d.mts +141 -0
  108. package/lib/git-fix.d.ts +141 -0
  109. package/lib/git-fix.mjs +151 -0
  110. package/lib/git-purge.cjs +92 -621
  111. package/lib/git-purge.d.ts +1 -2
  112. package/lib/git-purge.js +53 -698
  113. package/lib/git-purge.mjs +4 -9
  114. package/lib/index.cjs +99 -1
  115. package/lib/index.d.mts +1 -2
  116. package/lib/index.d.ts +2 -2
  117. package/lib/index.js +8 -2
  118. package/lib/index.mjs +10 -3
  119. package/lib/npm-run-series.cjs +140 -1
  120. package/lib/npm-run-series.d.ts +1 -0
  121. package/lib/npm-run-series.js +81 -56
  122. package/lib/npm-run-series.mjs +7 -5
  123. package/lib/package-resolutions-updater.cjs +274 -0
  124. package/lib/package-resolutions-updater.d.mts +1 -0
  125. package/lib/package-resolutions-updater.d.ts +326 -0
  126. package/lib/package-resolutions-updater.mjs +316 -0
  127. package/lib/print-directory-tree.cjs +241 -0
  128. package/lib/print-directory-tree.d.cts +1 -0
  129. package/lib/print-directory-tree.d.mts +234 -0
  130. package/lib/print-directory-tree.d.ts +234 -0
  131. package/lib/print-directory-tree.mjs +182 -0
  132. package/lib/ps/connected-domain.cjs +0 -0
  133. package/lib/ps/connected-domain.d.ts +1 -2
  134. package/lib/ps/connected-domain.js +196 -150
  135. package/lib/ps/connected-domain.mjs +2 -3
  136. package/lib/ps/index.cjs +3 -3
  137. package/lib/ps/index.d.mjs +1 -2
  138. package/lib/ps/index.d.ts +2 -26
  139. package/lib/ps/index.js +233 -535
  140. package/lib/ps/index.mjs +9 -11
  141. package/lib/ps/isWin.cjs +0 -0
  142. package/lib/ps/isWin.d.ts +1 -2
  143. package/lib/ps/isWin.js +1 -2
  144. package/lib/ps/isWin.mjs +2 -3
  145. package/lib/ps/table-parser.cjs +0 -0
  146. package/lib/ps/table-parser.d.ts +1 -3
  147. package/lib/ps/table-parser.js +254 -345
  148. package/lib/ps/table-parser.mjs +3 -4
  149. package/lib/submodule-install.cjs +100 -0
  150. package/lib/submodule-install.d.cts +2 -0
  151. package/lib/submodule-install.d.mts +121 -0
  152. package/lib/submodule-install.d.ts +121 -0
  153. package/lib/submodule-install.mjs +107 -0
  154. package/lib/utils.cjs +98 -14
  155. package/lib/utils.d.mts +29 -9
  156. package/lib/utils.d.ts +30 -14
  157. package/lib/utils.js +173 -27
  158. package/lib/utils.mjs +2 -3
  159. package/lib/yarn-reinstall.cjs +44 -0
  160. package/lib/yarn-reinstall.d.cts +1 -0
  161. package/lib/yarn-reinstall.d.mts +49 -0
  162. package/lib/yarn-reinstall.d.ts +49 -0
  163. package/lib/yarn-reinstall.mjs +54 -0
  164. package/package.json +126 -99
  165. package/readme.md +238 -50
  166. package/src/package-resolutions-updater.mjs +325 -0
  167. package/src/print-directory-tree.cjs +234 -0
  168. package/src/ps/index.js +4 -3
  169. package/src/yarn-reinstall.cjs +49 -0
  170. package/test-project/package.json +16 -0
  171. package/tmp/test-repo/package.json +7 -0
  172. package/bin/git-fix-encoding.cmd +0 -6
  173. package/eslint.config.cjs +0 -97
  174. package/lib/chunk-7MSZ52XC.mjs +0 -14
  175. package/lib/chunk-AVDT32AY.mjs +0 -20
  176. package/lib/chunk-LPLPQBYP.mjs +0 -53
  177. package/lib/chunk-S4SJ7SDW.mjs +0 -625
  178. package/lib/package-resolutions.cjs +0 -28
  179. package/lib/package-resolutions.d.mts +0 -25
  180. package/lib/package-resolutions.d.ts +0 -25
  181. package/lib/package-resolutions.js +0 -28
  182. package/lib/package-resolutions.mjs +0 -31
  183. package/lib/ps/index.d.js +0 -17
package/eslint.config.cjs DELETED
@@ -1,97 +0,0 @@
1
- // noinspection JSUnusedGlobalSymbols
2
-
3
- const typescriptEslintPlugin = require("@typescript-eslint/eslint-plugin"); // Import the entire TypeScript ESLint plugin
4
- const prettierPlugin = require("eslint-plugin-prettier"); // Import the entire Prettier plugin
5
- const { readFileSync } = require("fs"); // Import readFileSync to read files
6
- const globals = require("globals");
7
-
8
- // Read the Prettier configuration from the JSON file
9
- const prettierConfig = JSON.parse(readFileSync(require.resolve("./.prettierrc.json"), "utf-8"));
10
-
11
- /**
12
- * @type {import("eslint").ESLint.Options}
13
- */
14
- const config = [
15
- {
16
- // Specifies your current project has own eslint rules without extending parent folder eslint rules
17
- ignores: ["*.md", "**/tmp/**", "*.html", "*.py", "*.txt", "**/app/**", "**/dist/**", "!.*.{js,cjs,mjs}"], // .eslintignore replacement
18
- linterOptions: {
19
- reportUnusedDisableDirectives: true
20
- },
21
- languageOptions: {
22
- ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
23
- sourceType: "module", // Allows for the use of imports
24
- parser: "@typescript-eslint/parser", // Specifies the ESLint parser
25
- globals: {
26
- ...globals.browser,
27
- ...globals.amd,
28
- ...globals.node,
29
- $: "readonly", // jQuery is assigned to $
30
- jQuery: "readonly", // jQuery is also available as jQuery
31
- adsbygoogle: "writable", // Adsense
32
- gtag: true, // Google analystic
33
- safelink: true,
34
- google: "readonly", // GAPI
35
- gapi: "readonly" // GAPI
36
- }
37
- },
38
- rules: {
39
- // Specify your desired rules for ESLint
40
- "prettier/prettier": ["error", prettierConfig],
41
- "@typescript-eslint/explicit-function-return-type": "off", // Disable function without return type
42
- "no-unused-vars": "off", // Disable original ESLint unused-vars
43
- "@typescript-eslint/no-unused-vars": [
44
- "error",
45
- {
46
- argsIgnorePattern: "^_",
47
- varsIgnorePattern: "^_",
48
- caughtErrorsIgnorePattern: "^_"
49
- }
50
- ], // Enable TypeScript ESLint unused-vars and allow unused vars starting with underscore (_)
51
- "@typescript-eslint/no-explicit-any": "off", // Allow any types
52
- "@typescript-eslint/no-this-alias": [
53
- // Rules for this binding
54
- "error",
55
- {
56
- allowDestructuring: false, // Disallow `const { props, state } = this`; true by default
57
- allowedNames: ["self"] // Allow `const self = this`; `[]` by default
58
- }
59
- ],
60
- // "arrow-body-style" and "prefer-arrow-callback" can cause issues with Prettier, so turn them off.
61
- "arrow-body-style": "off",
62
- "prefer-arrow-callback": "off"
63
- }
64
- },
65
- {
66
- files: ["*.js", "*.cjs"],
67
- rules: {
68
- // disable require warning on js files
69
- "@typescript-eslint/no-var-requires": "off",
70
- // disable include refenrences definition files on js
71
- "@typescript-eslint/triple-slash-reference": "off",
72
- // disable require warning in js
73
- "@typescript-eslint/no-require-imports": "off"
74
- }
75
- },
76
- {
77
- // Enable the recommended configurations
78
- plugins: {
79
- "@typescript-eslint": typescriptEslintPlugin, // Use the TypeScript ESLint plugin
80
- prettier: prettierPlugin // Use the Prettier plugin
81
- },
82
- rules: {
83
- ...typescriptEslintPlugin.configs["eslint-recommended"].rules,
84
- ...typescriptEslintPlugin.configs["recommended"].rules,
85
- ...prettierPlugin.configs.recommended.rules
86
- },
87
- languageOptions: {
88
- globals: {
89
- browser: true,
90
- amd: true,
91
- node: true
92
- }
93
- }
94
- }
95
- ];
96
-
97
- module.exports = config;
@@ -1,14 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import {
3
- __esm
4
- } from "./chunk-AVDT32AY.mjs";
5
-
6
- // node_modules/tsup/assets/esm_shims.js
7
- var init_esm_shims = __esm({
8
- "node_modules/tsup/assets/esm_shims.js"() {
9
- }
10
- });
11
-
12
- export {
13
- init_esm_shims
14
- };
@@ -1,20 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
4
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
- }) : x)(function(x) {
6
- if (typeof require !== "undefined") return require.apply(this, arguments);
7
- throw Error('Dynamic require of "' + x + '" is not supported');
8
- });
9
- var __esm = (fn, res) => function __init() {
10
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
- };
12
- var __commonJS = (cb, mod) => function __require2() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
- };
15
-
16
- export {
17
- __require,
18
- __esm,
19
- __commonJS
20
- };
@@ -1,53 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import {
3
- init_esm_shims
4
- } from "./chunk-7MSZ52XC.mjs";
5
- import {
6
- __commonJS,
7
- __require
8
- } from "./chunk-AVDT32AY.mjs";
9
-
10
- // src/utils.js
11
- var require_utils = __commonJS({
12
- "src/utils.js"(exports, module) {
13
- init_esm_shims();
14
- var { fs, path } = __require("sbg-utility");
15
- var argv = __require("minimist")(process.argv.slice(2));
16
- function getArgs() {
17
- return argv;
18
- }
19
- function delStream(globStream) {
20
- globStream.stream().on("data", (result) => {
21
- const fullPath = path.resolve(process.cwd(), result);
22
- if (fs.statSync(fullPath).isDirectory()) {
23
- const subdir = fs.readdirSync(fullPath).map((dirPath) => path.resolve(fullPath, dirPath));
24
- for (let i = 0; i < subdir.length; i++) {
25
- del(subdir[i]);
26
- }
27
- }
28
- del(fullPath);
29
- });
30
- }
31
- function del(fullPath) {
32
- if (fs.statSync(fullPath).isDirectory()) {
33
- const subdir = fs.readdirSync(fullPath).map((dirPath) => path.resolve(fullPath, dirPath));
34
- for (let i = 0; i < subdir.length; i++) {
35
- del(subdir[i]);
36
- }
37
- } else {
38
- try {
39
- fs.rmSync(fullPath, { recursive: true, force: true, retryDelay: 7e3 });
40
- console.log("deleted", fullPath);
41
- } catch (_) {
42
- console.log("failed delete", fullPath);
43
- }
44
- }
45
- }
46
- var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
47
- module.exports = { del, delStream, getArgs, delay };
48
- }
49
- });
50
-
51
- export {
52
- require_utils
53
- };