-
Notifications
You must be signed in to change notification settings - Fork 3
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
v2 #96
base: main
Are you sure you want to change the base?
v2 #96
Conversation
6b91727
to
33b9394
Compare
You have successfully added a new CodeQL configuration |
packages/extends/extendUtils.js
Outdated
const obj = deepMergeExtend({}, elementProp) | ||
element[e] = deepMergeExtend(obj, extendProp) | ||
} else if (elementProp === undefined && isFunction(extendProp)) { | ||
element[e] = extendProp |
Check warning
Code scanning / CodeQL
Prototype-polluting function
packages/utils/object.js
Outdated
try { | ||
const evalProp = window.eval(`(${objProp})`) // use parentheses to convert string to function expression | ||
stringified[prop] = evalProp | ||
} catch (e) { if (e) stringified[prop] = objProp } |
Check warning
Code scanning / CodeQL
Prototype-polluting function
packages/utils/object.js
Outdated
stringified[prop] = evalProp | ||
} catch (e) { if (e) stringified[prop] = objProp } | ||
} else { | ||
stringified[prop] = objProp |
Check warning
Code scanning / CodeQL
Prototype-polluting function
packages/extends/extendUtils.js
Outdated
const elementProp = element[e] | ||
const extendProp = extend[e] | ||
if (elementProp === undefined) { | ||
element[e] = extendProp |
Check warning
Code scanning / CodeQL
Prototype-polluting function
packages/utils/object.js
Outdated
} else if (isObject(objProp)) { | ||
stringified[prop] = deepDestringify(objProp, stringified[prop]) // recursively call deepDestringify for nested objects | ||
} else { | ||
stringified[prop] = objProp |
Check warning
Code scanning / CodeQL
Prototype-polluting function
packages/utils/string.js
Outdated
return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => { | ||
if (parentPath) { | ||
const parentLevels = parentPath.split('../').filter(Boolean).length | ||
let parentState = state | ||
for (let i = 0; i < parentLevels; i++) { | ||
parentState = parentState.parent | ||
} | ||
const value = parentState[variable.trim()] | ||
return value ? `${value}` : '' | ||
} else { | ||
const value = state[variable.trim()] | ||
return value ? `${value}` : '' | ||
} | ||
}) |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.2 to 27.2.3. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.2.2...v27.2.3) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.45.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.44.0...v8.45.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.13 to 0.18.14. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](evanw/esbuild@v0.18.13...v0.18.14) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.22.8 to 7.22.9. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.22.9/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…gin-jest-27.2.3 Bump eslint-plugin-jest from 27.2.2 to 27.2.3
Bump eslint from 8.44.0 to 8.45.0
…18.14 Bump esbuild from 0.18.13 to 0.18.14
…-7.22.9 Bump @babel/core from 7.22.8 to 7.22.9
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.22.7 to 7.22.9. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.22.9/eslint/babel-eslint-parser) --- updated-dependencies: - dependency-name: "@babel/eslint-parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…nt-parser-7.22.9 Bump @babel/eslint-parser from 7.22.7 to 7.22.9
No description provided.