-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Chore/ts coverage #1195
Chore/ts coverage #1195
Conversation
if (val) { | ||
if (typeof val === 'string') { | ||
if (val.startsWith('$REF$:')) { | ||
obj[key as keyof T] = _refToValue(c, val, key); |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
const newKey = resolvePackage(key); | ||
delete obj[key]; | ||
const newKey = resolvePackage(key) as keyof T; | ||
delete obj[key as keyof T]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
obj[newKey] = resolvePackage(nVal); | ||
|
||
const nVal = lGet(propConfig.files, key); | ||
obj[newKey] = resolvePackage(nVal) as T[K]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
} else if (val.includes(BIND_PROPS)) { | ||
Object.keys(props).forEach((pk) => { | ||
val = val.replace(`${BIND_PROPS}${pk}}}`, props?.[pk]); | ||
obj[newKey] = resolvePackage(val); | ||
obj[newKey] = resolvePackage(val) as T[K]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
}); | ||
} else if (val.includes(BIND_CONFIG_PROPS)) { | ||
Object.keys(configProps).forEach((pk2) => { | ||
val = val.replace(`${BIND_CONFIG_PROPS}${pk2}}}`, configProps[pk2]); | ||
obj[newKey] = resolvePackage(val); | ||
obj[newKey] = resolvePackage(val) as T[K]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
}); | ||
} else if (val.includes(BIND_RUNTIME_PROPS)) { | ||
Object.keys(runtimeProps).forEach((pk3) => { | ||
val = val.replace(`${BIND_RUNTIME_PROPS}${pk3}}}`, runtimeProps[pk3]); | ||
obj[newKey] = resolvePackage(val); | ||
obj[newKey] = resolvePackage(val) as T[K]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
}); | ||
} else if (val.includes(BIND_ENV)) { | ||
const key = val.replace(BIND_ENV, '').replace('}}', ''); | ||
obj[newKey] = process.env[key]; | ||
obj[newKey] = process.env[key] as T[K]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
* main: fix/androidwear and androidtv gradle settings Bump @babel/traverse from 7.22.20 to 7.23.2
Description
Breaking Changes
I have tested my changes on:
ReNative project directly:
New project:
Existing Project created with previous version of renative: