Compare commits

...

2 Commits

Author SHA1 Message Date
semantic-release-bot
e2f675835e chore(release): 1.6.1 [CI SKIP] 2022-08-13 01:36:15 +00:00
AAGaming
b7dc1d6275 fix(wrapReactType): try another method 2022-08-12 21:35:27 -04:00
4 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
## [1.6.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.6.0...v1.6.1) (2022-08-13)
### Bug Fixes
* **wrapReactType:** try another method ([b7dc1d6](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/b7dc1d6275ed28b1e37b6cb512b2c5d1600a8f63))
# [1.6.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.5.1...v1.6.0) (2022-08-13)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "decky-frontend-lib",
"version": "1.6.0",
"version": "1.6.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "decky-frontend-lib",
"version": "1.6.0",
"version": "1.6.1",
"license": "GPL-2.0-or-later",
"dependencies": {
"minimist": "^1.2.6"

View File

@@ -1,6 +1,6 @@
{
"name": "decky-frontend-lib",
"version": "1.6.0",
"version": "1.6.1",
"description": "A library for building decky plugins",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -83,8 +83,7 @@ export function unpatch(obj: any, name: any): void {
}
export function wrapReactType(node: any) {
const oldComponent = node.type;
return node.type = (...args: any[]) => React.createElement(oldComponent, ...args)
return node.type = {...node.type}
}
export function getReactInstance(o: HTMLElement | Element | Node) {