wdwh 1.6.1 → 1.6.3

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/README.md CHANGED
@@ -20,12 +20,10 @@ bun i wdwh
20
20
 
21
21
  ```json
22
22
  {
23
- "private": true,
24
23
  "scripts": {
25
24
  "dev": "wdwh dev",
26
25
  "build": "wdwh build"
27
26
  }
28
- // ...
29
27
  }
30
28
  ```
31
29
 
@@ -33,7 +31,7 @@ bun i wdwh
33
31
 
34
32
  create file structure like example
35
33
 
36
- https://github.com/kubashh/wdwh/tree/main/example
34
+ https://github.com/kubashh/create-wdwh-app/tree/main/template
37
35
 
38
36
  - `src/app/index.tsx` (contains only `html` `head` `body` tags and `metadata`)
39
37
  - `src/app/App.tsx` (app entry point)
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wdwh",
3
3
  "author": "kubashh",
4
- "version": "1.6.1",
4
+ "version": "1.6.3",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/kubashh/wdwh.git",
7
7
  "description": "The Bun framework. Easyer web dev without html",
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) {