@storm-software/git-tools 2.119.0 → 2.119.3
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 +1 -1
- package/bin/git.cjs +2 -2
- package/bin/git.js +5 -5
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/git.cjs
CHANGED
|
@@ -55,8 +55,8 @@ var execCommand_js = require('nx/src/command-line/release/utils/exec-command.js'
|
|
|
55
55
|
var axios = require('axios');
|
|
56
56
|
var DefaultChangelogRenderer = require('nx/release/changelog-renderer');
|
|
57
57
|
var conventionalCommits = require('nx/src/command-line/release/config/conventional-commits');
|
|
58
|
-
var jsYaml = require('js-yaml');
|
|
59
58
|
var os = require('os');
|
|
59
|
+
var yaml = require('yaml');
|
|
60
60
|
|
|
61
61
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
62
62
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -3061,7 +3061,7 @@ async function resolveTokenData(hostname) {
|
|
|
3061
3061
|
);
|
|
3062
3062
|
if (fs$1.existsSync(ghCLIPath)) {
|
|
3063
3063
|
const yamlContents = await fs$1.promises.readFile(ghCLIPath, "utf8");
|
|
3064
|
-
const ghCLIConfig =
|
|
3064
|
+
const ghCLIConfig = yaml.parse(yamlContents);
|
|
3065
3065
|
if (ghCLIConfig[hostname]) {
|
|
3066
3066
|
if (ghCLIConfig[hostname].oauth_token) {
|
|
3067
3067
|
return ghCLIConfig[hostname].oauth_token;
|
package/bin/git.js
CHANGED
|
@@ -19,7 +19,7 @@ import { readCachedProjectGraph, createProjectGraphAsync as createProjectGraphAs
|
|
|
19
19
|
import wrap from 'word-wrap';
|
|
20
20
|
import Path, { join as join$1, extname } from 'node:path';
|
|
21
21
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from 'nx/src/project-graph/project-graph.js';
|
|
22
|
-
import { parse, Syntax } from '@textlint/markdown-to-ast';
|
|
22
|
+
import { parse as parse$1, Syntax } from '@textlint/markdown-to-ast';
|
|
23
23
|
import anchor from 'anchor-markdown-header';
|
|
24
24
|
import { Parser } from 'htmlparser2';
|
|
25
25
|
import _ from 'underscore';
|
|
@@ -55,8 +55,8 @@ import { execCommand } from 'nx/src/command-line/release/utils/exec-command.js';
|
|
|
55
55
|
import axios from 'axios';
|
|
56
56
|
import DefaultChangelogRenderer from 'nx/release/changelog-renderer';
|
|
57
57
|
import { DEFAULT_CONVENTIONAL_COMMITS_CONFIG } from 'nx/src/command-line/release/config/conventional-commits';
|
|
58
|
-
import { load } from 'js-yaml';
|
|
59
58
|
import { homedir } from 'node:os';
|
|
59
|
+
import { parse } from 'yaml';
|
|
60
60
|
|
|
61
61
|
function parseCargoToml(cargoString) {
|
|
62
62
|
if (!cargoString) {
|
|
@@ -1442,7 +1442,7 @@ function getMarkdownHeaders(lines, maxHeaderLevel) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}).join("");
|
|
1444
1444
|
}
|
|
1445
|
-
return parse(lines.join("\n")).children.filter(function(x) {
|
|
1445
|
+
return parse$1(lines.join("\n")).children.filter(function(x) {
|
|
1446
1446
|
return x.type === Syntax.Header;
|
|
1447
1447
|
}).map(function(x) {
|
|
1448
1448
|
return !maxHeaderLevel || x.depth <= maxHeaderLevel ? { rank: x.depth, name: extractText(x), line: x.loc.start.line } : null;
|
|
@@ -1547,7 +1547,7 @@ function rankify(headers, max) {
|
|
|
1547
1547
|
});
|
|
1548
1548
|
}
|
|
1549
1549
|
function getHtmlHeaders(lines, maxHeaderLevel) {
|
|
1550
|
-
const source = parse(lines.join("\n")).children.filter(function(node) {
|
|
1550
|
+
const source = parse$1(lines.join("\n")).children.filter(function(node) {
|
|
1551
1551
|
return node.type === Syntax.Html;
|
|
1552
1552
|
}).map(function(node) {
|
|
1553
1553
|
return node.raw;
|
|
@@ -3043,7 +3043,7 @@ async function resolveTokenData(hostname) {
|
|
|
3043
3043
|
);
|
|
3044
3044
|
if (existsSync$1(ghCLIPath)) {
|
|
3045
3045
|
const yamlContents = await promises.readFile(ghCLIPath, "utf8");
|
|
3046
|
-
const ghCLIConfig =
|
|
3046
|
+
const ghCLIConfig = parse(yamlContents);
|
|
3047
3047
|
if (ghCLIConfig[hostname]) {
|
|
3048
3048
|
if (ghCLIConfig[hostname].oauth_token) {
|
|
3049
3049
|
return ghCLIConfig[hostname].oauth_token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.119.
|
|
3
|
+
"version": "2.119.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -177,37 +177,37 @@
|
|
|
177
177
|
"@commitlint/ensure": "^19.8.1",
|
|
178
178
|
"@commitlint/rules": "^19.8.1",
|
|
179
179
|
"@inquirer/prompts": "7.2.1",
|
|
180
|
-
"@nx/devkit": "
|
|
181
|
-
"@nx/js": "
|
|
182
|
-
"@storm-software/config": "
|
|
183
|
-
"@storm-software/config-tools": "
|
|
180
|
+
"@nx/devkit": "^21.4.1",
|
|
181
|
+
"@nx/js": "^21.4.1",
|
|
182
|
+
"@storm-software/config": "^1.130.3",
|
|
183
|
+
"@storm-software/config-tools": "^1.183.4",
|
|
184
184
|
"@textlint/ast-node-types": "14.4.2",
|
|
185
185
|
"@textlint/markdown-to-ast": "14.4.2",
|
|
186
186
|
"anchor-markdown-header": "0.7.0",
|
|
187
187
|
"any-shell-escape": "0.1.1",
|
|
188
188
|
"axios": "1.8.2",
|
|
189
|
-
"chalk": "
|
|
189
|
+
"chalk": "^4.1.2",
|
|
190
190
|
"chalk-template": "1.1.0",
|
|
191
191
|
"htmlparser2": "10.0.0",
|
|
192
|
-
"js-yaml": "catalog:",
|
|
193
192
|
"jsonc-parser": "3.2.1",
|
|
194
|
-
"nx": "
|
|
195
|
-
"prettier": "
|
|
193
|
+
"nx": "^21.4.1",
|
|
194
|
+
"prettier": "^3.5.1",
|
|
196
195
|
"tsconfig-paths": "4.2.0",
|
|
197
196
|
"underscore": "1.13.7",
|
|
198
197
|
"update-section": "0.3.3",
|
|
199
198
|
"word-wrap": "1.2.5",
|
|
200
|
-
"
|
|
199
|
+
"yaml": "^2.8.1",
|
|
200
|
+
"zod": "^4.0.2"
|
|
201
201
|
},
|
|
202
202
|
"devDependencies": {
|
|
203
|
-
"@types/node": "
|
|
204
|
-
"commander": "
|
|
203
|
+
"@types/node": "^22.10.2",
|
|
204
|
+
"commander": "^12.1.0",
|
|
205
205
|
"conventional-commits-parser": "^6.2.0",
|
|
206
|
-
"defu": "
|
|
206
|
+
"defu": "6.1.4",
|
|
207
207
|
"semver": "7.6.2",
|
|
208
208
|
"simple-git": "^3.28.0",
|
|
209
|
-
"tsup": "
|
|
209
|
+
"tsup": "8.4.0"
|
|
210
210
|
},
|
|
211
211
|
"publishConfig": { "access": "public" },
|
|
212
|
-
"gitHead": "
|
|
212
|
+
"gitHead": "130c0445a406e976d0302d764282acc0b39bb1e2"
|
|
213
213
|
}
|