mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-13 16:13:08 +08:00
Compare commits
3 Commits
7bc080dabf
...
8ae455e3bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ae455e3bb | ||
|
|
f16481cead | ||
|
|
3a740fb279 |
@ -36,6 +36,7 @@
|
|||||||
},
|
},
|
||||||
"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": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
.github/workflows/main-ci.yml
vendored
2
.github/workflows/main-ci.yml
vendored
@ -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@30bf6253fa41bdc8d1501d202ad15287582246b4 # v2.0.3
|
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||||
id: generate-token
|
id: generate-token
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.CI_BOT_APP_ID }}
|
app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||||
|
|||||||
@ -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="../logs"
|
ENV LOG_FILE="/github/home/logs"
|
||||||
4
Makefile
4
Makefile
@ -14,6 +14,10 @@ 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
67
dist/index.js
generated
vendored
@ -1882,6 +1882,7 @@ 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`;
|
||||||
@ -33498,6 +33499,14 @@ module.exports = require("net");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4573:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:buffer");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7598:
|
/***/ 7598:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@ -33514,6 +33523,14 @@ module.exports = require("node:events");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1708:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:process");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7075:
|
/***/ 7075:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@ -35339,8 +35356,8 @@ function composeCollection(CN, ctx, token, props, onError) {
|
|||||||
tag = kt;
|
tag = kt;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (kt?.collection) {
|
if (kt) {
|
||||||
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
|
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
|
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
|
||||||
@ -35633,6 +35650,7 @@ 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);
|
||||||
@ -35766,7 +35784,7 @@ class Composer {
|
|||||||
}
|
}
|
||||||
/** Advance the composer by one CST token. */
|
/** Advance the composer by one CST token. */
|
||||||
*next(token) {
|
*next(token) {
|
||||||
if (process.env.LOG_STREAM)
|
if (node_process.env.LOG_STREAM)
|
||||||
console.dir(token, { depth: null });
|
console.dir(token, { depth: null });
|
||||||
switch (token.type) {
|
switch (token.type) {
|
||||||
case 'directive':
|
case 'directive':
|
||||||
@ -36808,7 +36826,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
|
else if (!found || indicator !== 'seq-item-ind')
|
||||||
spaceBefore = true;
|
spaceBefore = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -37941,19 +37959,21 @@ exports.visitAsync = visit.visitAsync;
|
|||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7249:
|
/***/ 7249:
|
||||||
/***/ ((__unused_webpack_module, exports) => {
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"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 process !== 'undefined' && process.emitWarning)
|
if (typeof node_process.emitWarning === 'function')
|
||||||
process.emitWarning(warning);
|
node_process.emitWarning(warning);
|
||||||
else
|
else
|
||||||
console.warn(warning);
|
console.warn(warning);
|
||||||
}
|
}
|
||||||
@ -40129,6 +40149,7 @@ 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);
|
||||||
|
|
||||||
@ -40295,7 +40316,7 @@ class Parser {
|
|||||||
*/
|
*/
|
||||||
*next(source) {
|
*next(source) {
|
||||||
this.source = source;
|
this.source = source;
|
||||||
if (process.env.LOG_TOKENS)
|
if (node_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;
|
||||||
@ -40801,7 +40822,20 @@ class Parser {
|
|||||||
default: {
|
default: {
|
||||||
const bv = this.startBlockValue(map);
|
const bv = this.startBlockValue(map);
|
||||||
if (bv) {
|
if (bv) {
|
||||||
if (atMapIndent && bv.type !== 'block-seq') {
|
if (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);
|
||||||
@ -41706,6 +41740,7 @@ 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);
|
||||||
|
|
||||||
@ -41722,8 +41757,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 Buffer === 'function') {
|
if (typeof node_buffer.Buffer === 'function') {
|
||||||
return Buffer.from(src, 'base64');
|
return node_buffer.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
|
||||||
@ -41739,13 +41774,15 @@ 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 Buffer === 'function') {
|
if (typeof node_buffer.Buffer === 'function') {
|
||||||
str =
|
str =
|
||||||
buf instanceof Buffer
|
buf instanceof node_buffer.Buffer
|
||||||
? buf.toString('base64')
|
? buf.toString('base64')
|
||||||
: Buffer.from(buf.buffer).toString('base64');
|
: node_buffer.Buffer.from(buf.buffer).toString('base64');
|
||||||
}
|
}
|
||||||
else if (typeof btoa === 'function') {
|
else if (typeof btoa === 'function') {
|
||||||
let s = '';
|
let s = '';
|
||||||
@ -42462,7 +42499,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
66
dist/post.js
generated
vendored
@ -26516,6 +26516,14 @@ module.exports = require("net");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4573:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:buffer");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7598:
|
/***/ 7598:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@ -26532,6 +26540,14 @@ module.exports = require("node:events");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1708:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:process");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7075:
|
/***/ 7075:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@ -28357,8 +28373,8 @@ function composeCollection(CN, ctx, token, props, onError) {
|
|||||||
tag = kt;
|
tag = kt;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (kt?.collection) {
|
if (kt) {
|
||||||
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
|
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
|
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
|
||||||
@ -28651,6 +28667,7 @@ 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);
|
||||||
@ -28784,7 +28801,7 @@ class Composer {
|
|||||||
}
|
}
|
||||||
/** Advance the composer by one CST token. */
|
/** Advance the composer by one CST token. */
|
||||||
*next(token) {
|
*next(token) {
|
||||||
if (process.env.LOG_STREAM)
|
if (node_process.env.LOG_STREAM)
|
||||||
console.dir(token, { depth: null });
|
console.dir(token, { depth: null });
|
||||||
switch (token.type) {
|
switch (token.type) {
|
||||||
case 'directive':
|
case 'directive':
|
||||||
@ -29826,7 +29843,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
|
else if (!found || indicator !== 'seq-item-ind')
|
||||||
spaceBefore = true;
|
spaceBefore = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -30959,19 +30976,21 @@ exports.visitAsync = visit.visitAsync;
|
|||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7249:
|
/***/ 7249:
|
||||||
/***/ ((__unused_webpack_module, exports) => {
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"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 process !== 'undefined' && process.emitWarning)
|
if (typeof node_process.emitWarning === 'function')
|
||||||
process.emitWarning(warning);
|
node_process.emitWarning(warning);
|
||||||
else
|
else
|
||||||
console.warn(warning);
|
console.warn(warning);
|
||||||
}
|
}
|
||||||
@ -33147,6 +33166,7 @@ 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);
|
||||||
|
|
||||||
@ -33313,7 +33333,7 @@ class Parser {
|
|||||||
*/
|
*/
|
||||||
*next(source) {
|
*next(source) {
|
||||||
this.source = source;
|
this.source = source;
|
||||||
if (process.env.LOG_TOKENS)
|
if (node_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;
|
||||||
@ -33819,7 +33839,20 @@ class Parser {
|
|||||||
default: {
|
default: {
|
||||||
const bv = this.startBlockValue(map);
|
const bv = this.startBlockValue(map);
|
||||||
if (bv) {
|
if (bv) {
|
||||||
if (atMapIndent && bv.type !== 'block-seq') {
|
if (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);
|
||||||
@ -34724,6 +34757,7 @@ 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);
|
||||||
|
|
||||||
@ -34740,8 +34774,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 Buffer === 'function') {
|
if (typeof node_buffer.Buffer === 'function') {
|
||||||
return Buffer.from(src, 'base64');
|
return node_buffer.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
|
||||||
@ -34757,13 +34791,15 @@ 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 Buffer === 'function') {
|
if (typeof node_buffer.Buffer === 'function') {
|
||||||
str =
|
str =
|
||||||
buf instanceof Buffer
|
buf instanceof node_buffer.Buffer
|
||||||
? buf.toString('base64')
|
? buf.toString('base64')
|
||||||
: Buffer.from(buf.buffer).toString('base64');
|
: node_buffer.Buffer.from(buf.buffer).toString('base64');
|
||||||
}
|
}
|
||||||
else if (typeof btoa === 'function') {
|
else if (typeof btoa === 'function') {
|
||||||
let s = '';
|
let s = '';
|
||||||
@ -35480,7 +35516,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;
|
||||||
|
|||||||
3
eslint.config.mjs
Normal file
3
eslint.config.mjs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
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
26
package-lock.json
generated
@ -10,13 +10,13 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.1",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/action": "^7.0.1",
|
"@octokit/action": "^7.0.2",
|
||||||
"docker-compose": "^1.2.0"
|
"docker-compose": "^1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ts-dev-tools/core": "^1.6.2",
|
"@ts-dev-tools/core": "^1.9.1",
|
||||||
"@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,14 +53,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/github": {
|
"node_modules/@actions/github": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.1.tgz",
|
||||||
"integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
|
"integrity": "sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==",
|
||||||
|
"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.0.0",
|
"@octokit/plugin-paginate-rest": "^9.2.2",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^10.0.0"
|
"@octokit/plugin-rest-endpoint-methods": "^10.4.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": {
|
||||||
@ -2153,9 +2157,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ts-dev-tools/core": {
|
"node_modules/@ts-dev-tools/core": {
|
||||||
"version": "1.9.0",
|
"version": "1.9.1",
|
||||||
"resolved": "https://registry.npmjs.org/@ts-dev-tools/core/-/core-1.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/@ts-dev-tools/core/-/core-1.9.1.tgz",
|
||||||
"integrity": "sha512-pa2eOyjAOfdFIWHyLpg8BThgIqPuz9tLBzqYl9jhJ4NR1SiV35Le7AxVlyI/x4MENLR1VZ2O8rqBIBLI3klzqg==",
|
"integrity": "sha512-2BzflHQULywPpS2J3qE5ymtPbPHQY+45RYX/MxY6s8oFECSzlsqM9ko5k2Ub8EG7fdTtNiueaijDV7Vqv1RO1A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
41
package.json
41
package.json
@ -73,50 +73,17 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.1",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/action": "^7.0.1",
|
"@octokit/action": "^7.0.2",
|
||||||
"docker-compose": "^1.2.0"
|
"docker-compose": "^1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ts-dev-tools/core": "^1.6.2",
|
"@ts-dev-tools/core": "^1.9.1",
|
||||||
"@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,
|
||||||
@ -139,6 +106,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tsDevTools": {
|
"tsDevTools": {
|
||||||
"version": "20220617100200-prettier-cache"
|
"version": "20240617094000-config-nx-scopes"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user