Skip to content

Commit

Permalink
chore: Dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
John Carmichael committed Feb 18, 2025
1 parent ee48c87 commit a182735
Show file tree
Hide file tree
Showing 12 changed files with 328 additions and 241 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ url: <$ host $>

## Changelog

- 2024/18/02 5.1.2: chore: Dependency updates
- 2024/11/01 5.1.1: chore: Dependency updates
- 2024/11/01 5.1.0: feat: Long values no longer automatically end up in folded blocks, it is up to the author.
- 2024/08/08 5.0.0: breaking: No longer supports programtic use. If anyone would like this feature, please create a PR.
Expand Down
519 changes: 299 additions & 220 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boats",
"version": "5.1.1",
"version": "5.1.2",
"description": "Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.",
"keywords": [
"asyncapi",
Expand Down Expand Up @@ -61,13 +61,13 @@
},
"homepage": "https://github.com/j-d-carmichael/boats#readme",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "11.7.2",
"@apidevtools/swagger-parser": "10.1.0",
"@apidevtools/json-schema-ref-parser": "11.9.1",
"@apidevtools/swagger-parser": "10.1.1",
"@asyncapi/parser": "3.4.0",
"commander": "11.1.0",
"deepmerge": "4.3.1",
"dotenv": "16.4.5",
"fs-extra": "11.2.0",
"dotenv": "16.4.7",
"fs-extra": "11.3.0",
"inquirer": "8.2.6",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
Expand All @@ -82,18 +82,18 @@
"devDependencies": {
"@types/fs-extra": "11.0.4",
"@types/inquirer": "8.2.10",
"@types/jest": "29.5.12",
"@types/jest": "29.5.14",
"@types/js-yaml": "4.0.9",
"@types/lodash": "4.17.4",
"@types/node": "20.12.12",
"@types/node-fetch": "2.6.11",
"@types/lodash": "4.17.15",
"@types/node": "22.13.4",
"@types/node-fetch": "2.6.12",
"@types/nunjucks": "3.2.6",
"@types/picomatch": "2.3.3",
"@types/picomatch": "3.0.2",
"@types/pluralize": "0.0.33",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.14.0",
"cross-env": "7.0.3",
"eslint": "8.56.0",
"eslint": "8.57.1",
"hasha": "5.2.2",
"jest": "29.7.0",
"prettier": "2.8.8",
Expand Down
3 changes: 2 additions & 1 deletion src/GetCheckCorrectBoatsRc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class GetCheckCorrectBoatsRc {
// to nunjucks default tpl tags
json.nunjucksOptions.tags = boatsRcJson.nunjucksOptions.tags;
}
json.nunjucksOptions.tags;
return this.parse(json);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return {};
}
Expand Down Expand Up @@ -106,6 +106,7 @@ class GetCheckCorrectBoatsRc {
try {
this.boatsRc.jsonSchemaRefParserBundleOpts = JSON.parse(process.env.jsonSchemaRefParserBundleOpts);
console.log('process.env.jsonSchemaRefParserBundleOpts parsed successfully.');
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
throw new Error('Error parsing process.env.jsonSchemaRefParserBundleOpts, invalid JSON provided.');
}
Expand Down
1 change: 1 addition & 0 deletions src/SnippetsFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SnippetsFetch {
try {
await commandRun('git', ['--help'], true);
return true;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
console.error('Git command not found on this operating system, please install git to continue.');
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/Template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@ class Template {

if (filePath.endsWith('.ts') && !tsNodeLoaded) {
tsNodeLoaded = true;
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('ts-node').register();
}

if (!filePath.endsWith('.ts') && !filePath.endsWith('.js')) {
continue;
}

// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
let helper = require(filePath);
if (typeof helper !== 'function' && typeof helper.default === 'function') {
helper = helper.default;
Expand Down
1 change: 1 addition & 0 deletions src/bundlerSwaggerParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default async (input: {
if (doNotValidate) {
console.warn('Bypassing validation as dontValidateOutput flag seen');
} else {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
thisIsOpenAPI ? await validate.openapi(bundled) : await validate.asyncapi(JSON.stringify(bundled));
}

Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const dotenvFilePath = upath.join(process.cwd(), '.env');

// If a .env file exists call dotenv package to set into the env vars
if (fs.pathExistsSync(dotenvFilePath)) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('dotenv').config({ path: dotenvFilePath });
}

Expand Down
1 change: 1 addition & 0 deletions src/getOutputName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const getVersion = (jsonObj: JSON, excludeVersion: boolean): string => {
let packageJson;
try {
packageJson = JSON.parse(fs.readFileSync('./package.json').toString('utf8'));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
packageJson = {};
}
Expand Down
6 changes: 4 additions & 2 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const validatePreInit = (): Record<string, any> => {
throw new Error('Error: No package.json file found. Please add a package.json file to continue');
}

// eslint-disable-next-line @typescript-eslint/no-var-requires

// eslint-disable-next-line @typescript-eslint/no-require-imports
const localPkgJson = require(localPkgJsonPath);

localPkgJson.dependencies = {
Expand Down Expand Up @@ -127,7 +128,8 @@ const copyBoilerplate = (answers: Record<string, string>) => {
};

const updatePackageJson = (answers: Record<string, string>) => {
// eslint-disable-next-line @typescript-eslint/no-var-requires

// eslint-disable-next-line @typescript-eslint/no-require-imports
const localPkgJson = require(localPkgJsonPath);

const name = answers.name;
Expand Down
2 changes: 1 addition & 1 deletion src/nunjucksHelpers/packageJson.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import upath from 'upath';

// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
const packageJson = require(upath.join(process.cwd(), 'package.json'));

export default (attribute: string): any => {
Expand Down
3 changes: 2 additions & 1 deletion src/routePermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import UniqueOperationIds from '@/UniqueOperationIds';
import { BoatsRC, JSON } from '@/interfaces/BoatsRc';
import { MethodAliasPosition } from '@/enums/MethodAliasPosition';
import ucFirst from '@/ucFirst';
// eslint-disable-next-line @typescript-eslint/no-var-requires

// eslint-disable-next-line @typescript-eslint/no-require-imports
const packageJson = require(upath.join(process.cwd(), 'package.json'));

const defaultPrefix = {
Expand Down

0 comments on commit a182735

Please sign in to comment.