Skip to content

Commit

Permalink
Attempt to fix vulnerabilities found by dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Aug 22, 2024
1 parent f208053 commit 18ba317
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 93 deletions.
6 changes: 1 addition & 5 deletions examples/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,7 @@ const ALL_TEMPLATES_BUT_DEFAULT = ALL_TEMPLATES.filter(
(template) => template.name !== 'init'
)

const SUPPORTED_BROWSERS: string[] = [
'chrome',
'edge',
'firefox'
]
const SUPPORTED_BROWSERS: string[] = ['chrome', 'edge', 'firefox']

export {
SUPPORTED_BROWSERS,
Expand Down
8 changes: 4 additions & 4 deletions programs/cli/__spec__/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
// ╚═════╝╚══════╝╚═╝

import path from 'path'
import {exec} from 'child_process'
import {execFile} from 'child_process'
import {promisify} from 'util'

const execAsync = promisify(exec)
const execFileAsync = promisify(execFile)

export async function extensionProgram(command: string = '') {
const cliDirectory = path.resolve(__dirname, '..', 'dist', 'cli.js')
const cliCommand = `node ${cliDirectory} ${command}`
return await execAsync(cliCommand)
const args = command ? command.split(' ') : []
return await execFileAsync('node', [cliDirectory, ...args])
}

describe('CLI Commands', () => {
Expand Down
84 changes: 0 additions & 84 deletions programs/cli/spec/helpers.ts

This file was deleted.

2 changes: 2 additions & 0 deletions programs/develop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"go-git-it": "^2.0.1",
"ignore": "^5.3.1",
"loader-utils": "^3.3.1",
"micromatch": "^4.0.7",
"mini-css-extract-plugin": "^2.8.1",
"parse5": "^7.1.2",
"parse5-utils": "^2.0.0",
Expand All @@ -63,6 +64,7 @@
"style-loader": "^3.3.4",
"swc-loader": "^0.2.6",
"tiny-glob": "^0.2.9",
"vue-template-compiler": "^2.7.16",
"webextension-polyfill": "^0.12.0",
"webpack": "~5.92.0",
"webpack-dev-server": "^5.0.2",
Expand Down

0 comments on commit 18ba317

Please sign in to comment.