Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
7bc080dabf
chore(deps-dev): bump @ts-dev-tools/core
Bumps the npm-dev-dependencies group with 1 update in the / directory: [@ts-dev-tools/core](https://github.com/escemi-tech/ts-dev-tools).


Updates `@ts-dev-tools/core` from 1.6.2 to 1.8.9
- [Release notes](https://github.com/escemi-tech/ts-dev-tools/releases)
- [Commits](https://github.com/escemi-tech/ts-dev-tools/compare/@ts-dev-tools/core@1.6.2...@ts-dev-tools/core@1.8.9)

---
updated-dependencies:
- dependency-name: "@ts-dev-tools/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 04:31:02 +00:00
9 changed files with 81 additions and 133 deletions

View File

@ -36,7 +36,6 @@
}, },
"features": { "features": {
"ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/prettier:1": {}, "ghcr.io/devcontainers-contrib/features/prettier:1": {}
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
} }
} }

View File

@ -39,7 +39,7 @@ jobs:
owner: ${{ github.repository_owner }} owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }} repo: ${{ github.event.repository.name }}
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 - uses: actions/create-github-app-token@30bf6253fa41bdc8d1501d202ad15287582246b4 # v2.0.3
id: generate-token id: generate-token
with: with:
app-id: ${{ vars.CI_BOT_APP_ID }} app-id: ${{ vars.CI_BOT_APP_ID }}

View File

@ -9,4 +9,4 @@ USER ${UID}:${GID}
ENV RUN_LOCAL=true ENV RUN_LOCAL=true
ENV USE_FIND_ALGORITHM=true ENV USE_FIND_ALGORITHM=true
ENV LOG_LEVEL=WARN ENV LOG_LEVEL=WARN
ENV LOG_FILE="/github/home/logs" ENV LOG_FILE="../logs"

View File

@ -14,10 +14,6 @@ lint-fix: ## Execute linting and fix
-e FIX_MARKDOWN_PRETTIER=true \ -e FIX_MARKDOWN_PRETTIER=true \
-e FIX_NATURAL_LANGUAGE=true) -e FIX_NATURAL_LANGUAGE=true)
all: ## Execute all formats and checks
@npm run all
$(MAKE) lint-fix
define run_linter define run_linter
DEFAULT_WORKSPACE="$(CURDIR)"; \ DEFAULT_WORKSPACE="$(CURDIR)"; \
LINTER_IMAGE="linter:latest"; \ LINTER_IMAGE="linter:latest"; \

67
dist/index.js generated vendored
View File

@ -1882,7 +1882,6 @@ class Context {
this.action = process.env.GITHUB_ACTION; this.action = process.env.GITHUB_ACTION;
this.actor = process.env.GITHUB_ACTOR; this.actor = process.env.GITHUB_ACTOR;
this.job = process.env.GITHUB_JOB; this.job = process.env.GITHUB_JOB;
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
@ -33499,14 +33498,6 @@ module.exports = require("net");
/***/ }), /***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 7598: /***/ 7598:
/***/ ((module) => { /***/ ((module) => {
@ -33523,14 +33514,6 @@ module.exports = require("node:events");
/***/ }), /***/ }),
/***/ 1708:
/***/ ((module) => {
"use strict";
module.exports = require("node:process");
/***/ }),
/***/ 7075: /***/ 7075:
/***/ ((module) => { /***/ ((module) => {
@ -35356,8 +35339,8 @@ function composeCollection(CN, ctx, token, props, onError) {
tag = kt; tag = kt;
} }
else { else {
if (kt) { if (kt?.collection) {
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true); onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
} }
else { else {
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true); onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
@ -35650,7 +35633,6 @@ exports.composeScalar = composeScalar;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342); var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021); var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464); var errors = __nccwpck_require__(1464);
@ -35784,7 +35766,7 @@ class Composer {
} }
/** Advance the composer by one CST token. */ /** Advance the composer by one CST token. */
*next(token) { *next(token) {
if (node_process.env.LOG_STREAM) if (process.env.LOG_STREAM)
console.dir(token, { depth: null }); console.dir(token, { depth: null });
switch (token.type) { switch (token.type) {
case 'directive': case 'directive':
@ -36826,7 +36808,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) { if (atNewline) {
if (comment) if (comment)
comment += token.source; comment += token.source;
else if (!found || indicator !== 'seq-item-ind') else
spaceBefore = true; spaceBefore = true;
} }
else else
@ -37959,21 +37941,19 @@ exports.visitAsync = visit.visitAsync;
/***/ }), /***/ }),
/***/ 7249: /***/ 7249:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) { function debug(logLevel, ...messages) {
if (logLevel === 'debug') if (logLevel === 'debug')
console.log(...messages); console.log(...messages);
} }
function warn(logLevel, warning) { function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') { if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof node_process.emitWarning === 'function') if (typeof process !== 'undefined' && process.emitWarning)
node_process.emitWarning(warning); process.emitWarning(warning);
else else
console.warn(warning); console.warn(warning);
} }
@ -40149,7 +40129,6 @@ exports.LineCounter = LineCounter;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461); var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361); var lexer = __nccwpck_require__(361);
@ -40316,7 +40295,7 @@ class Parser {
*/ */
*next(source) { *next(source) {
this.source = source; this.source = source;
if (node_process.env.LOG_TOKENS) if (process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source)); console.log('|', cst.prettyToken(source));
if (this.atScalar) { if (this.atScalar) {
this.atScalar = false; this.atScalar = false;
@ -40822,20 +40801,7 @@ class Parser {
default: { default: {
const bv = this.startBlockValue(map); const bv = this.startBlockValue(map);
if (bv) { if (bv) {
if (bv.type === 'block-seq') { if (atMapIndent && bv.type !== 'block-seq') {
if (!it.explicitKey &&
it.sep &&
!includesToken(it.sep, 'newline')) {
yield* this.pop({
type: 'error',
offset: this.offset,
message: 'Unexpected block-seq-ind on same line with key',
source: this.source
});
return;
}
}
else if (atMapIndent) {
map.items.push({ start }); map.items.push({ start });
} }
this.stack.push(bv); this.stack.push(bv);
@ -41740,7 +41706,6 @@ exports.getTags = getTags;
"use strict"; "use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301); var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069); var stringifyString = __nccwpck_require__(3069);
@ -41757,8 +41722,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob) * document.querySelector('#photo').src = URL.createObjectURL(blob)
*/ */
resolve(src, onError) { resolve(src, onError) {
if (typeof node_buffer.Buffer === 'function') { if (typeof Buffer === 'function') {
return node_buffer.Buffer.from(src, 'base64'); return Buffer.from(src, 'base64');
} }
else if (typeof atob === 'function') { else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines // On IE 11, atob() can't handle newlines
@ -41774,15 +41739,13 @@ const binary = {
} }
}, },
stringify({ comment, type, value }, ctx, onComment, onChompKeep) { stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
if (!value)
return '';
const buf = value; // checked earlier by binary.identify() const buf = value; // checked earlier by binary.identify()
let str; let str;
if (typeof node_buffer.Buffer === 'function') { if (typeof Buffer === 'function') {
str = str =
buf instanceof node_buffer.Buffer buf instanceof Buffer
? buf.toString('base64') ? buf.toString('base64')
: node_buffer.Buffer.from(buf.buffer).toString('base64'); : Buffer.from(buf.buffer).toString('base64');
} }
else if (typeof btoa === 'function') { else if (typeof btoa === 'function') {
let s = ''; let s = '';
@ -42499,7 +42462,7 @@ const timestamp = {
} }
return new Date(date); return new Date(date);
}, },
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, '') ?? '' stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, '')
}; };
exports.floatTime = floatTime; exports.floatTime = floatTime;

66
dist/post.js generated vendored
View File

@ -26516,14 +26516,6 @@ module.exports = require("net");
/***/ }), /***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 7598: /***/ 7598:
/***/ ((module) => { /***/ ((module) => {
@ -26540,14 +26532,6 @@ module.exports = require("node:events");
/***/ }), /***/ }),
/***/ 1708:
/***/ ((module) => {
"use strict";
module.exports = require("node:process");
/***/ }),
/***/ 7075: /***/ 7075:
/***/ ((module) => { /***/ ((module) => {
@ -28373,8 +28357,8 @@ function composeCollection(CN, ctx, token, props, onError) {
tag = kt; tag = kt;
} }
else { else {
if (kt) { if (kt?.collection) {
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true); onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
} }
else { else {
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true); onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
@ -28667,7 +28651,6 @@ exports.composeScalar = composeScalar;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342); var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021); var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464); var errors = __nccwpck_require__(1464);
@ -28801,7 +28784,7 @@ class Composer {
} }
/** Advance the composer by one CST token. */ /** Advance the composer by one CST token. */
*next(token) { *next(token) {
if (node_process.env.LOG_STREAM) if (process.env.LOG_STREAM)
console.dir(token, { depth: null }); console.dir(token, { depth: null });
switch (token.type) { switch (token.type) {
case 'directive': case 'directive':
@ -29843,7 +29826,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) { if (atNewline) {
if (comment) if (comment)
comment += token.source; comment += token.source;
else if (!found || indicator !== 'seq-item-ind') else
spaceBefore = true; spaceBefore = true;
} }
else else
@ -30976,21 +30959,19 @@ exports.visitAsync = visit.visitAsync;
/***/ }), /***/ }),
/***/ 7249: /***/ 7249:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) { function debug(logLevel, ...messages) {
if (logLevel === 'debug') if (logLevel === 'debug')
console.log(...messages); console.log(...messages);
} }
function warn(logLevel, warning) { function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') { if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof node_process.emitWarning === 'function') if (typeof process !== 'undefined' && process.emitWarning)
node_process.emitWarning(warning); process.emitWarning(warning);
else else
console.warn(warning); console.warn(warning);
} }
@ -33166,7 +33147,6 @@ exports.LineCounter = LineCounter;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461); var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361); var lexer = __nccwpck_require__(361);
@ -33333,7 +33313,7 @@ class Parser {
*/ */
*next(source) { *next(source) {
this.source = source; this.source = source;
if (node_process.env.LOG_TOKENS) if (process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source)); console.log('|', cst.prettyToken(source));
if (this.atScalar) { if (this.atScalar) {
this.atScalar = false; this.atScalar = false;
@ -33839,20 +33819,7 @@ class Parser {
default: { default: {
const bv = this.startBlockValue(map); const bv = this.startBlockValue(map);
if (bv) { if (bv) {
if (bv.type === 'block-seq') { if (atMapIndent && bv.type !== 'block-seq') {
if (!it.explicitKey &&
it.sep &&
!includesToken(it.sep, 'newline')) {
yield* this.pop({
type: 'error',
offset: this.offset,
message: 'Unexpected block-seq-ind on same line with key',
source: this.source
});
return;
}
}
else if (atMapIndent) {
map.items.push({ start }); map.items.push({ start });
} }
this.stack.push(bv); this.stack.push(bv);
@ -34757,7 +34724,6 @@ exports.getTags = getTags;
"use strict"; "use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301); var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069); var stringifyString = __nccwpck_require__(3069);
@ -34774,8 +34740,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob) * document.querySelector('#photo').src = URL.createObjectURL(blob)
*/ */
resolve(src, onError) { resolve(src, onError) {
if (typeof node_buffer.Buffer === 'function') { if (typeof Buffer === 'function') {
return node_buffer.Buffer.from(src, 'base64'); return Buffer.from(src, 'base64');
} }
else if (typeof atob === 'function') { else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines // On IE 11, atob() can't handle newlines
@ -34791,15 +34757,13 @@ const binary = {
} }
}, },
stringify({ comment, type, value }, ctx, onComment, onChompKeep) { stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
if (!value)
return '';
const buf = value; // checked earlier by binary.identify() const buf = value; // checked earlier by binary.identify()
let str; let str;
if (typeof node_buffer.Buffer === 'function') { if (typeof Buffer === 'function') {
str = str =
buf instanceof node_buffer.Buffer buf instanceof Buffer
? buf.toString('base64') ? buf.toString('base64')
: node_buffer.Buffer.from(buf.buffer).toString('base64'); : Buffer.from(buf.buffer).toString('base64');
} }
else if (typeof btoa === 'function') { else if (typeof btoa === 'function') {
let s = ''; let s = '';
@ -35516,7 +35480,7 @@ const timestamp = {
} }
return new Date(date); return new Date(date);
}, },
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, '') ?? '' stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, '')
}; };
exports.floatTime = floatTime; exports.floatTime = floatTime;

View File

@ -1,3 +0,0 @@
import { default as tsDevToolsCore } from "@ts-dev-tools/core/dist/eslint-plugin-ts-dev-tools/index.js";
export default tsDevToolsCore.default;

26
package-lock.json generated
View File

@ -10,13 +10,13 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
"@actions/github": "^6.0.1", "@actions/github": "^6.0.0",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@octokit/action": "^7.0.2", "@octokit/action": "^7.0.1",
"docker-compose": "^1.2.0" "docker-compose": "^1.2.0"
}, },
"devDependencies": { "devDependencies": {
"@ts-dev-tools/core": "^1.9.1", "@ts-dev-tools/core": "^1.6.2",
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.3",
"eslint-plugin-github": "^6.0.0", "eslint-plugin-github": "^6.0.0",
"eslint-plugin-jsonc": "^2.20.0" "eslint-plugin-jsonc": "^2.20.0"
@ -53,18 +53,14 @@
} }
}, },
"node_modules/@actions/github": { "node_modules/@actions/github": {
"version": "6.0.1", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.1.tgz", "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
"integrity": "sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==", "integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
"license": "MIT",
"dependencies": { "dependencies": {
"@actions/http-client": "^2.2.0", "@actions/http-client": "^2.2.0",
"@octokit/core": "^5.0.1", "@octokit/core": "^5.0.1",
"@octokit/plugin-paginate-rest": "^9.2.2", "@octokit/plugin-paginate-rest": "^9.0.0",
"@octokit/plugin-rest-endpoint-methods": "^10.4.0", "@octokit/plugin-rest-endpoint-methods": "^10.0.0"
"@octokit/request": "^8.4.1",
"@octokit/request-error": "^5.1.1",
"undici": "^5.28.5"
} }
}, },
"node_modules/@actions/http-client": { "node_modules/@actions/http-client": {
@ -2157,9 +2153,9 @@
} }
}, },
"node_modules/@ts-dev-tools/core": { "node_modules/@ts-dev-tools/core": {
"version": "1.9.1", "version": "1.9.0",
"resolved": "https://registry.npmjs.org/@ts-dev-tools/core/-/core-1.9.1.tgz", "resolved": "https://registry.npmjs.org/@ts-dev-tools/core/-/core-1.9.0.tgz",
"integrity": "sha512-2BzflHQULywPpS2J3qE5ymtPbPHQY+45RYX/MxY6s8oFECSzlsqM9ko5k2Ub8EG7fdTtNiueaijDV7Vqv1RO1A==", "integrity": "sha512-pa2eOyjAOfdFIWHyLpg8BThgIqPuz9tLBzqYl9jhJ4NR1SiV35Le7AxVlyI/x4MENLR1VZ2O8rqBIBLI3klzqg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -73,17 +73,50 @@
}, },
"dependencies": { "dependencies": {
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
"@actions/github": "^6.0.1", "@actions/github": "^6.0.0",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@octokit/action": "^7.0.2", "@octokit/action": "^7.0.1",
"docker-compose": "^1.2.0" "docker-compose": "^1.2.0"
}, },
"devDependencies": { "devDependencies": {
"@ts-dev-tools/core": "^1.9.1", "@ts-dev-tools/core": "^1.6.2",
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.3",
"eslint-plugin-github": "^6.0.0", "eslint-plugin-github": "^6.0.0",
"eslint-plugin-jsonc": "^2.20.0" "eslint-plugin-jsonc": "^2.20.0"
}, },
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"jest"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"env": {
"es2021": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"jest": {
"version": "detect"
}
},
"ignorePatterns": [
"dist",
"node_modules"
]
},
"prettier": { "prettier": {
"semi": true, "semi": true,
"printWidth": 100, "printWidth": 100,
@ -106,6 +139,6 @@
} }
}, },
"tsDevTools": { "tsDevTools": {
"version": "20240617094000-config-nx-scopes" "version": "20220617100200-prettier-cache"
} }
} }