Skip to content

[pull] master from vuejs:master #81

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

Open
wants to merge 130 commits into
base: master
Choose a base branch
from
Open

[pull] master from vuejs:master #81

wants to merge 130 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Jan 6, 2021

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 : )

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. **This update includes security fixes.**
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](npm/ini@v1.3.5...v1.3.8)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jan 6, 2021
dependabot-preview bot and others added 5 commits January 19, 2021 23:48
…2794)

* fix($core): wrap code group in ClientOnly

* fix($core): component CodeGroup loads correctly on client

* fix($core): component CodeGroup loads correctly on client

* fix($core): activate codetabs whenever we update the arr
@guardrails
Copy link

guardrails bot commented Feb 10, 2021

⚠️ We detected security issues in this pull request:
Mode: paranoid | Total findings: 84 | Considered vulnerability: 0

Hard-Coded Secrets (4)

'ABCDEFGHIJKLMNOPQRSTUVWXYZé': 'abcdefghijklmnopqrstuvwxyze'

apiKey: '3a539aab83105f01761a137c61004d85',


More info on how to fix Hard-Coded Secrets in General.


Insecure File Management (54)

if (!fs.existsSync(this.sourceDir)) {

if (fs.existsSync(current)) {

if (fs.existsSync(parent)) {

this._content = await fs.readFile(this._filePath, 'utf-8')

const docsModeNames = fs.readdirSync(docsBaseDir)

const readFile = async filePath => await fs.readFile(filePath, 'utf-8')

template: await fs.readFile(this.context.ssrTemplate, 'utf-8')

await fs.writeFile(filePath, html)

const styleChunkContent = await fs.readFile(styleChunkPath, 'utf-8')

const appChunkContent = await fs.readFile(appChunkPath, 'utf-8')

await fs.writeFile(appChunkPath, styleChunkContent + appChunkContent)

if (!fs.existsSync(tempPath)) {

await fs.writeFile(destPath, content)

this.pagesWatcher = chokidar.watch([

this.configWatcher = chokidar.watch(this.watchFiles, {

if (fs.existsSync(contentBase)) {

const themePaletteContent = fs.existsSync(themePalette)

const userPaletteContent = fs.existsSync(userPalette)

const parentThemePaletteContent = fs.existsSync(parentThemePalette)

const hasUserOverride = fs.existsSync(overridePath)

const themeStyleContent = fs.existsSync(themeStyle)

const userStyleContent = fs.existsSync(userStyle)

const parentThemeStyleContent = fs.existsSync(parentThemeStyle)

let content = await fs.readFile(file, 'utf-8')

if (fs.existsSync(configYmlPath)) {

} else if (fs.existsSync(configTomlPath)) {

} else if (fs.existsSync(configPath)) {

const content = fs.readFileSync(file, 'utf-8')


&& fs.existsSync(localThemePath)

&& fs.readdirSync(localThemePath).length > 0


const content = await fs.readFile(enhanceAppFile, 'utf-8')

const readdirSync = dir => (fs.existsSync(dir) && fs.readdirSync(dir)) || []


if (!fs.existsSync(file) && (!altfile || !fs.existsSync(altfile))) {

const isAFile = fs.lstatSync(src).isFile()

if (fs.existsSync(src) && isAFile) {

let content = fs.readFileSync(src, 'utf8')


await fs.readFile(path.resolve(__dirname, 'lib/skip-waiting.js'), 'utf8'),

if (!fs.existsSync(componentDir)) {

const modules = fs.readdirSync(source)

fs.writeFileSync(target, code, 'utf-8')

content = fs.readFileSync(target, 'utf-8')

const names = fs.readdirSync(path.join(dirname, fragmentsDir))

const files = fs.readdirSync(packagesDir)

if (!fs.existsSync(pkgPath)) {

fs.writeFileSync(pkgPath, JSON.stringify(json, null, 2))

if (!fs.existsSync(readmePath)) {

fs.writeFileSync(readmePath, `# @vuepress/${pkg}\n\n> ${desc}`)

if (!fs.existsSync(npmIgnorePath)) {

fs.writeFileSync(npmIgnorePath, `__tests__\n__mocks__`)

More info on how to fix Insecure File Management in Javascript and Typescript.


Insecure Use of Dangerous Function (6)

const serverBundle = require(path.resolve(this.outDir, 'manifest/server.json'))

const clientManifest = require(path.resolve(this.outDir, 'manifest/client.json'))

siteConfig = require(configPath)

function loadMockModule (name: string) {


More info on how to fix Insecure Use of Dangerous Function in Javascript and Typescript.


Insecure Use of Regular Expressions (13)

const DATE_RE = /(\d{4}-\d{1,2}(-\d{1,2})?)-(.*)/

var isJS = function (file) { return /\.js(\?[^.]+)?$/.test(file) }

var isCSS = function (file) { return /\.css(\?[^.]+)?$/.test(file) }



.test(/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/)

.test(/\.(woff2?|eot|ttf|otf)(\?.*)?$/i)

[new RegExp('^</?(' + blockNames.join('|') + ')(?=(\\s|/?>|$))', 'i'), /^$/, true],

[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source + '\\s*$'), /^$/, false]

const isSourceLink = /(\/|\.md|\.html)(#.*)?$/.test(href)

new RegExp(`^[ \t]{${minIndentLength}}(.*)`, 'gm'),

const rawPathRegexp = /^(.+?(?:\.([a-z]+))?)(?:(#[\w-]+))?(?: ?({\d+(?:[,-]\d+)*}))?$/

const searchRegex = new RegExp(

More info on how to fix Insecure Use of Regular Expressions in Javascript.


Insecure Access Control (1)

More info on how to fix Insecure Access Control in Typescript.


Insecure Processing of Data (6)




{{{ renderResourceHints() }}}


More info on how to fix Insecure Processing of Data in Javascript.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

bencodezen and others added 30 commits February 17, 2022 09:20
Fixed clean-urls link.
There is no `:blur` CSS pseudo selector, meaning this generates invalid CSS.
)

Currently we are allowed to config nested sub group<sup>[1]</sup>, but the types are missing:

[1] https://vuepress.vuejs.org/theme/default-theme-config.html#sidebar-groups
Current `target` is `es2018`, using `export =` (export assignment) will trigger `ts(1203)`<sub>1</sub> error:

    Export assignment cannot be used when targeting ECMAScript modules.
    Consider using 'export default' or another module format instead.

[1] https://github.com/microsoft/TypeScript/blob/e9868e96e87996df46a13b4323866acc639e71ce/src/compiler/diagnosticMessages.json#L634
Fixed a fixed broken anchor tag at README:

  - anchor tag for downloads counter/shield only had closing tag
  - added `<a href="#">` at beginning for non-clickable
Currently, when users select the page content to copy & paste the text, it also selects the headings # anchors. This PR removes the headings anchor-selection by defining the anchors as not selectable (user-select: none;).
* docs: fix a typo in the palette in the faq documentation

* Revert "docs: fix a typo in the palette in the faq documentation"

This reverts commit e89d6b5.

* docs: fix a typo in the palette in the faq documentation

---------

Co-authored-by: loose.li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.