Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(security): patch braces dependency vulnerabilities #684

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -4521,11 +4521,11 @@ brace-expansion@^2.0.1:
balanced-match "^1.0.0"

braces@^3.0.1, braces@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
version "3.0.3"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
dependencies:
fill-range "^7.0.1"
fill-range "^7.1.1"

browser-process-hrtime@^1.0.0:
version "1.0.0"
@@ -6288,10 +6288,10 @@ filelist@^1.0.4:
dependencies:
minimatch "^5.0.1"

fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
fill-range@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
dependencies:
to-regex-range "^5.0.1"


Unchanged files with check annotations Beta

import defaultPlan from './context/plan';
export default abstract class AbstractCommand extends Command {
protected readonly context: any;

Check warning on line 11 in src/abstract-command.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
protected readonly logger: Logger;
import contextPlan from '../../context/logger-plan';
const hook: Hook<'init'> = async function (options) {

Check warning on line 7 in src/hooks/init/check-compatible-node-version.ts

GitHub Actions / Lint

Unexpected unnamed async function

Check warning on line 7 in src/hooks/init/check-compatible-node-version.ts

GitHub Actions / Lint

'options' is defined but never used
const context: any = Context.execute(contextPlan);

Check warning on line 8 in src/hooks/init/check-compatible-node-version.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
const { assertPresent, logger, chalk } = context;
assertPresent({ logger, chalk });
this.Handlebars = Handlebars;
}
protected abstract createFiles(dumperConfig: Config, schema?: any);

Check warning on line 41 in src/services/dumpers/abstract-dumper.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
protected writeFile(relativeFilePath, content) {
const fileName = `${this.projectPath}/${relativeFilePath}`;
return this.writeFile(target, this.fs.readFileSync(templatePath, 'utf-8'));
}
async dump(dumperConfig: Config, schema?: any) {

Check warning on line 72 in src/services/dumpers/abstract-dumper.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
const cwd = this.constants.CURRENT_WORKING_DIRECTORY;
this.projectPath = dumperConfig.appConfig.appName
? `${cwd}/${dumperConfig.appConfig.appName}`
);
}
private removeNonCompliantNestedFields(collectionName: string, fieldsDefinition: any) {

Check warning on line 254 in src/services/dumpers/agent-nodejs.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
if (typeof fieldsDefinition !== 'string') {
if (Array.isArray(fieldsDefinition)) {
fieldsDefinition.forEach(fieldDefinition => {
}, []);
}
private computeModelsConfiguration(language: Language, schema: any): Array<ModelConfiguration> {

Check warning on line 296 in src/services/dumpers/agent-nodejs.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
const collectionNamesSorted = Object.keys(schema).sort();
return collectionNamesSorted.map(collectionName => {
});
}
protected async createFiles(dumpConfig: Config, mongoSchema?: any) {

Check warning on line 352 in src/services/dumpers/agent-nodejs.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
this.writePackageJson(
dumpConfig.language,
dumpConfig.dbConfig.dbDialect,
language,
};
const injectedContext = Context.execute(defaultPlan) as any;

Check warning on line 41 in test/services/dumpers/agent-nodejs/agent-nodejs-dumper-mongoose-models.test.ts

GitHub Actions / Lint

Unexpected any. Specify a different type
const loggerWarnSpy = jest.spyOn(injectedContext.logger, 'warn');