@axiumine/koa-utils 9.1.0 → 9.1.1
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 -7
- package/package.json +16 -20
package/README.md
CHANGED
|
@@ -312,7 +312,9 @@ For the cluster path the `rediss://` scheme on `rootNodes` is not enough on its
|
|
|
312
312
|
## Build (contributors only)
|
|
313
313
|
|
|
314
314
|
```bash
|
|
315
|
+
corepack enable # once: Yarn 4 comes from the packageManager field
|
|
315
316
|
yarn install
|
|
317
|
+
yarn hooks:install # maintainers: points git at .githooks (Yarn 4 does not run the prepare script)
|
|
316
318
|
yarn build # ESM only — production output
|
|
317
319
|
yarn build:all # not usable today: the CJS half emits nothing, the package is ESM-only (use yarn build)
|
|
318
320
|
yarn test # build + build:tests + mocha, no coverage gate
|
|
@@ -333,19 +335,16 @@ There is no barrel and no `main` / `module` field.
|
|
|
333
335
|
|
|
334
336
|
### Registry
|
|
335
337
|
|
|
336
|
-
`yarn.lock`
|
|
338
|
+
`yarn.lock` is in the Yarn 4 format, which records no registry host, so a plain clone installs with no extra setup (`corepack enable`, then `yarn install`). `.yarnrc.yml` points Yarn at `https://registry.npmjs.org`.
|
|
337
339
|
|
|
338
|
-
If you install through a private npm mirror,
|
|
340
|
+
If you install through a private npm mirror, set an environment variable instead of editing any file. It overrides `.yarnrc.yml` for your shell only:
|
|
339
341
|
|
|
340
342
|
```sh
|
|
341
|
-
export
|
|
342
|
-
yarn registry:mirror # public registry -> mirror, before install
|
|
343
|
+
export YARN_NPM_REGISTRY_SERVER=http://host:4873
|
|
343
344
|
yarn install
|
|
344
|
-
yarn registry:canonical # mirror -> public registry, before commit
|
|
345
|
-
yarn registry:check # exit 1 if yarn.lock names any other host
|
|
346
345
|
```
|
|
347
346
|
|
|
348
|
-
|
|
347
|
+
Credentials belong in `~/.yarnrc.yml`, never in the repository. A pre-commit check rejects a Yarn 1 lockfile, a lockfile that resolves a package from a URL or git source, and a tracked `.yarnrc.yml` that sets credentials or another registry.
|
|
349
348
|
|
|
350
349
|
## Feedback, contributing and security
|
|
351
350
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiumine/koa-utils",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "Koa Utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -13,16 +13,13 @@
|
|
|
13
13
|
"homepage": "https://github.com/Axiumine/koa-utils/tree/main/docs/code",
|
|
14
14
|
"license": "AGPL-3.0-or-later",
|
|
15
15
|
"author": "Giovanni Manzoni <dev@giovannimanzoni.com> (https://www.giovannimanzoni.com)",
|
|
16
|
-
"
|
|
16
|
+
"packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f",
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"prepare": "yarn run hooks:install && rm -rf dist && yarn run build",
|
|
22
22
|
"hooks:install": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true",
|
|
23
|
-
"registry:mirror": "node scripts/registry-rewrite.mjs mirror",
|
|
24
|
-
"registry:canonical": "node scripts/registry-rewrite.mjs canonical",
|
|
25
|
-
"registry:check": "node scripts/registry-rewrite.mjs check",
|
|
26
23
|
"build": "yarn clean && yarn run build:esm",
|
|
27
24
|
"prepare:all": "echo 'read REAMDE' && rm -rf dist && yarn run build:all",
|
|
28
25
|
"build:all": "yarn run build:cjs && yarn run build:esm",
|
|
@@ -51,12 +48,11 @@
|
|
|
51
48
|
"test:coverage": "yarn build && yarn build:tests && c8 mocha",
|
|
52
49
|
"qodana": "yarn test:coverage && mkdir -p .qodana/results && docker run --rm --env-file .env -v \"$PWD\":/data/project -v \"$PWD\"/.qodana/results:/data/results jetbrains/qodana-js:2026.2 --show-report",
|
|
53
50
|
"qodana:cli": "yarn test:coverage && set -a && . ./.env && set +a && qodana scan --show-report",
|
|
54
|
-
"reindex": "node .gitnexus/run.cjs analyze --no-stats",
|
|
55
51
|
"semgrep": "./scripts/semgrep.sh",
|
|
56
52
|
"semgrep:all": "./scripts/semgrep.sh --registry",
|
|
57
53
|
"semgrep:canary": "./scripts/semgrep-canary.sh",
|
|
58
54
|
"upload": "npm publish --registry=https://registry.npmjs.org/",
|
|
59
|
-
"update": "yarn upgrade-interactive
|
|
55
|
+
"update": "yarn upgrade-interactive",
|
|
60
56
|
"cloc": "cloc . --exclude-dir=node_modules,dist,.git,upload",
|
|
61
57
|
"scc": "scc . --exclude-dir=node_modules,dist,.git -w --sort --directory-walker-job-workers=8 --count-as=mts:TypeScript"
|
|
62
58
|
},
|
|
@@ -1216,7 +1212,6 @@
|
|
|
1216
1212
|
"!dist/**/*.mjs.map",
|
|
1217
1213
|
"!dist/**/*.js.map"
|
|
1218
1214
|
],
|
|
1219
|
-
"dependencies": {},
|
|
1220
1215
|
"peerDependencies": {
|
|
1221
1216
|
"@node-rs/bcrypt": "<2",
|
|
1222
1217
|
"@sentry/node": "<11",
|
|
@@ -1318,7 +1313,7 @@
|
|
|
1318
1313
|
"chai": "^6.3.0",
|
|
1319
1314
|
"clamscan": "^2.4.0",
|
|
1320
1315
|
"dotenv": "^17.4.2",
|
|
1321
|
-
"eslint": "^10.
|
|
1316
|
+
"eslint": "^10.14.0",
|
|
1322
1317
|
"eslint-config-prettier": "^10.1.8",
|
|
1323
1318
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
1324
1319
|
"eslint-plugin-n": "^18.5.0",
|
|
@@ -1327,16 +1322,17 @@
|
|
|
1327
1322
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
1328
1323
|
"eslint-plugin-sonarjs": "^4.2.2",
|
|
1329
1324
|
"fast-check": "^4.10.2",
|
|
1330
|
-
"file-type": "^22.
|
|
1325
|
+
"file-type": "^22.3.0",
|
|
1331
1326
|
"fs-extra": "^11.4.1",
|
|
1332
1327
|
"fta-cli": "^3.1.0",
|
|
1333
|
-
"graphql": "^16.
|
|
1334
|
-
"
|
|
1335
|
-
"
|
|
1336
|
-
"
|
|
1328
|
+
"graphql": "^16.15.0",
|
|
1329
|
+
"keygrip": "^1.1.0",
|
|
1330
|
+
"knip": "^6.44.2",
|
|
1331
|
+
"koa": "^3.3.0",
|
|
1332
|
+
"mariadb": "^3.5.5",
|
|
1337
1333
|
"mocha": "^12.0.3",
|
|
1338
1334
|
"mongodb-memory-server": "^11.3.0",
|
|
1339
|
-
"mongoose": "^9.
|
|
1335
|
+
"mongoose": "^9.12.1",
|
|
1340
1336
|
"patch-package": "8.0.1",
|
|
1341
1337
|
"pg": "^8.23.1",
|
|
1342
1338
|
"prettier": "^3.9.10",
|
|
@@ -1348,17 +1344,17 @@
|
|
|
1348
1344
|
"sinon": "^22.1.0",
|
|
1349
1345
|
"ts-node": "^10.9.2",
|
|
1350
1346
|
"ts-patch": "^4.0.1",
|
|
1351
|
-
"type-coverage": "^2.
|
|
1347
|
+
"type-coverage": "^2.31.2",
|
|
1352
1348
|
"typescript": "^6.0.3",
|
|
1353
|
-
"typescript-eslint": "8.72.
|
|
1349
|
+
"typescript-eslint": "8.72.2",
|
|
1354
1350
|
"typescript-transform-paths": "^4.0.0",
|
|
1355
1351
|
"uuid": "^14.0.3"
|
|
1356
1352
|
},
|
|
1357
1353
|
"resolutions": {
|
|
1358
1354
|
"@socketlabs/email/axios": "^1.21.0",
|
|
1359
1355
|
"sequelize/uuid": "^11.1.1",
|
|
1360
|
-
"
|
|
1361
|
-
"
|
|
1362
|
-
"
|
|
1356
|
+
"typed-rest-client/qs": "^6.16.1",
|
|
1357
|
+
"glob": "^14.0.2",
|
|
1358
|
+
"minimatch": "^11.0.3"
|
|
1363
1359
|
}
|
|
1364
1360
|
}
|