@mark1russell7/conventions 0.42.6 → 0.43.0
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 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-DQnTpiNz.js → run-BWdt9YOd.js} +126 -2
- package/build/run-BWdt9YOd.js.map +1 -0
- package/package.json +1 -1
- package/build/run-DQnTpiNz.js.map +0 -1
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
77
77
|
| `license-file` | Each public package has a license field, and a license file with the same license in its own folder. A public repository, or a repository with a public package, has a license file at its root. In a GitHub Actions run, the event file tells if the repository is public, and the option `license` (MIT by default) is the license of a root with no public package. npm packs only the license file of the folder of the package, and GitHub reads only the one of the root: on 2026-11-02 five public repositories showed no license on GitHub while npm said MIT. `conventions fix` writes the missing files. | private strategy (2026-11-02). |
|
|
78
78
|
| `coverage-provider` | When a workflow calls the shared CI and the CI starts the action `coverage`, each package whose test script starts Vitest has `@vitest/coverage-v8`. The provider has the range of `vitest`. The package or the root can hold both. On `main` of a public repository, the action skips a package with no provider, so the artifact `coverage` has no report of it. On 2026-11-09, 15 of 43 public repositories had no provider. `conventions fix` adds it at the range of `vitest`. A caller with `coverage-on-main: false` does not break. The rule fails from 2026-11-25. | template `packages/cli` (`package add`), ireko `packages/ireko/package.json`, codeatlas `packages/*/package.json`. |
|
|
79
79
|
| `pack-no-buildinfo` | npm does not pack the build info file of tsc. The rule finds the file of each tsconfig of a public package after its `extends` chain. When `incremental` and `composite` are off, tsc writes no file. When an entry of `files` takes the file and no `!<path>` removes it, the rule breaks. A package with no field `files` packs each file, so it breaks too. The file changes on each build, and the release stops when the files of an unchanged version differ from npm. On 2026-11-09 this made the main of splay-react red. `conventions fix` adds the negation after its entry. A changed list of packed files needs a PATCH version. The rule fails from 2026-11-25. | splay-react `package.json` (1.0.2), splay `package.json`, cue `npm/package/ts.cue` (2.1.3). |
|
|
80
|
+
| `publish-text-safe` | The text that npm puts in the publish document of a public package has no line in the shape of an attack. This text is each README file of the package folder, the field `description` and each entry of `keywords`. The shapes are in the list `ATTACK_SHAPES` of `src/rules/publish-text-safe.ts`, and the field `seen` of each shape gives the evidence of a refusal. On 2026-11-15 the registry refused each publish of `@mark1russell7/text` 0.0.7 for the shape `sql-boolean` (E403), and the error did not name the cause. The other three shapes follow the SQL rules of the OWASP Core Rule Set, and no refusal of them is on record. They are breaks too: a false break costs one reword, and a miss costs an E403 with no cause. A script tag is not a shape of the rule: the README of `@mark1russell7/site-pages` 0.5.4 has one, and its publish passed. The rule fails from its release day. | text `packages/text/README.md` (0.0.7, pull request 32), private strategy (2026-11-16). |
|
|
80
81
|
| `exports-require` | Each entry of the published `exports` of a public package (`publishConfig.exports`, else `exports`) that resolves for `import` also resolves for `require`. The rule resolves each entry as Node does, with the conditions `import`, `node`, `default` and then `require`, `node`, `default`. An entry with only `types` and `import` stops `require()` with ERR_PACKAGE_PATH_NOT_EXPORTED, also on Node 22 and 24. `conventions fix` adds `"default"` with the target of `"import"` as the last member of the object. A target null for `require` is accepted. The rule warns until 2026-11-27. | rigor `package.json` (publishConfig.exports, rigor#196). packing, highways, layout-contract and vex give a `default` target in each published entry. |
|
|
81
82
|
| `home-module` | A change does not add a value import of a module that only a home of the map imports, for example `node:sqlite` out of `@mark1russell7/sqlite`. The field `modules` of a home gives these modules. The rule finds `import` and `export` with `from`, a bare `import`, `import()`, `require()` and `getBuiltinModule()`. An `import type`, an `export type`, `typeof import()` and `import().Name` do not break. A copy of the code of a home drifts from the home: on 2026-11-15 codeatlas and client opened `node:sqlite` with their own pragmas and transactions. The rule examines only the lines that the change adds. A real exception goes in `ignore` with a reason. The rule fails from 2026-11-30. | private strategy (2026-11-15). |
|
|
82
83
|
| `home-package` | A change does not add a function with a signature name of another home of the map (for example `median`, `mulberry32` or `writeFileAtomic`). A local copy drifts from the home and splits the fixes. On 2026-11-02 the repositories had 68 local statistics functions in 14 repositories. The rule examines only the lines that the change adds, so the copies that exist do not break. | private direction 18 (STRATEGY.md, 2026-11-02). |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -578,6 +578,7 @@ export declare function invalidPatternBreaks(patterns: readonly PrivatePattern[]
|
|
|
578
578
|
export declare function privateTextBreaks(name: string, text: string, privates: PrivateSources, options?: TextBreakOptions): Break[];
|
|
579
579
|
export declare const noLocalPaths: Rule;
|
|
580
580
|
export declare const packNoBuildinfo: Rule;
|
|
581
|
+
export declare const publishTextSafe: Rule;
|
|
581
582
|
export declare const exportsRequire: Rule;
|
|
582
583
|
export declare const apiReportScript: Rule;
|
|
583
584
|
export declare const pagesAfterRelease: Rule;
|
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/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/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;;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,cAAc;;qBAOxB,UAAW,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;UCpN9E;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA,SAAS;;;UAIH;;WAEN;;WAEA,OAAO,SAAS,eAAe;;;wBAW1B,eAAe,MAAM,OAAO;;;;;;;wBAU5B,YAAY,gBAAgB,gBAAgB,SAAS;;qBCxCxD;qBA4FA,WAAW;qBC5CX,iBAAiB;;UC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ules/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/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;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;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WAEN,YAAY;;;;;;;wBAqMP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;qBA2E7C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAWD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCzX9C,cAAc,SAAS;WAA0B;WAA0B;;UC6EvE;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;;;;;;;;qBChQ3C;;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 runGit, $t as homePackage, A as typedFiles, An as withOneJob, At as isCommonUse, B as roadmapParses, Bn as cuePreset, Bt as coverageProvider, C as versionTitle, Cn as sharedCi, Ct as privateNamesFile, D as typedScripts, Dn as SECURITY_TIMEOUT_MINUTES, Dt as PrivateNameListError, E as trustPolicy, En as SECURITY_SCAN_INPUTS, Et as PRIVATE_NAME_LIST, F as HOME_TIMEOUT_MS, Fn as summaryName, Ft as pathNameHit, G as publishedMinor, Gn as hasFile, Gt as licenseFileOf, H as releaseFiles, Hn as RULE_WARN_DAYS, Ht as LICENSE_TEXTS, I as blockHash, In as gateAfterCancel, It as noBuildOutput, J as NPM_REGISTRY, Jn as lineOf, Jt as homeModule, K as publishedMinorRule, Kn as inFolder, Kt as mitText, L as githubFetch, Ln as readAction, Lt as REAL_COMPARE, M as isSourcePath, Mn as convertGate, Mt as lineNameHits, N as pathsOf, Nn as gateTrigger, Nt as nameMatches, O as configsOfScript, On as securityCallers, Ot as firstNameMatch, P as sourceMain, Pn as prPathFilters, Pt as parsePrivateNames, Q as unreleasedChange, Qn as replaceLine, Qt as declaredName, R as sharedDocsRule, Rn as readWorkflow, Rt as hasImportMetaMain, S as setVersions, Sn as callsSharedCi, St as noLocalPaths, T as TRAIN_SCOPES, Tn as SECURITY_SCAN_COMMIT, Tt as privateTextBreaks, U as lockedVersions, Un as cleanPath, Ut as authorOf, V as requiredScripts, Vn as DEPENDENCY_FIELDS, Vt as apiReportScript, W as minorOf, Wn as codePackages, Wt as licenseFile, X as UNSHIPPED_FILES, Xn as parseJsonc, Xt as moduleUses, Y as SHIPPED_FIELDS, Yn as matchesAny, Yt as moduleMessage, Z as npmLookup, Zn as readJsonc, Zt as modulesOf, _ as workspaceProtocol, _n as hasTests, _t as HOME_PATTERNS, a as listRules, an as HOMES, at as pagesAfterRelease, b as yamlFaults, bn as SHARED_CI, bt as PRIVATE_PATTERNS_VARIABLE, c as runCli, cn as mapMarkdown, ct as scheduleMinute, d as HOOK_MARKER, dn as npmDrift, dt as pagesCalls, en as messageOf, er as specifiersOf, et as pipeFails, f as NO_READ_LINE, fn as npmNames, ft as pagesSite, g as RULES, gn as serviceRunMain, gt as DEFAULT_ALLOWED, h as prePush, hn as runCalls, ht as packNoBuildinfo, i as formatResult, in as HOME_EXPORTS, it as siteCheckInCi, j as testsRequired, jn as ACTIONS_COMMIT, jt as lineNameHit, k as scriptsOf, kn as securityOneJob, kt as isAllowedHit, l as runFix, ln as mapText, lt as pushMainOnly, m as installHook, mn as SERVICE_PACKAGE, mt as publishTextSafe, n as annotations, nn as reposOf, nr as parseConfig, nt as isPinned, o as readConfig, on as MAP_RULE, ot as repositoryOfRemote, p as PRE_PUSH_HOOK, pn as readOverlay, pt as exportsRequire, q as reachOf, qn as keyLine, qt as repositoryIsPublic, r as createContext, rn as signaturesOf, rt as pinnedGitDeps, s as runChecks, sn as findHomes, st as runnerBudget, t as USAGE, tn as repoOf, tr as defaultOptions, tt as isGitSpecifier, u as summaryMarkdown, un as mergeHomes, ut as PAGES_WORKFLOWS, v as GITHUB_YAML, vn as tsconfigTest, vt as PRIVATE_NAMES_FILE_CONFIG, w as IGNORE_AFTER, wn as setupCue, wt as privatePatterns, x as namedVersions, xn as SHARED_WORKFLOWS, xt as invalidPatternBreaks, y as workflowParses, yn as SHARED_ACTIONS, yt as PRIVATE_NAMES_FILE_VARIABLE, z as roadmapOfLine, zn as STRICT_OPTIONS, zt as mainCheck } from "./run-BWdt9YOd.js";
|
|
2
2
|
import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
|
|
3
3
|
// src/release-text.ts
|
|
4
4
|
/**
|
|
@@ -65,6 +65,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
65
65
|
if (section.length <= 1e5) return section;
|
|
66
66
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
67
67
|
}
|
|
68
|
-
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, 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, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, 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, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, 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, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
68
|
+
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, 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, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, 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, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, 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, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
69
|
|
|
70
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -13663,6 +13663,129 @@ const packNoBuildinfo = {
|
|
|
13663
13663
|
return breaks;
|
|
13664
13664
|
}
|
|
13665
13665
|
};
|
|
13666
|
+
// src/rules/publish-text-safe.ts
|
|
13667
|
+
/**
|
|
13668
|
+
* The rule `publish-text-safe`: the text that npm puts in the publish document of a public package has no line in the
|
|
13669
|
+
* shape of an attack. This text is each README file of the package folder, the field `description` and the field
|
|
13670
|
+
* `keywords`. The registry screens the document. On 2026-11-15 it refused a document with the shape of a SQL probe
|
|
13671
|
+
* (E403), and the error did not name the cause.
|
|
13672
|
+
*
|
|
13673
|
+
* This rule does not wait `RULE_WARN_DAYS`: it fails from its release day. The wait gives the owners time to fix the
|
|
13674
|
+
* breaks of a new rule. On 2026-11-16 a first read of the local clones used the shapes of this file. It found 1 true
|
|
13675
|
+
* example, the README of text 0.0.7 (in 2 old clones), and 0 false hits. Thus the wait protects no repository. A wait
|
|
13676
|
+
* of 14 days lets a repeat of the text case pass with only a warning.
|
|
13677
|
+
*
|
|
13678
|
+
* At 11:32 UTC of the same day, one read of 446 README files and 664 manifests of the local clones found 0 hits. The
|
|
13679
|
+
* sessions add, pull and remove clones during a day, so each count is the count of one read.
|
|
13680
|
+
*/
|
|
13681
|
+
/**
|
|
13682
|
+
* The shapes of the attacks. Only the shape `sql-boolean` has a refusal on record: it stopped each publish of
|
|
13683
|
+
* @mark1russell7/text 0.0.7. The other three shapes are patterns that follow the SQL rules of the OWASP Core Rule Set,
|
|
13684
|
+
* and no refusal of them is on record. They are breaks too. A false break names its line and costs one reword. A miss
|
|
13685
|
+
* costs an E403 that does not name its cause, and on 2026-11-15 this cost hours.
|
|
13686
|
+
*
|
|
13687
|
+
* A script tag is not here: @mark1russell7/site-pages 0.5.4 has one in its README, and its publish passed.
|
|
13688
|
+
*/
|
|
13689
|
+
const ATTACK_SHAPES = Object.freeze([
|
|
13690
|
+
{
|
|
13691
|
+
id: "sql-boolean",
|
|
13692
|
+
what: "a SQL probe: AND or OR, a number, a comparison and a number",
|
|
13693
|
+
pattern: /\b(?:and|or)\s+\d+\s*(?:=|<>|!=)\s*\d+(?!\w)/i,
|
|
13694
|
+
seen: "E403, @mark1russell7/text 0.0.7, 2026-11-15"
|
|
13695
|
+
},
|
|
13696
|
+
{
|
|
13697
|
+
id: "sql-tautology",
|
|
13698
|
+
what: "a SQL tautology: a quote, AND or OR, and two equal values",
|
|
13699
|
+
pattern: /(['"])\s*(?:or|and)\s+(['"]?)(\w+)\2\s*=\s*\2\3(?!\w)/i,
|
|
13700
|
+
seen: null
|
|
13701
|
+
},
|
|
13702
|
+
{
|
|
13703
|
+
id: "sql-union",
|
|
13704
|
+
what: "a SQL UNION SELECT",
|
|
13705
|
+
pattern: /\bunion\s+(?:all\s+)?select\b/i,
|
|
13706
|
+
seen: null
|
|
13707
|
+
},
|
|
13708
|
+
{
|
|
13709
|
+
id: "sql-drop",
|
|
13710
|
+
what: "a SQL DROP after a semicolon",
|
|
13711
|
+
pattern: /;\s*drop\s+(?:table|database)\b/i,
|
|
13712
|
+
seen: null
|
|
13713
|
+
}
|
|
13714
|
+
]);
|
|
13715
|
+
/** This function gives each line of `text` with the shape of an attack, one time for each shape, in the order of the lines. */
|
|
13716
|
+
function attackLines(text, shapes = ATTACK_SHAPES) {
|
|
13717
|
+
const found = [];
|
|
13718
|
+
text.split(/\r?\n/).forEach((line, index) => {
|
|
13719
|
+
for (const shape of shapes) {
|
|
13720
|
+
const match = shape.pattern.exec(line);
|
|
13721
|
+
if (match !== null) found.push({
|
|
13722
|
+
line: index + 1,
|
|
13723
|
+
shape,
|
|
13724
|
+
text: match[0]
|
|
13725
|
+
});
|
|
13726
|
+
}
|
|
13727
|
+
});
|
|
13728
|
+
return found;
|
|
13729
|
+
}
|
|
13730
|
+
/** The names of the README files that npm packs from the folder of a package, with each case and extension. */
|
|
13731
|
+
const README = /^readme(?:\.[\w-]+)?$/i;
|
|
13732
|
+
/** This function gives a matched text for a message, with no line end and at most 60 characters. */
|
|
13733
|
+
const shown = (text) => JSON.stringify(text.length > 60 ? `${text.slice(0, 57)}...` : text);
|
|
13734
|
+
/** This function gives the end of the message of an attack shape: the refusal on record, or the source of the shape. */
|
|
13735
|
+
const refusalOf = (shape) => shape.seen === null ? "The shape follows a SQL rule of the OWASP Core Rule Set, so the npm registry can refuse the publish (E403). No refusal of it is on record." : `The npm registry refused a publish with this shape (${shape.seen}).`;
|
|
13736
|
+
const publishTextSafe = {
|
|
13737
|
+
id: "publish-text-safe",
|
|
13738
|
+
title: "The text that npm puts in the publish document of a public package (each README, `description` and `keywords`) has no line in the shape of an attack.",
|
|
13739
|
+
reason: "The npm registry screens the publish document, and it refused a document with the shape of a SQL probe. On 2026-11-15 and 2026-11-16, each publish of @mark1russell7/text 0.0.7 failed with E403. An example in its README had AND, a number, an equal sign and a number. The error does not name the cause, so the release looked like a fault of the trust of the package. A new README example went out, and the same trust published 0.0.7.",
|
|
13740
|
+
fix: "Write the example with other words or values, for example `partsAt(\"A wide river\", [[2, 6]])`. A changed README of a released package needs a PATCH version.",
|
|
13741
|
+
sources: [{
|
|
13742
|
+
repo: "text",
|
|
13743
|
+
rule: "publish-text-safe",
|
|
13744
|
+
doc: "packages/text/README.md (0.0.7, pull request 32)"
|
|
13745
|
+
}, {
|
|
13746
|
+
repo: "private",
|
|
13747
|
+
rule: "publish-text-safe",
|
|
13748
|
+
doc: "docs/STRATEGY.md (2026-11-16, the publish document has no attack shape and no token)"
|
|
13749
|
+
}],
|
|
13750
|
+
options: {},
|
|
13751
|
+
failsFrom: "2026-11-16",
|
|
13752
|
+
check(context) {
|
|
13753
|
+
const breaks = [];
|
|
13754
|
+
for (const pkg of versionedPackages(context)) {
|
|
13755
|
+
const name = String(pkg.manifest["name"]);
|
|
13756
|
+
let names;
|
|
13757
|
+
try {
|
|
13758
|
+
names = readdirSync(pkg.dir).filter((file) => README.test(file)).sort();
|
|
13759
|
+
} catch {
|
|
13760
|
+
names = [];
|
|
13761
|
+
}
|
|
13762
|
+
for (const file of names) {
|
|
13763
|
+
let text;
|
|
13764
|
+
try {
|
|
13765
|
+
text = readFileSync(join(pkg.dir, file), "utf8");
|
|
13766
|
+
} catch {
|
|
13767
|
+
continue;
|
|
13768
|
+
}
|
|
13769
|
+
for (const hit of attackLines(text)) breaks.push({
|
|
13770
|
+
file: inFolder(pkg.folder, file),
|
|
13771
|
+
line: hit.line,
|
|
13772
|
+
message: `The README of ${name} has ${shown(hit.text)}, ${hit.shape.what} (${hit.shape.id}). ${refusalOf(hit.shape)}`
|
|
13773
|
+
});
|
|
13774
|
+
}
|
|
13775
|
+
const keywords = pkg.manifest["keywords"];
|
|
13776
|
+
const fields = [...typeof pkg.manifest["description"] === "string" ? [["description", pkg.manifest["description"]]] : [], ...Array.isArray(keywords) ? keywords.filter((word) => typeof word === "string").map((word) => ["keywords", word]) : []];
|
|
13777
|
+
for (const [field, value] of fields) for (const hit of attackLines(value)) {
|
|
13778
|
+
const line = lineOf(pkg.text, `"${field}"`);
|
|
13779
|
+
breaks.push({
|
|
13780
|
+
file: pkg.file,
|
|
13781
|
+
...line === void 0 ? {} : { line },
|
|
13782
|
+
message: `The field "${field}" of ${name} has ${shown(hit.text)}, ${hit.shape.what} (${hit.shape.id}). ${refusalOf(hit.shape)}`
|
|
13783
|
+
});
|
|
13784
|
+
}
|
|
13785
|
+
}
|
|
13786
|
+
return breaks;
|
|
13787
|
+
}
|
|
13788
|
+
};
|
|
13666
13789
|
// src/rules/exports-require.ts
|
|
13667
13790
|
/**
|
|
13668
13791
|
* The rule `exports-require`: each entry of the published `exports` that resolves for `import` also resolves for
|
|
@@ -17869,6 +17992,7 @@ const RULES = [
|
|
|
17869
17992
|
licenseFile,
|
|
17870
17993
|
coverageProvider,
|
|
17871
17994
|
packNoBuildinfo,
|
|
17995
|
+
publishTextSafe,
|
|
17872
17996
|
exportsRequire,
|
|
17873
17997
|
pagesSite,
|
|
17874
17998
|
siteCheckInCi,
|
|
@@ -18770,6 +18894,6 @@ function runHook(args, io) {
|
|
|
18770
18894
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
18771
18895
|
}, io);
|
|
18772
18896
|
}
|
|
18773
|
-
export { unreleasedChangeRule as $,
|
|
18897
|
+
export { unreleasedChangeRule as $, runGit as $n, homePackage as $t, typedFiles as A, withOneJob as An, isCommonUse as At, roadmapParses as B, cuePreset as Bn, coverageProvider as Bt, versionTitle as C, sharedCi as Cn, privateNamesFile as Ct, typedScripts as D, SECURITY_TIMEOUT_MINUTES as Dn, PrivateNameListError as Dt, trustPolicy as E, SECURITY_SCAN_INPUTS as En, PRIVATE_NAME_LIST as Et, HOME_TIMEOUT_MS as F, summaryName as Fn, pathNameHit as Ft, publishedMinor as G, hasFile as Gn, licenseFileOf as Gt, releaseFiles as H, RULE_WARN_DAYS as Hn, LICENSE_TEXTS as Ht, blockHash as I, gateAfterCancel as In, noBuildOutput as It, NPM_REGISTRY as J, lineOf as Jn, homeModule as Jt, publishedMinorRule as K, inFolder as Kn, mitText as Kt, githubFetch as L, readAction as Ln, REAL_COMPARE as Lt, isSourcePath as M, convertGate as Mn, lineNameHits as Mt, pathsOf as N, gateTrigger as Nn, nameMatches as Nt, configsOfScript as O, securityCallers as On, firstNameMatch as Ot, sourceMain as P, prPathFilters as Pn, parsePrivateNames as Pt, unreleasedChange as Q, replaceLine as Qn, declaredName as Qt, sharedDocsRule as R, readWorkflow as Rn, hasImportMetaMain as Rt, setVersions as S, callsSharedCi as Sn, noLocalPaths as St, TRAIN_SCOPES as T, SECURITY_SCAN_COMMIT as Tn, privateTextBreaks as Tt, lockedVersions as U, cleanPath as Un, authorOf as Ut, requiredScripts as V, DEPENDENCY_FIELDS as Vn, apiReportScript as Vt, minorOf as W, codePackages as Wn, licenseFile as Wt, UNSHIPPED_FILES as X, parseJsonc as Xn, moduleUses as Xt, SHIPPED_FIELDS as Y, matchesAny as Yn, moduleMessage as Yt, npmLookup as Z, readJsonc as Zn, modulesOf as Zt, workspaceProtocol as _, hasTests as _n, HOME_PATTERNS as _t, listRules as a, HOMES as an, pagesAfterRelease as at, yamlFaults as b, SHARED_CI as bn, PRIVATE_PATTERNS_VARIABLE as bt, runCli as c, mapMarkdown as cn, scheduleMinute as ct, HOOK_MARKER as d, npmDrift as dn, pagesCalls as dt, messageOf as en, specifiersOf as er, pipeFails as et, NO_READ_LINE as f, npmNames as fn, pagesSite as ft, RULES as g, serviceRunMain as gn, DEFAULT_ALLOWED as gt, prePush as h, runCalls as hn, packNoBuildinfo as ht, formatResult as i, HOME_EXPORTS as in, siteCheckInCi as it, testsRequired as j, ACTIONS_COMMIT as jn, lineNameHit as jt, scriptsOf as k, securityOneJob as kn, isAllowedHit as kt, runFix as l, mapText as ln, pushMainOnly as lt, installHook as m, SERVICE_PACKAGE as mn, publishTextSafe as mt, annotations as n, reposOf as nn, parseConfig as nr, isPinned as nt, readConfig as o, MAP_RULE as on, repositoryOfRemote as ot, PRE_PUSH_HOOK as p, readOverlay as pn, exportsRequire as pt, reachOf as q, keyLine as qn, repositoryIsPublic as qt, createContext as r, signaturesOf as rn, pinnedGitDeps as rt, runChecks as s, findHomes as sn, runnerBudget as st, USAGE as t, repoOf as tn, defaultOptions as tr, isGitSpecifier as tt, summaryMarkdown as u, mergeHomes as un, PAGES_WORKFLOWS as ut, GITHUB_YAML as v, tsconfigTest as vn, PRIVATE_NAMES_FILE_CONFIG as vt, IGNORE_AFTER as w, setupCue as wn, privatePatterns as wt, namedVersions as x, SHARED_WORKFLOWS as xn, invalidPatternBreaks as xt, workflowParses as y, SHARED_ACTIONS as yn, PRIVATE_NAMES_FILE_VARIABLE as yt, roadmapOfLine as z, STRICT_OPTIONS as zn, mainCheck as zt };
|
|
18774
18898
|
|
|
18775
|
-
//# sourceMappingURL=run-
|
|
18899
|
+
//# sourceMappingURL=run-BWdt9YOd.js.map
|