@mark1russell7/conventions 0.47.1 → 0.47.2
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 +6 -1
- package/build/cli.js +1 -1
- package/build/index.d.ts +15 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-BrCo6Uuy.js → run-BLJCc6nt.js} +65 -16
- package/build/run-BLJCc6nt.js.map +1 -0
- package/package.json +1 -1
- package/build/run-BrCo6Uuy.js.map +0 -1
package/README.md
CHANGED
|
@@ -202,6 +202,10 @@ git config --global conventions.privateNamesFile ~/private/private-names.json
|
|
|
202
202
|
|
|
203
203
|
The environment variable `CONVENTIONS_PRIVATE_NAMES_FILE` has priority over the git configuration.
|
|
204
204
|
|
|
205
|
+
The settings can name more than one list. Add each more list with `git config --global --add conventions.privateNamesFile <path>`. In the environment variable, put `;` between the paths on Windows, and `:` on other systems.
|
|
206
|
+
|
|
207
|
+
The command merges the lists in their order. The index of a name in a break counts across the lists. When two lists have the same id, the push stops.
|
|
208
|
+
|
|
205
209
|
The list is a JSON file. The schema [`schema/private-names.schema.json`](schema/private-names.schema.json) tells its fields, and the package has the schema. This example has made-up names:
|
|
206
210
|
|
|
207
211
|
```json
|
|
@@ -312,5 +316,6 @@ The package also exports the functions of the tool:
|
|
|
312
316
|
- `parsePrivateNames(text)` parses and checks a private name list. It throws a `PrivateNameListError` with a reason that shows no value of the list.
|
|
313
317
|
- `lineNameHit(list, line, place)`, `pathNameHit(list, path)`, `firstNameMatch(line, names)`, `isCommonUse(line, index, rule)` and `isAllowedHit(allow, repo, path, id)` find the names of the list. They have no input or output.
|
|
314
318
|
- `lineNameHits(list, line, place)` and `nameMatches(line, names)` give each name of a line, one hit for each name. A scan that counts the names uses them. The gate takes the first hit.
|
|
315
|
-
- `privateNamesFile(env, git)`, `privatePatterns(env)` and `invalidPatternBreaks(patterns)` read the settings and the patterns.
|
|
319
|
+
- `privateNamesFiles(env, git)`, `privateNamesFile(env, git)`, `privatePatterns(env)` and `invalidPatternBreaks(patterns)` read the settings and the patterns. `privateNamesFiles` gives each path, and `privateNamesFile` gives one.
|
|
320
|
+
- `mergePrivateNames(lists)` merges the lists in order. It throws a `PrivateNameListError` when two lists have the same id.
|
|
316
321
|
- `prePush(options, io)` is the command `pre-push`, and `installHook(options, io)` is the command `hook install`. `PRE_PUSH_HOOK` is the text of the hook.
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -488,6 +488,13 @@ export declare class PrivateNameListError extends Error {
|
|
|
488
488
|
* expression and the ids. It throws a `PrivateNameListError` when the text is not valid. The error shows no value of the text.
|
|
489
489
|
*/
|
|
490
490
|
export declare function parsePrivateNames(text: string): PrivateNameList;
|
|
491
|
+
/**
|
|
492
|
+
* This function merges private name lists into one list, in order. The names of each list come after the names of the
|
|
493
|
+
* lists before it. Thus the index of a name in a result counts across the lists. `parsePrivateNames` makes sure that an
|
|
494
|
+
* entry of `allow` refers to a name of its own list. The function throws a `PrivateNameListError` when two lists have
|
|
495
|
+
* the same id. Then an entry of `allow` can refer to the two names.
|
|
496
|
+
*/
|
|
497
|
+
export declare function mergePrivateNames(lists: readonly PrivateNameList[]): PrivateNameList;
|
|
491
498
|
/**
|
|
492
499
|
* This function tells if the word of `rule` at `index` of `line` is a common word or code, and not the name of the
|
|
493
500
|
* project. Code is a type, a key or a part of a path. A common word comes after an article, in a title or before a noun.
|
|
@@ -578,6 +585,13 @@ export declare function privatePatterns(env: Readonly<Record<string, string | un
|
|
|
578
585
|
* else the git configuration `conventions.privateNamesFile`. It gives undefined when neither has a value.
|
|
579
586
|
*/
|
|
580
587
|
export declare function privateNamesFile(env: Readonly<Record<string, string | undefined>>, git: (args: readonly string[]) => string | undefined): string | undefined;
|
|
588
|
+
/**
|
|
589
|
+
* This function gives the paths of the private name lists, in order. The environment variable
|
|
590
|
+
* `CONVENTIONS_PRIVATE_NAMES_FILE` has priority. It has one path, or more paths with `separator` between them. The
|
|
591
|
+
* default `separator` is the `delimiter` of `node:path`: `;` on Windows, `:` on other systems. Else, each value of the git
|
|
592
|
+
* configuration `conventions.privateNamesFile` is a path. The function gives an empty array when neither has a value.
|
|
593
|
+
*/
|
|
594
|
+
export declare function privateNamesFiles(env: Readonly<Record<string, string | undefined>>, git: (args: readonly string[]) => string | undefined, separator?: string): string[];
|
|
581
595
|
/** This function gives a break for each private pattern that is not a valid regular expression. A break does not show the pattern. */
|
|
582
596
|
export declare function invalidPatternBreaks(patterns: readonly PrivatePattern[]): Break[];
|
|
583
597
|
/**
|
|
@@ -867,6 +881,7 @@ interface PrePushOptions {
|
|
|
867
881
|
* This function is the command `conventions pre-push`. It examines each new commit of the push: its message, the paths
|
|
868
882
|
* that it adds or changes, and each line that it adds. It writes the breaks to `stderr`, and gives the exit code: 1 on a
|
|
869
883
|
* break, 0 on a pass. With no private name list and no private pattern, it writes the line `NO_READ_LINE` and gives 0.
|
|
884
|
+
* The settings can name more than one list (`privateNamesFiles`). The command then examines the merge of the lists.
|
|
870
885
|
*/
|
|
871
886
|
export declare function prePush(options: PrePushOptions, io: Pick<CliIo, "stderr">): number;
|
|
872
887
|
/** The marker line of the hook that `conventions hook install` writes. The command rewrites only a hook with this line. */
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;qBAIpC;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;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N;;;;;;;wBAqCK,WAAW,eAAe;;wBAyB1B,UAAU,gBAAgB,SAAS;;wBAKnC,cAAc,cAAc,mBAAmB,MAAM;qBAKxD,YAAY;;UCzEf;WACC,MAAM;WACN,SAAS;;;;;;;wBAQJ,QAAQ,MAAM;;wBASd,aAAa,gBAAgB,SAAS;;wBAKtC,aAAa;;wBAMb,OAAO,SAAS;;wBAchB,UAAU,cAAc,cAAc,MAAM;qBAS/C,aAAa;;qBC9Db,eAAe,SAAS,eAAe;;wBAQpC,cAAc;;wBAMd,SAAS;;wBAWT,QAAQ,cAAc;;;;;wBA+BtB,mBAAmB,SAAS;qBAW/B,aAAa;qBCIb,kBAAkB;;qBCnElB;;wBA6BG,kBAAkB;qBAiFrB,WAAW;qBC/GX,eAAe;;;;;;;;;;qBCLf;;UAGI;;WAEN;;WAEA;;;;;WAKA;;WAEA;;;;;WAKA;;WAEA;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;;;UAIM;WACN,gBAAgB;WAChB,gBAAgB;;;UAIV;;WAEN;;WAEA,MAAM;;WAEN;;;UAIM;;WAEN;;WAEA;;;;;;qBAOE,6BAA6B;;WAE/B;EACT,YAAY;;;;;;wBAkGE,kBAAkB,eAAe;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;qBAIpC;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;wBAUV,OAAO,cAA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IAAI,KAAK;;qBAuF7C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAWD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCtY9C,cAAc,SAAS;WAA0B;WAA0B;;UCuIvE;WACN;WACA;WACA;;WAEA;WACA;;;UAIM;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;;;;;;;qBC1T3C;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unreleasedChangeRule, $n as
|
|
1
|
+
import { $ as unreleasedChangeRule, $n as hasFile, $t as licenseFileOf, A as typedFiles, An as callsSharedCi, At as privateNamesFiles, B as roadmapParses, Bn as convertGate, Bt as mergePrivateNames, C as versionTitle, Cn as runCalls, Ct as HOME_PATTERNS, D as typedScripts, Dn as SHARED_ACTIONS, Dt as invalidPatternBreaks, E as trustPolicy, En as tsconfigTest, Et as PRIVATE_PATTERNS_VARIABLE, F as HOME_TIMEOUT_MS, Fn as SECURITY_TIMEOUT_MINUTES, Ft as firstNameMatch, G as publishedMinor, Gn as readAction, Gt as REAL_COMPARE, H as releaseFiles, Hn as prPathFilters, Ht as parsePrivateNames, I as blockHash, In as securityCallers, It as isAllowedHit, J as NPM_REGISTRY, Jn as cuePreset, Jt as coverageProvider, K as publishedMinorRule, Kn as readWorkflow, Kt as hasImportMetaMain, L as githubFetch, Ln as securityOneJob, Lt as isCommonUse, M as isSourcePath, Mn as setupCue, Mt as privateTextBreaks, N as pathsOf, Nn as SECURITY_SCAN_COMMIT, Nt as PRIVATE_NAME_LIST, O as configsOfScript, On as SHARED_CI, Ot as noLocalPaths, P as sourceMain, Pn as SECURITY_SCAN_INPUTS, Pt as PrivateNameListError, Q as unreleasedChange, Qn as codePackages, Qt as licenseFile, R as sharedDocsRule, Rn as withOneJob, Rt as lineNameHit, S as setVersions, Sn as SERVICE_PACKAGE, St as DEFAULT_ALLOWED, T as TRAIN_SCOPES, Tn as hasTests, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as lockedVersions, Un as summaryName, Ut as pathNameHit, V as requiredScripts, Vn as gateTrigger, Vt as nameMatches, W as minorOf, Wn as gateAfterCancel, Wt as noBuildOutput, X as UNSHIPPED_FILES, Xn as RULE_WARN_DAYS, Xt as LICENSE_TEXTS, Y as SHIPPED_FIELDS, Yn as DEPENDENCY_FIELDS, Yt as apiReportScript, Z as npmLookup, Zn as cleanPath, Zt as authorOf, _ as workspaceProtocol, _n as mapText, _t as pagesCalls, a as listRules, an as modulesOf, ar as readJsonc, at as swallowsTests, b as yamlFaults, bn as npmNames, bt as publishTextSafe, c as runCli, cn as messageOf, cr as specifiersOf, ct as isPinned, d as HOOK_MARKER, dn as signaturesOf, dt as pagesAfterRelease, en as mitText, er as inFolder, et as playwrightInstall, f as NO_READ_LINE, fn as HOME_EXPORTS, ft as repositoryOfRemote, g as RULES, gn as mapMarkdown, gt as PAGES_WORKFLOWS, h as prePush, hn as findHomes, ht as pushMainOnly, i as formatResult, in as moduleUses, ir as parseJsonc, it as startsTests, j as testsRequired, jn as sharedCi, jt as privatePatterns, k as scriptsOf, kn as SHARED_WORKFLOWS, kt as privateNamesFile, l as runFix, ln as repoOf, lr as defaultOptions, lt as pinnedGitDeps, m as installHook, mn as MAP_RULE, mt as scheduleMinute, n as annotations, nn as homeModule, nr as lineOf, nt as jobFails, o as readConfig, on as declaredName, or as replaceLine, ot as pipeFails, p as PRE_PUSH_HOOK, pn as HOMES, pt as runnerBudget, q as reachOf, qn as STRICT_OPTIONS, qt as mainCheck, r as createContext, rn as moduleMessage, rr as matchesAny, rt as parseAdvisory, s as runChecks, sn as homePackage, sr as runGit, st as isGitSpecifier, t as USAGE, tn as repositoryIsPublic, tr as keyLine, tt as hiddenFailures, u as summaryMarkdown, un as reposOf, ur as parseConfig, ut as siteCheckInCi, v as GITHUB_YAML, vn as mergeHomes, vt as pagesSite, w as IGNORE_AFTER, wn as serviceRunMain, wt as PRIVATE_NAMES_FILE_CONFIG, x as namedVersions, xn as readOverlay, xt as packNoBuildinfo, y as workflowParses, yn as npmDrift, yt as exportsRequire, z as roadmapOfLine, zn as ACTIONS_COMMIT, zt as lineNameHits } from "./run-BLJCc6nt.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, sharedNames } from "./owners.js";
|
|
3
3
|
import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
66
66
|
if (section.length <= 1e5) return section;
|
|
67
67
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
68
68
|
}
|
|
69
|
-
export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
|
+
export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { OWNERS } from "./owners.js";
|
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
6
|
-
import { basename, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
6
|
+
import { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
7
7
|
import { SECRET_SHAPES, findSecretShapes, findSecretShapesInValue, redactSecretShapes } from "@mark1russell7/text/redact";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
import { parseAllDocuments } from "yaml";
|
|
@@ -13831,6 +13831,27 @@ function parsePrivateNames(text) {
|
|
|
13831
13831
|
allow: allow.map((entry, index) => allowedOf(entry, `allow entry ${String(index + 1)} of ${PRIVATE_NAME_LIST}`, ids))
|
|
13832
13832
|
};
|
|
13833
13833
|
}
|
|
13834
|
+
/**
|
|
13835
|
+
* This function merges private name lists into one list, in order. The names of each list come after the names of the
|
|
13836
|
+
* lists before it. Thus the index of a name in a result counts across the lists. `parsePrivateNames` makes sure that an
|
|
13837
|
+
* entry of `allow` refers to a name of its own list. The function throws a `PrivateNameListError` when two lists have
|
|
13838
|
+
* the same id. Then an entry of `allow` can refer to the two names.
|
|
13839
|
+
*/
|
|
13840
|
+
function mergePrivateNames(lists) {
|
|
13841
|
+
const ids = /* @__PURE__ */ new Set();
|
|
13842
|
+
const names = [];
|
|
13843
|
+
lists.forEach((list, at) => {
|
|
13844
|
+
for (const rule of list.names) {
|
|
13845
|
+
if (ids.has(rule.id)) throw new PrivateNameListError(`name ${String(names.length + 1)} of ${PRIVATE_NAME_LIST} (list ${String(at + 1)}): the id is also the id of a name of an earlier list`);
|
|
13846
|
+
ids.add(rule.id);
|
|
13847
|
+
names.push(rule);
|
|
13848
|
+
}
|
|
13849
|
+
});
|
|
13850
|
+
return {
|
|
13851
|
+
names,
|
|
13852
|
+
allow: lists.flatMap((list) => list.allow)
|
|
13853
|
+
};
|
|
13854
|
+
}
|
|
13834
13855
|
/** The words before a name in code: a declaration, a type or an operator. */
|
|
13835
13856
|
const CODE_BEFORE = /\b(class|interface|type|new|extends|implements|const|let|enum|struct|typeof|instanceof|as)\s+$/;
|
|
13836
13857
|
/** A line of code that imports or exports names. */
|
|
@@ -14140,6 +14161,22 @@ function privateNamesFile(env, git) {
|
|
|
14140
14161
|
])?.trim() ?? "";
|
|
14141
14162
|
return fromGit === "" ? void 0 : fromGit;
|
|
14142
14163
|
}
|
|
14164
|
+
/**
|
|
14165
|
+
* This function gives the paths of the private name lists, in order. The environment variable
|
|
14166
|
+
* `CONVENTIONS_PRIVATE_NAMES_FILE` has priority. It has one path, or more paths with `separator` between them. The
|
|
14167
|
+
* default `separator` is the `delimiter` of `node:path`: `;` on Windows, `:` on other systems. Else, each value of the git
|
|
14168
|
+
* configuration `conventions.privateNamesFile` is a path. The function gives an empty array when neither has a value.
|
|
14169
|
+
*/
|
|
14170
|
+
function privateNamesFiles(env, git, separator = delimiter) {
|
|
14171
|
+
const fromEnv = (env["CONVENTIONS_PRIVATE_NAMES_FILE"] ?? "").split(separator).map((path) => path.trim()).filter((path) => path !== "");
|
|
14172
|
+
if (fromEnv.length > 0) return fromEnv;
|
|
14173
|
+
return (git([
|
|
14174
|
+
"config",
|
|
14175
|
+
"--type=path",
|
|
14176
|
+
"--get-all",
|
|
14177
|
+
"conventions.privateNamesFile"
|
|
14178
|
+
]) ?? "").split(/\r?\n/).map((path) => path.trim()).filter((path) => path !== "");
|
|
14179
|
+
}
|
|
14143
14180
|
/** This function gives a break for each private pattern that is not a valid regular expression. A break does not show the pattern. */
|
|
14144
14181
|
function invalidPatternBreaks(patterns) {
|
|
14145
14182
|
return patterns.filter((pattern) => compilePattern(pattern.source) === void 0).map((pattern) => ({
|
|
@@ -19583,30 +19620,42 @@ function repoOfPush(options) {
|
|
|
19583
19620
|
* This function is the command `conventions pre-push`. It examines each new commit of the push: its message, the paths
|
|
19584
19621
|
* that it adds or changes, and each line that it adds. It writes the breaks to `stderr`, and gives the exit code: 1 on a
|
|
19585
19622
|
* break, 0 on a pass. With no private name list and no private pattern, it writes the line `NO_READ_LINE` and gives 0.
|
|
19623
|
+
* The settings can name more than one list (`privateNamesFiles`). The command then examines the merge of the lists.
|
|
19586
19624
|
*/
|
|
19587
19625
|
function prePush(options, io) {
|
|
19588
19626
|
const readFile = options.readFile ?? ((path) => readFileSync(path, "utf8"));
|
|
19589
|
-
const
|
|
19627
|
+
const files = privateNamesFiles(options.env, options.git);
|
|
19590
19628
|
const patterns = privatePatterns(options.env);
|
|
19591
|
-
if (
|
|
19629
|
+
if (files.length === 0 && patterns.length === 0) {
|
|
19592
19630
|
io.stderr(`${NO_READ_LINE}\n`);
|
|
19593
19631
|
return 0;
|
|
19594
19632
|
}
|
|
19595
19633
|
let names;
|
|
19596
|
-
if (
|
|
19597
|
-
const source = (options.env["CONVENTIONS_PRIVATE_NAMES_FILE"]
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19634
|
+
if (files.length > 0) {
|
|
19635
|
+
const source = privateNamesFiles({ ["CONVENTIONS_PRIVATE_NAMES_FILE"]: options.env["CONVENTIONS_PRIVATE_NAMES_FILE"] }, () => void 0).length > 0 ? PRIVATE_NAMES_FILE_VARIABLE : `the git config ${PRIVATE_NAMES_FILE_CONFIG}`;
|
|
19636
|
+
const lists = [];
|
|
19637
|
+
for (const [at, file] of files.entries()) {
|
|
19638
|
+
const which = files.length === 1 ? `the private name list that ${source} names` : `private name list ${String(at + 1)} of the ${String(files.length)} that ${source} names`;
|
|
19639
|
+
let text;
|
|
19640
|
+
try {
|
|
19641
|
+
text = readFile(resolve(options.root, file));
|
|
19642
|
+
} catch (error) {
|
|
19643
|
+
io.stderr(`conventions pre-push: Cannot read ${which}: ${readReason(error)}. Correct the setting or the file. The push stops.\n`);
|
|
19644
|
+
return 1;
|
|
19645
|
+
}
|
|
19646
|
+
try {
|
|
19647
|
+
lists.push(parsePrivateNames(text));
|
|
19648
|
+
} catch (error) {
|
|
19649
|
+
const reason = error instanceof PrivateNameListError ? error.reason : "the parse failed";
|
|
19650
|
+
io.stderr(`conventions pre-push: ${which.charAt(0).toUpperCase()}${which.slice(1)} is not valid: ${reason}. Correct the file. The push stops.\n`);
|
|
19651
|
+
return 1;
|
|
19652
|
+
}
|
|
19604
19653
|
}
|
|
19605
19654
|
try {
|
|
19606
|
-
names =
|
|
19655
|
+
names = mergePrivateNames(lists);
|
|
19607
19656
|
} catch (error) {
|
|
19608
|
-
const reason = error instanceof PrivateNameListError ? error.reason : "the
|
|
19609
|
-
io.stderr(`conventions pre-push: The private name
|
|
19657
|
+
const reason = error instanceof PrivateNameListError ? error.reason : "the merge failed";
|
|
19658
|
+
io.stderr(`conventions pre-push: The private name lists that ${source} names are not valid together: ${reason}. Give each name its own id. The push stops.\n`);
|
|
19610
19659
|
return 1;
|
|
19611
19660
|
}
|
|
19612
19661
|
}
|
|
@@ -20242,6 +20291,6 @@ function runHook(args, io) {
|
|
|
20242
20291
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
20243
20292
|
}, io);
|
|
20244
20293
|
}
|
|
20245
|
-
export { unreleasedChangeRule as $,
|
|
20294
|
+
export { unreleasedChangeRule as $, hasFile as $n, licenseFileOf as $t, typedFiles as A, callsSharedCi as An, privateNamesFiles as At, roadmapParses as B, convertGate as Bn, mergePrivateNames as Bt, versionTitle as C, runCalls as Cn, HOME_PATTERNS as Ct, typedScripts as D, SHARED_ACTIONS as Dn, invalidPatternBreaks as Dt, trustPolicy as E, tsconfigTest as En, PRIVATE_PATTERNS_VARIABLE as Et, HOME_TIMEOUT_MS as F, SECURITY_TIMEOUT_MINUTES as Fn, firstNameMatch as Ft, publishedMinor as G, readAction as Gn, REAL_COMPARE as Gt, releaseFiles as H, prPathFilters as Hn, parsePrivateNames as Ht, blockHash as I, securityCallers as In, isAllowedHit as It, NPM_REGISTRY as J, cuePreset as Jn, coverageProvider as Jt, publishedMinorRule as K, readWorkflow as Kn, hasImportMetaMain as Kt, githubFetch as L, securityOneJob as Ln, isCommonUse as Lt, isSourcePath as M, setupCue as Mn, privateTextBreaks as Mt, pathsOf as N, SECURITY_SCAN_COMMIT as Nn, PRIVATE_NAME_LIST as Nt, configsOfScript as O, SHARED_CI as On, noLocalPaths as Ot, sourceMain as P, SECURITY_SCAN_INPUTS as Pn, PrivateNameListError as Pt, unreleasedChange as Q, codePackages as Qn, licenseFile as Qt, sharedDocsRule as R, withOneJob as Rn, lineNameHit as Rt, setVersions as S, SERVICE_PACKAGE as Sn, DEFAULT_ALLOWED as St, TRAIN_SCOPES as T, hasTests as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, lockedVersions as U, summaryName as Un, pathNameHit as Ut, requiredScripts as V, gateTrigger as Vn, nameMatches as Vt, minorOf as W, gateAfterCancel as Wn, noBuildOutput as Wt, UNSHIPPED_FILES as X, RULE_WARN_DAYS as Xn, LICENSE_TEXTS as Xt, SHIPPED_FIELDS as Y, DEPENDENCY_FIELDS as Yn, apiReportScript as Yt, npmLookup as Z, cleanPath as Zn, authorOf as Zt, workspaceProtocol as _, mapText as _n, pagesCalls as _t, listRules as a, modulesOf as an, readJsonc as ar, swallowsTests as at, yamlFaults as b, npmNames as bn, publishTextSafe as bt, runCli as c, messageOf as cn, specifiersOf as cr, isPinned as ct, HOOK_MARKER as d, signaturesOf as dn, pagesAfterRelease as dt, mitText as en, inFolder as er, playwrightInstall as et, NO_READ_LINE as f, HOME_EXPORTS as fn, repositoryOfRemote as ft, RULES as g, mapMarkdown as gn, PAGES_WORKFLOWS as gt, prePush as h, findHomes as hn, pushMainOnly as ht, formatResult as i, moduleUses as in, parseJsonc as ir, startsTests as it, testsRequired as j, sharedCi as jn, privatePatterns as jt, scriptsOf as k, SHARED_WORKFLOWS as kn, privateNamesFile as kt, runFix as l, repoOf as ln, defaultOptions as lr, pinnedGitDeps as lt, installHook as m, MAP_RULE as mn, scheduleMinute as mt, annotations as n, homeModule as nn, lineOf as nr, jobFails as nt, readConfig as o, declaredName as on, replaceLine as or, pipeFails as ot, PRE_PUSH_HOOK as p, HOMES as pn, runnerBudget as pt, reachOf as q, STRICT_OPTIONS as qn, mainCheck as qt, createContext as r, moduleMessage as rn, matchesAny as rr, parseAdvisory as rt, runChecks as s, homePackage as sn, runGit as sr, isGitSpecifier as st, USAGE as t, repositoryIsPublic as tn, keyLine as tr, hiddenFailures as tt, summaryMarkdown as u, reposOf as un, parseConfig as ur, siteCheckInCi as ut, GITHUB_YAML as v, mergeHomes as vn, pagesSite as vt, IGNORE_AFTER as w, serviceRunMain as wn, PRIVATE_NAMES_FILE_CONFIG as wt, namedVersions as x, readOverlay as xn, packNoBuildinfo as xt, workflowParses as y, npmDrift as yn, exportsRequire as yt, roadmapOfLine as z, ACTIONS_COMMIT as zn, lineNameHits as zt };
|
|
20246
20295
|
|
|
20247
|
-
//# sourceMappingURL=run-
|
|
20296
|
+
//# sourceMappingURL=run-BLJCc6nt.js.map
|