muhammara 3.6.0 → 3.8.0

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +1 -1
  3. package/lib/recipe/htmlToTextObjects.js +6 -4
  4. package/muhammara.d.ts +1086 -0
  5. package/node_modules/minipass/LICENSE +1 -1
  6. package/node_modules/minipass/README.md +293 -252
  7. package/node_modules/minipass/index.d.ts +11 -8
  8. package/node_modules/minipass/index.js +271 -231
  9. package/node_modules/minipass/index.mjs +697 -0
  10. package/node_modules/minipass/package.json +32 -12
  11. package/node_modules/node-fetch/browser.js +1 -1
  12. package/node_modules/node-fetch/lib/index.es.js +3 -1
  13. package/node_modules/node-fetch/lib/index.js +3 -1
  14. package/node_modules/node-fetch/lib/index.mjs +3 -1
  15. package/node_modules/node-fetch/package.json +5 -5
  16. package/node_modules/readable-stream/README.md +1 -1
  17. package/node_modules/readable-stream/lib/_stream_duplex.js +20 -33
  18. package/node_modules/readable-stream/lib/_stream_passthrough.js +3 -5
  19. package/node_modules/readable-stream/lib/_stream_readable.js +213 -311
  20. package/node_modules/readable-stream/lib/_stream_transform.js +31 -43
  21. package/node_modules/readable-stream/lib/_stream_writable.js +135 -192
  22. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +91 -113
  23. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +135 -190
  24. package/node_modules/readable-stream/lib/internal/streams/destroy.js +24 -34
  25. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +12 -30
  26. package/node_modules/readable-stream/lib/internal/streams/from.js +15 -27
  27. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +19 -30
  28. package/node_modules/readable-stream/lib/internal/streams/state.js +6 -11
  29. package/node_modules/readable-stream/package.json +5 -5
  30. package/node_modules/yallist/package.json +0 -1
  31. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.8.0] - 2023-03-01
11
+
12
+ ### Added
13
+
14
+ - Electron 22.3, 23.0.0, 23.1.1
15
+
16
+ ### Fixed
17
+
18
+ - Correctly includes types file in package
19
+
20
+ ## [3.7.0] - 2023-02-09
21
+
22
+ ### Added
23
+
24
+ - Electron 21.4, 22.1 and 22.2
25
+
26
+ ### Fixed
27
+
28
+ - Update xmldom to new 0.8.6 and fix security issues
29
+ - Fix arm64 on mac builds
30
+
31
+ ### Removed
32
+
33
+ - Pre-builts for macos on arm for node < 15 (eg 14, 12, 10 etc)
34
+
10
35
  ## [3.6.0] - 2023-01-24
11
36
 
12
37
  ### Added
@@ -343,7 +368,9 @@ with the following changes.
343
368
 
344
369
  - Initial release
345
370
 
346
- [unreleased]: https://github.com/julianhille/MuhammaraJS/compare/3.6.0...HEAD
371
+ [unreleased]: https://github.com/julianhille/MuhammaraJS/compare/3.8.0...HEAD
372
+ [3.8.0]: https://github.com/julianhille/MuhammaraJS/compare/3.7.0...3.8.0
373
+ [3.7.0]: https://github.com/julianhille/MuhammaraJS/compare/3.6.0...3.7.0
347
374
  [3.6.0]: https://github.com/julianhille/MuhammaraJS/compare/3.5.0...3.6.0
348
375
  [3.5.0]: https://github.com/julianhille/MuhammaraJS/compare/3.4.0...3.5.0
349
376
  [3.4.0]: https://github.com/julianhille/MuhammaraJS/compare/3.3.0...3.4.0
package/README.md CHANGED
@@ -68,7 +68,7 @@ Replace:
68
68
  With:
69
69
 
70
70
  ```
71
- const HummusRecipe = require('muhammara').Receipe;
71
+ const HummusRecipe = require('muhammara').Recipe;
72
72
  ```
73
73
 
74
74
  # Documentation
@@ -1,10 +1,12 @@
1
- const DOMParser = require("xmldom").DOMParser;
1
+ const DOMParser = require("@xmldom/xmldom").DOMParser;
2
2
 
3
3
  exports.htmlToTextObjects = function (htmlCodes) {
4
4
  htmlCodes = htmlCodes.replace(/<br\/?>/g, "<p>[@@DONOT_RENDER_THIS@@]</p>");
5
-
6
- const nodes = new DOMParser().parseFromString(htmlCodes);
7
- const textObjects = parseNode(nodes).childs;
5
+ const nodes = new DOMParser().parseFromString(
6
+ `<html>${htmlCodes}</html>`,
7
+ "text/html"
8
+ );
9
+ const textObjects = parseNode(nodes).childs[0].childs;
8
10
  return textObjects;
9
11
  };
10
12