-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] dev from vuejs:dev #26
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
base: dev
Are you sure you want to change the base?
Conversation
Hard-Coded Secrets (5)vue-cli/docs/.vuepress/config.js Line 58 in 2d3116e
vue-cli/docs/zh/guide/mode-and-env.md Line 106 in 2d3116e
More info on how to fix Hard-Coded Secrets in General. Insecure Use of Regular Expressions (31)
vue-cli/packages/@vue/cli/lib/add.js Line 37 in 2d3116e
vue-cli/packages/@vue/cli/lib/options.js Line 53 in 2d3116e
vue-cli/packages/@vue/cli/lib/ui.js Line 10 in 2d3116e
Line 152 in 2d3116e
vue-cli/scripts/verifyCommitMsg.js Line 5 in 2d3116e
vue-cli/packages/@vue/cli/lib/Creator.js Line 342 in 2d3116e
More info on how to fix Insecure Use of Regular Expressions in Javascript. Insecure File Management (188)
| projectRename: (root, args, context) => projects.rename(args, context), |
|
taskOpen: (root, { id }, context) => tasks.open(id, context), |
viewOpen: (root, { id }, context) => views.open(id, context) |
const { types } = require(file) |
const module = require(file) |
vue-cli/packages/@vue/cli-ui/src/i18n.js
Line 64 in 2d3116e
[i18n.locale]: require(`date-fns/locale/${dateFnsLocale}/index.js`) |
fs.writeFileSync(path.resolve(templateDir, 'foo.js'), 'foo(<%- options.n %>)') |
fs.writeFileSync(path.resolve(templateDir, 'bar/bar.js'), 'bar(<%- m %>)') |
fs.writeFileSync(path.resolve(templateDir, 'bar/_bar.js'), '.bar(<%- m %>)') |
fs.writeFileSync(path.resolve(templateDir, 'entry.js'), ` |
fs.writeFileSync(path.resolve(templateDir, 'empty-entry.js'), `;`) |
fs.writeFileSync(path.resolve(templateDir, 'main.ts'), `const a: string = 'hello';`) |
fs.writeFileSync(path.resolve(templateDir, 'hello.vue'), ` |
fs.writeFileSync(path.resolve(templateDir, 'replace.js'), ` |
fs.writeFileSync(path.resolve(templateDir, 'multi-replace-source.js'), ` |
fs.writeFileSync(path.resolve(templateDir, 'multi-replace.js'), ` |
fs.writeFileSync(path.resolve(templateDir, '_vscode/config.json'), `{}`) |
fs.writeFileSync(path.resolve(templateDir, '_gitignore'), A3E2 'foo') |
fs.writeFileSync(rcPath, JSON.stringify({ |
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8') |
const pkg = require(path.resolve(cwd, name, 'package.json')) |
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8') |
const pkg = require(path.resolve(cwd, name, 'package.json')) |
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8') |
const pkg = require(path.resolve(cwd, name, 'package.json')) |
const readme = await fs.readFile(path.resolve(cwd, name, 'README.md'), 'utf-8') |
const pkg = require(path.resolve(cwd, name, 'package.json')) |
vue-cli/packages/@vue/cli/bin/vue.js
Line 30 in 2d3116e
fs.existsSync(path.resolve(process.cwd(), '../@vue')) || |
vue-cli/packages/@vue/cli/bin/vue.js
Line 31 in 2d3116e
fs.existsSync(path.resolve(process.cwd(), '../../@vue')) |
vue-cli/packages/@vue/cli/lib/GeneratorAPI.js
Line 445 in 2d3116e
return (this._entryFile = fs.existsSync(this.resolve('src/main.ts')) ? 'src/main.ts' : 'src/main.js') |
vue-cli/packages/@vue/cli/lib/GeneratorAPI.js
Line 482 in 2d3116e
return fs.readFileSync(name) // return buffer |
vue-cli/packages/@vue/cli/lib/GeneratorAPI.js
Line 484 in 2d3116e
const template = fs.readFileSync(name, 'utf-8') |
vue-cli/packages/@vue/cli/lib/GeneratorAPI.js
Line 519 in 2d3116e
finalTemplate = fs.readFileSync(extendPath, 'utf-8') |
vue-cli/packages/@vue/cli/lib/Upgrader.js
Line 102 in 2d3116e
fs.writeFileSync(path.resolve(this.context, 'package.json'), JSON.stringify(this.pkg, null, 2)) |
vue-cli/packages/@vue/cli/lib/config.js
Line 35 in 2d3116e
await fs.writeFile(file, JSON.stringify(config, null, 2), 'utf-8') |
vue-cli/packages/@vue/cli/lib/config.js
Line 68 in 2d3116e
await fs.writeFile(file, JSON.stringify(config, null, 2), 'utf-8') |
vue-cli/packages/@vue/cli/lib/create.js
Line 32 in 2d3116e
if (fs.existsSync(targetDir) && !options.merge) { |
vue-cli/packages/@vue/cli/lib/inspect.js
Line 21 in 2d3116e
if (fs.existsSync(binPath)) { |
vue-cli/packages/@vue/cli/lib/options.js
Line 94 in 2d3116e
if (fs.existsSync(rcPath)) { |
vue-cli/packages/@vue/cli/lib/options.js
Line 96 in 2d3116e
cachedOptions = JSON.parse(fs.readFileSync(rcPath, 'utf-8')) |
vue-cli/packages/@vue/cli/lib/options.js
Line 127 in 2d3116e
fs.writeFileSync(rcPath, JSON.stringify(options, null, 2)) |
if (fs.existsSync(loc)) { |
npmConfig = Object.assign({}, ini.parse(fs.readFileSync(loc, 'utf-8')), npmConfig) |
await fs.symlink(src, dest, 'dir') |
].map(file => require(`../promptModules/${file}`)) |
packageJson = fs.readFileSync(packagePath, 'utf-8') |
await fs.symlink(src, dest) |
await fs.chmod(dest, '755') |
return require(moduleName) |
const stats = fs.statSync(path) |
if (!fs.existsSync(presetPath)) { |
const hasGenerator = fs.existsSync(path.join(dir, 'generator.js')) || fs.existsSync(path.join(dir, 'generator/index.js')) |
if (!fs.existsSync(rcDir)) { |
if (fs.existsSync(rcFile)) { |
if (fs.existsSync(properRcFile)) { |
? fs.readFileSync(name) |
: fs.readFileSync(name, 'utf-8') |
return fs.unlink(path.join(directory, filename)) |
fs.writeFileSync(filePath, files[name]) |
Line 8 in 2d3116e
const files = fs.readdirSync(packagesDir) |
Line 19 in 2d3116e
if (!fs.existsSync(pkgPath)) { |
Line 43 in 2d3116e
fs.writeFileSync(pkgPath, JSON.stringify(json, null, 2)) |
Line 47 in 2d3116e
if (!fs.existsSync(readmePath)) { |
Line 48 in 2d3116e
fs.writeFileSync(readmePath, `# @vue/${pkg}\n\n> ${desc}`) |
Line 52 in 2d3116e
if (!fs.existsSync(npmIgnorePath)) { |
Line 53 in 2d3116e
fs.writeFileSync(npmIgnorePath, `__tests__\n__mocks__`) |
vue-cli/scripts/buildEditorConfig.js
Line 96 in 2d3116e
const configList = fs.readdirSync(path.resolve(__dirname, '../packages/@vue/')) |
vue-cli/scripts/buildEditorConfig.js
Line 118 in 2d3116e
if (!fs.existsSync(templateDir)) { |
vue-cli/scripts/buildEditorConfig.js
Line 119 in 2d3116e
fs.mkdirSync(templateDir) |
vue-cli/scripts/buildEditorConfig.js
Line 121 in 2d3116e
fs.writeFileSync(`${templateDir}/_editorconfig`, content) |
Line 23 in 2d3116e
const contents = fs.readFileSync(file, { encoding: 'utf8' }) |
Line 36 in 2d3116e
const files = fs.readdirSync(folder) |
Line 41 in 2d3116e
} else if (fs.statSync(fullPath).isDirectory()) { |
vue-cli/scripts/genChangelog.js
Line 23 in 2d3116e
newRelease + '\n\n\n' + fs.readFileSync(changelogPath, { encoding: 'utf8' }) |
vue-cli/scripts/genChangelog.js
Line 24 in 2d3116e
fs.writeFileSync(changelogPath, newChangelog) |
Line 9 in 2d3116e
const entryContent = fs.readFileSync(entryPath) |
Line 11 in 2d3116e
fs.writeFile(docPath, entryContent, () => { }) |
Line 15 in 2d3116e
fs.readdir(pluginsDirPath, (_, files) => { |
vue-cli/scripts/patchChromedriver.js
Line 14 in 2d3116e
fs.writeFileSync(path.resolve(__dirname, '../package.json'), JSON.stringify(pkg, null, 2)) |
Line 90 in 2d3116e
fs.writeFileSync(file, writeCache[file]) |
Line 104 in 2d3116e
const pkg = require(path.resolve(__dirname, '../', filePath)) |
Line 173 in 2d3116e
return require(`../packages/${pkg}/package.json`).version |
Line 181 in 2d3116e
return version || require(`../packages/${pkg}/package.json`).version |
Line 188 in 2d3116e
const updated = fs.readFileSync(filePath, 'utf-8') |
vue-cli/scripts/verifyCommitMsg.js
Line 3 in 2d3116e
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() |
`The ${chalk.red('public/manifest.json')} file will be ignored in favor of ${chalk.cyan('pwa.manifestOptions')}` |
query = path.resolve(cwd.get(), input.file) |
? path.posix.join(options.assetsDir, filePath) |
const targetDir = path.join(cwd.get(), input.folder) |
const gitConfigPath = path.join(project.path, '.git', 'config') |
]) |
: path.join(api.getCwd(), 'wdio.sauce.conf.' + (isTS ? 'ts' : 'js')) |
? path.join(api.getCwd(), 'wdio.local.conf.' + (isTS ? 'ts' : 'js')) |
More info on how to fix Insecure File Management in Javascript.
Information Disclosure (17)
vue-cli/packages/@vue/cli-plugin-e2e-cypress/generator/template/tests/e2e/_eslintrc.js
Line 1 in 2d3116e
<%_ if (hasESLint) { _%> |
vue-cli/packages/@vue/cli-plugin-e2e-cypress/generator/template/tests/e2e/specs/test.js
Line 6 in 2d3116e
cy.contains('h1', 'Welcome to Your Vue.js <%- hasTS ? '+ TypeScript ' : '' %>App') |
vue-cli/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js
Line 1 in 2d3116e
<%_ if (hasESLint) { _%> |
vue-cli/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/specs/test.js
Line 10 in 2d3116e
.assert.containsText('h1', 'Welcome to Your Vue.js <%- hasTS ? '+ TypeScript ' : '' %>App') |
vue-cli/packages/@vue/cli-plugin-e2e-webdriverio/generator/template/tests/e2e/_eslintrc.js
Line 1 in 2d3116e
<%_ if (hasESLint) { _%> |
Line 15 in 2d3116e
<%- hasTS ? 'export default new App()' : 'module.exports = new App()' %> |
vue-cli/packages/@vue/cli-plugin-e2e-webdriverio/generator/template/tests/e2e/specs/app.spec.js
Line 1 in 2d3116e
<%- hasTS ? 'import App from \'../pageobjects/app.page\'' : 'const App = require(\'../pageobjects/app.page\')' %> |
vue-cli/packages/@vue/cli-plugin-e2e-webdriverio/generator/template/wdio.local.conf.js
Line 1 in 2d3116e
<%- hasTS ? 'const { config } = require(\'./wdio.shared.conf.ts\')' : 'const { config } = require(\'./wdio.shared.conf\')' %> |
vue-cli/packages/@vue/cli-plugin-e2e-webdriverio/generator/template/wdio.sauce.conf.js
Line 1 in 2d3116e
<%- hasTS ? 'import { config } from \'./wdio.shared.conf.ts\'' : 'const { config } = require(\'./wdio.shared.conf\')' %> |
vue-cli/packages/@vue/cli-plugin-e2e-webdriverio/generator/template/wdio.shared.conf.js
Line 14 in 2d3116e
<%_ if (hasTS) { _%> |
vue-cli/packages/@vue/cli-plugin-router/generator/template-vue3/src/router/index.js
Line 1 in 2d3116e
import { createRouter<% |
<%_ if (hasTypeScript) { _%> |
vue-cli/packages/@vue/cli-plugin-unit-jest/generator/template/tests/unit/example.spec.js
Line 1 in 2d3116e
<%_ if (!hasTS) { _%> |
vue-cli/packages/@vue/cli-plugin-unit-mocha/generator/template/tests/unit/example.spec.js
Line 1 in 2d3116e
<%_ if (!hasTS) { _%> |
<%_ if (rootOptions.vueVersion === '3') { _%> |
vue-cli/packages/@vue/cli/__tests__/mock-preset-with-async-generator/generator/template/test.js
Line 1 in 2d3116e
<%= ok %> |
vue-cli/packages/@vue/cli/__tests__/mock-preset-with-template/generator/template/test.js
Line 1 in 2d3116e
<%= ok %> |
More info on how to fix Information Disclosure in Javascript.
Insecure Use of Dangerous Function (18)
const { execSync } = require('child_process') |
const execSync = require('child_process').execSync |
const result = /\sa\/(.*)\sb\/(.*)/.exec(s) |
const t = (/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/).exec(s) |
const cp = require('child_process') |
const result = /\?theme=(\w+)/.exec(window.location.href) |
vue-cli/scripts/buildEditorConfig.js
Line 98 in 2d3116e
const matched = /eslint-config-(\w+)/.exec(name) |
vue-cli/scripts/patchChromedriver.js
Line 8 in 2d3116e
const versionString = require('child_process').execSync('wmic datafile where name="C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe" get Version /value').toString() |
Line 11 in 2d3116e
const { execSync } = require('child_process') |
Line 41 in 2d3116e
const version = execSync(`npm view ${pkg} version`).toString().trim() |
execSync('ps cax | grep "Google Chrome"') |
stdio: 'ignore' |
execSync('yarn --version', { stdio: 'ignore' }) |
execSync('git --version', { stdio: 'ignore' }) |
execSync('git status', { stdio: 'ignore', cwd }) |
stdio: ['pipe', 'pipe', 'ignore'] |
timeout: 10000 |
const publicHost = publicUrl ? /^[a-zA-Z]+:\/\/([^/?#]+)/.exec(publicUrl)[1] : undefined |
More info on how to fix Insecure Use of Dangerous Function in Javascript.
Insecure Processing of Data (20)
fs.writeFileSync(path.resolve(templateDir, 'foo.js'), 'foo(<%- options.n %>)') |
fs.writeFileSync(path.resolve(templateDir, 'bar/bar.js'), 'bar(<%- m %>)') |
fs.writeFileSync(path.resolve(templateDir, 'bar/_bar.js'), '.bar(<%- m %>)') |
files['foo2.js'] = render('foo(<%- n %>)', options) |
files['bar/bar2.js'] = render('bar(<%- n %>)', options) |
<title><%- htmlWebpackPlugin.options.libName %> demo</title> |
<script src="./<%- htmlWebpackPlugin.options.libName %>.js"></script> |
<title><%- htmlWebpackPlugin.options.libName %> demo</title> |
<script src="./<%- htmlWebpackPlugin.options.assetsFileName %>.umd.js"></script> |
<link rel="stylesheet" href="./<%- htmlWebpackPlugin.options.assetsFileName %>.css"> |
console.log(<%- htmlWebpackPlugin.options.libName %>) |
<title><%- htmlWebpackPlugin.options.libName %> demo</title> |
<script src="//unpkg.com/vue@<%- htmlWebpackPlugin.options.vueMajor %>"></script> |
<script src="./<%- htmlWebpackPlugin.options.assetsFileName %>.umd.js"></script> |
<link rel="stylesheet" href="./<%- htmlWebpackPlugin.options.assetsFileName %>.css"> |
demo: <%- htmlWebpackPlugin.options.libName %> |
demo: <%- htmlWebpackPlugin.options.libName %> |
read: ({ source }) => require('js-yaml').load(source), |
fileData = yaml.load(rawContent) |
res.send(`Addon ${id} not found in loaded addons. Try opening a vue-cli project first?`) |
More info on how to fix Insecure Processing of Data in Javascript.
Insecure Use of SQL Queries (6)
plugin: (root, { id }, context) => plugins.findOne({ id, file: cwd.get() }, context) |
plugin: (task, args, context) => plugins.findOne({ id: task.pluginId, file: task.path }, context), |
plugin: (configuration, args, context) => plugins.findOne({ id: configuration.pluginId, file: cwd.get() }, context) |
const plugin = plugins.findOne({ id: definition.pluginId, file: cwd.get() }, context) |
const plugin = plugins.findOne({ id: view.pluginId, file: cwd.get() }, context) |
const projectId = await this.$getProjectId() |
More info on how to fix Insecure Use of SQL Queries in Javascript.
👉 Go to the dashboard for detailed results.
📥 Happy? Share your feedback with us.
…support in `vue.config.js` (#6355)
…pendencies in `node_modules` (#6354)
Also reverts #6358
Respect the existing 'devtool' when running dev server Fixes #6398
* docs: (ru) config/readme.md update * docs: (ru) eslint.md update * docs: (ru) cli-service.md update * docs: (ru) css.md update * docs: (ru) mode-and-env.md update * docs: (ru) deployment.md update Co-authored-by: Alex Sokolov <4497128+Alex-Sokolov@users.noreply.github.com>
It's messing with the html-webpack-plugin, telling it the wrong hash of the legacy bundle, therefore making the modern mode fallback unusable. (TODO: add a test later)
Fixes the issue caused by babel/babel#12989
…`--no-unsafe-inline` flag (#6422)
Default Cypress version is now v7
…and cli-plugin-e2e-nightwatch (#7158) Co-authored-by: blzsaa <blzsaa@users.noreply.github.com>
…ring upgrade (#7167) Co-authored-by: blzsaa <blzsaa@users.noreply.github.com>
Closes #7024 Fixes #7118 I choose to not merge the PR because I don't want add additional ways to configure https for dev server (`--http2` command line argument, `process.env.HTTPS`, etc.) In the current implementation, `spdy` can only be configured by setting `{ devServer: server: { type: 'spdy' } }`. This is a deliberate choice, because SPDY support in Node.js 15+ is broken anyway. I don't want bother refactoring the old code to accommodate this broken feature.
It is only served as a fallback version number when local Chrome version detection failed. Updating the version to the latest may reduce user frustrations when such rare scenarios are encountered. Closes #7203
Fixes #7221 `subscriptions-transport-ws` is also deprecated, we need to move to `graphql-ws` one day. But better deprecatedthan broken.
The dev dependency `@graphql-eslint/eslint-plugin` is causing CI failures in Node.js 12
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
vuejs/eslint-config-prettier#11 I would recommend using the ESLint CLI directly over `@vue/cli-plugin-eslint` at this point. But for users who are stuck with old versions and still read this migration guide, they deserve a working link.
…rect package from npm Thanks to @alxndrsn for finding this issue and the insightful blog post. https://www.alxndrsn.com/2024-08-01-npx-binary-confusion/ Also thanks to @lirantal for his newsletter that brought this issue to my attention. https://www.nodejs-security.com/newsletter/npm-supply-chain-security-prisma-orm-security-fun-nodejs-security-challenges
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )