wdwh 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.ts +1 -4
- package/package.json +1 -1
- package/src/main.ts +1 -4
package/dist/main.ts
CHANGED
|
@@ -174,10 +174,7 @@ let body = getHtmlElement(text, `body`).replaceAll(`className`, `class`)
|
|
|
174
174
|
const bodyStart = body.indexOf(`>`) + 1
|
|
175
175
|
const bodyEnd = body.lastIndexOf(`<`)
|
|
176
176
|
body = body.replace(body.slice(bodyStart, bodyEnd), ``)
|
|
177
|
-
return {
|
|
178
|
-
headContent,
|
|
179
|
-
body,
|
|
180
|
-
}
|
|
177
|
+
return { headContent, body }
|
|
181
178
|
}
|
|
182
179
|
function getHtmlElement(text: string, name: string) {
|
|
183
180
|
for (let sliceStart, sliceEnd = text.indexOf(`export default`); ; sliceEnd++) {
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -232,10 +232,7 @@ async function getPropsFromIndexTSX() {
|
|
|
232
232
|
const bodyEnd = body.lastIndexOf(`<`)
|
|
233
233
|
body = body.replace(body.slice(bodyStart, bodyEnd), ``)
|
|
234
234
|
|
|
235
|
-
return {
|
|
236
|
-
headContent,
|
|
237
|
-
body,
|
|
238
|
-
}
|
|
235
|
+
return { headContent, body }
|
|
239
236
|
}
|
|
240
237
|
|
|
241
238
|
function getHtmlElement(text: string, name: string) {
|