@divriots/jampack 0.4.0 → 0.4.1

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
@@ -60,6 +60,9 @@ Check the [Documentation side](https://jampack.divriots.com).
60
60
  - [divRIOTS.com](https://divRIOTS.com)
61
61
  - [Backlight.dev](https://backlight.dev)
62
62
  - [story.to.design](https://story.to.design)
63
+ - [html.to.design](https://html.to.design/docs)
64
+ - [WebComponents.dev](https://WebComponents.dev)
65
+ - [LWC.studio](https://lwc.studio)
63
66
  - [Components.studio](https://components.studio)
64
67
  > Add yours here
65
68
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" resolution-mode="require"/>
1
2
  import sharp from 'sharp';
2
3
  import type { Image } from './types.js';
3
4
  export declare const compressImage: (data: Buffer, options: {
package/dist/optimize.js CHANGED
@@ -13,7 +13,7 @@ import { isLocal, Resource, translateSrc } from "./utils/resource.js";
13
13
  async function analyse(file) {
14
14
  console.log("▶ " + file);
15
15
  const html = (await fs.readFile(path.join($state.dir, file))).toString();
16
- const $ = cheerio.load(html, { withStartIndices: true });
16
+ const $ = cheerio.load(html, { withStartIndices: true, decodeEntities: false });
17
17
  const theFold = getTheFold($);
18
18
  const imgs = $("img");
19
19
  const imgsArray = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divriots/jampack",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Packer for static websites",
5
5
  "author": "Georges Gomes @georges-gomes",
6
6
  "bin": {