htmlnano 2.1.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.1.1] - 2024-04-28
6
+
7
+ ### Fixed
8
+ - Downlevel-revealed closing comment being deleted in safe mode [#278]
9
+
10
+
5
11
  ## [2.1.0] - 2023-10-19
6
12
 
7
13
  ### Added
@@ -282,6 +288,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
282
288
  - Remove attributes that contains only white spaces.
283
289
 
284
290
 
291
+ [2.1.1]: https://github.com/posthtml/htmlnano/compare/2.1.0...2.1.1
285
292
  [2.1.0]: https://github.com/posthtml/htmlnano/compare/2.0.4...2.1.0
286
293
  [2.0.4]: https://github.com/posthtml/htmlnano/compare/2.0.3...2.0.4
287
294
  [2.0.3]: https://github.com/posthtml/htmlnano/compare/2.0.2...2.0.3
@@ -314,6 +321,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
314
321
  [0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
315
322
 
316
323
 
324
+ [#278]: https://github.com/posthtml/htmlnano/issues/278
317
325
  [#260]: https://github.com/posthtml/htmlnano/issues/260
318
326
  [#257]: https://github.com/posthtml/htmlnano/issues/257
319
327
  [#220]: https://github.com/posthtml/htmlnano/issues/220
@@ -4344,12 +4344,12 @@
4344
4344
  }
4345
4345
  },
4346
4346
  "node_modules/body-parser": {
4347
- "version": "1.20.1",
4348
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
4349
- "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
4347
+ "version": "1.20.2",
4348
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
4349
+ "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",
4350
4350
  "dependencies": {
4351
4351
  "bytes": "3.1.2",
4352
- "content-type": "~1.0.4",
4352
+ "content-type": "~1.0.5",
4353
4353
  "debug": "2.6.9",
4354
4354
  "depd": "2.0.0",
4355
4355
  "destroy": "1.2.0",
@@ -4357,7 +4357,7 @@
4357
4357
  "iconv-lite": "0.4.24",
4358
4358
  "on-finished": "2.4.1",
4359
4359
  "qs": "6.11.0",
4360
- "raw-body": "2.5.1",
4360
+ "raw-body": "2.5.2",
4361
4361
  "type-is": "~1.6.18",
4362
4362
  "unpipe": "1.0.0"
4363
4363
  },
@@ -4532,12 +4532,18 @@
4532
4532
  }
4533
4533
  },
4534
4534
  "node_modules/call-bind": {
4535
- "version": "1.0.2",
4536
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
4537
- "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
4535
+ "version": "1.0.7",
4536
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
4537
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
4538
4538
  "dependencies": {
4539
- "function-bind": "^1.1.1",
4540
- "get-intrinsic": "^1.0.2"
4539
+ "es-define-property": "^1.0.0",
4540
+ "es-errors": "^1.3.0",
4541
+ "function-bind": "^1.1.2",
4542
+ "get-intrinsic": "^1.2.4",
4543
+ "set-function-length": "^1.2.1"
4544
+ },
4545
+ "engines": {
4546
+ "node": ">= 0.4"
4541
4547
  },
4542
4548
  "funding": {
4543
4549
  "url": "https://github.com/sponsors/ljharb"
@@ -5178,9 +5184,9 @@
5178
5184
  ]
5179
5185
  },
5180
5186
  "node_modules/content-type": {
5181
- "version": "1.0.4",
5182
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
5183
- "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
5187
+ "version": "1.0.5",
5188
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
5189
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
5184
5190
  "engines": {
5185
5191
  "node": ">= 0.6"
5186
5192
  }
@@ -5194,9 +5200,9 @@
5194
5200
  }
5195
5201
  },
5196
5202
  "node_modules/cookie": {
5197
- "version": "0.5.0",
5198
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
5199
- "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
5203
+ "version": "0.6.0",
5204
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
5205
+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
5200
5206
  "engines": {
5201
5207
  "node": ">= 0.6"
5202
5208
  }
@@ -5770,6 +5776,22 @@
5770
5776
  "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",
5771
5777
  "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ=="
5772
5778
  },
5779
+ "node_modules/define-data-property": {
5780
+ "version": "1.1.4",
5781
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
5782
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
5783
+ "dependencies": {
5784
+ "es-define-property": "^1.0.0",
5785
+ "es-errors": "^1.3.0",
5786
+ "gopd": "^1.0.1"
5787
+ },
5788
+ "engines": {
5789
+ "node": ">= 0.4"
5790
+ },
5791
+ "funding": {
5792
+ "url": "https://github.com/sponsors/ljharb"
5793
+ }
5794
+ },
5773
5795
  "node_modules/define-lazy-prop": {
5774
5796
  "version": "2.0.0",
5775
5797
  "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
@@ -6107,6 +6129,25 @@
6107
6129
  "is-arrayish": "^0.2.1"
6108
6130
  }
6109
6131
  },
6132
+ "node_modules/es-define-property": {
6133
+ "version": "1.0.0",
6134
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
6135
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
6136
+ "dependencies": {
6137
+ "get-intrinsic": "^1.2.4"
6138
+ },
6139
+ "engines": {
6140
+ "node": ">= 0.4"
6141
+ }
6142
+ },
6143
+ "node_modules/es-errors": {
6144
+ "version": "1.3.0",
6145
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
6146
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
6147
+ "engines": {
6148
+ "node": ">= 0.4"
6149
+ }
6150
+ },
6110
6151
  "node_modules/es-module-lexer": {
6111
6152
  "version": "0.9.3",
6112
6153
  "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz",
@@ -6278,16 +6319,16 @@
6278
6319
  }
6279
6320
  },
6280
6321
  "node_modules/express": {
6281
- "version": "4.18.2",
6282
- "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
6283
- "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
6322
+ "version": "4.19.2",
6323
+ "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
6324
+ "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==",
6284
6325
  "dependencies": {
6285
6326
  "accepts": "~1.3.8",
6286
6327
  "array-flatten": "1.1.1",
6287
- "body-parser": "1.20.1",
6328
+ "body-parser": "1.20.2",
6288
6329
  "content-disposition": "0.5.4",
6289
6330
  "content-type": "~1.0.4",
6290
- "cookie": "0.5.0",
6331
+ "cookie": "0.6.0",
6291
6332
  "cookie-signature": "1.0.6",
6292
6333
  "debug": "2.6.9",
6293
6334
  "depd": "2.0.0",
@@ -6575,9 +6616,9 @@
6575
6616
  }
6576
6617
  },
6577
6618
  "node_modules/follow-redirects": {
6578
- "version": "1.15.2",
6579
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
6580
- "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
6619
+ "version": "1.15.6",
6620
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
6621
+ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
6581
6622
  "funding": [
6582
6623
  {
6583
6624
  "type": "individual",
@@ -6750,9 +6791,12 @@
6750
6791
  }
6751
6792
  },
6752
6793
  "node_modules/function-bind": {
6753
- "version": "1.1.1",
6754
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
6755
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
6794
+ "version": "1.1.2",
6795
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
6796
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
6797
+ "funding": {
6798
+ "url": "https://github.com/sponsors/ljharb"
6799
+ }
6756
6800
  },
6757
6801
  "node_modules/gensync": {
6758
6802
  "version": "1.0.0-beta.2",
@@ -6763,13 +6807,18 @@
6763
6807
  }
6764
6808
  },
6765
6809
  "node_modules/get-intrinsic": {
6766
- "version": "1.1.1",
6767
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
6768
- "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
6810
+ "version": "1.2.4",
6811
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
6812
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
6769
6813
  "dependencies": {
6770
- "function-bind": "^1.1.1",
6771
- "has": "^1.0.3",
6772
- "has-symbols": "^1.0.1"
6814
+ "es-errors": "^1.3.0",
6815
+ "function-bind": "^1.1.2",
6816
+ "has-proto": "^1.0.1",
6817
+ "has-symbols": "^1.0.3",
6818
+ "hasown": "^2.0.0"
6819
+ },
6820
+ "engines": {
6821
+ "node": ">= 0.4"
6773
6822
  },
6774
6823
  "funding": {
6775
6824
  "url": "https://github.com/sponsors/ljharb"
@@ -6915,6 +6964,17 @@
6915
6964
  "url": "https://github.com/sponsors/sindresorhus"
6916
6965
  }
6917
6966
  },
6967
+ "node_modules/gopd": {
6968
+ "version": "1.0.1",
6969
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
6970
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
6971
+ "dependencies": {
6972
+ "get-intrinsic": "^1.1.3"
6973
+ },
6974
+ "funding": {
6975
+ "url": "https://github.com/sponsors/ljharb"
6976
+ }
6977
+ },
6918
6978
  "node_modules/got": {
6919
6979
  "version": "9.6.0",
6920
6980
  "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
@@ -6993,10 +7053,32 @@
6993
7053
  "node": ">=4"
6994
7054
  }
6995
7055
  },
6996
- "node_modules/has-symbols": {
7056
+ "node_modules/has-property-descriptors": {
6997
7057
  "version": "1.0.2",
6998
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
6999
- "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==",
7058
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
7059
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
7060
+ "dependencies": {
7061
+ "es-define-property": "^1.0.0"
7062
+ },
7063
+ "funding": {
7064
+ "url": "https://github.com/sponsors/ljharb"
7065
+ }
7066
+ },
7067
+ "node_modules/has-proto": {
7068
+ "version": "1.0.3",
7069
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
7070
+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
7071
+ "engines": {
7072
+ "node": ">= 0.4"
7073
+ },
7074
+ "funding": {
7075
+ "url": "https://github.com/sponsors/ljharb"
7076
+ }
7077
+ },
7078
+ "node_modules/has-symbols": {
7079
+ "version": "1.0.3",
7080
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
7081
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
7000
7082
  "engines": {
7001
7083
  "node": ">= 0.4"
7002
7084
  },
@@ -7012,6 +7094,17 @@
7012
7094
  "node": ">=8"
7013
7095
  }
7014
7096
  },
7097
+ "node_modules/hasown": {
7098
+ "version": "2.0.2",
7099
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
7100
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
7101
+ "dependencies": {
7102
+ "function-bind": "^1.1.2"
7103
+ },
7104
+ "engines": {
7105
+ "node": ">= 0.4"
7106
+ }
7107
+ },
7015
7108
  "node_modules/hast-to-hyperscript": {
7016
7109
  "version": "9.0.1",
7017
7110
  "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz",
@@ -8548,9 +8641,9 @@
8548
8641
  }
8549
8642
  },
8550
8643
  "node_modules/object-inspect": {
8551
- "version": "1.11.0",
8552
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz",
8553
- "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==",
8644
+ "version": "1.13.1",
8645
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
8646
+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
8554
8647
  "funding": {
8555
8648
  "url": "https://github.com/sponsors/ljharb"
8556
8649
  }
@@ -9788,9 +9881,9 @@
9788
9881
  }
9789
9882
  },
9790
9883
  "node_modules/raw-body": {
9791
- "version": "2.5.1",
9792
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
9793
- "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
9884
+ "version": "2.5.2",
9885
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
9886
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
9794
9887
  "dependencies": {
9795
9888
  "bytes": "3.1.2",
9796
9889
  "http-errors": "2.0.0",
@@ -10913,6 +11006,22 @@
10913
11006
  "node": ">= 0.8.0"
10914
11007
  }
10915
11008
  },
11009
+ "node_modules/set-function-length": {
11010
+ "version": "1.2.2",
11011
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
11012
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
11013
+ "dependencies": {
11014
+ "define-data-property": "^1.1.4",
11015
+ "es-errors": "^1.3.0",
11016
+ "function-bind": "^1.1.2",
11017
+ "get-intrinsic": "^1.2.4",
11018
+ "gopd": "^1.0.1",
11019
+ "has-property-descriptors": "^1.0.2"
11020
+ },
11021
+ "engines": {
11022
+ "node": ">= 0.4"
11023
+ }
11024
+ },
10916
11025
  "node_modules/setimmediate": {
10917
11026
  "version": "1.0.5",
10918
11027
  "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
@@ -10983,13 +11092,17 @@
10983
11092
  }
10984
11093
  },
10985
11094
  "node_modules/side-channel": {
10986
- "version": "1.0.4",
10987
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
10988
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
11095
+ "version": "1.0.6",
11096
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
11097
+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
10989
11098
  "dependencies": {
10990
- "call-bind": "^1.0.0",
10991
- "get-intrinsic": "^1.0.2",
10992
- "object-inspect": "^1.9.0"
11099
+ "call-bind": "^1.0.7",
11100
+ "es-errors": "^1.3.0",
11101
+ "get-intrinsic": "^1.2.4",
11102
+ "object-inspect": "^1.13.1"
11103
+ },
11104
+ "engines": {
11105
+ "node": ">= 0.4"
10993
11106
  },
10994
11107
  "funding": {
10995
11108
  "url": "https://github.com/sponsors/ljharb"
@@ -12143,9 +12256,9 @@
12143
12256
  }
12144
12257
  },
12145
12258
  "node_modules/webpack-dev-middleware": {
12146
- "version": "5.3.3",
12147
- "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz",
12148
- "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==",
12259
+ "version": "5.3.4",
12260
+ "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz",
12261
+ "integrity": "sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==",
12149
12262
  "dependencies": {
12150
12263
  "colorette": "^2.0.10",
12151
12264
  "memfs": "^3.4.3",
@@ -15784,12 +15897,12 @@
15784
15897
  "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="
15785
15898
  },
15786
15899
  "body-parser": {
15787
- "version": "1.20.1",
15788
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
15789
- "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
15900
+ "version": "1.20.2",
15901
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
15902
+ "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",
15790
15903
  "requires": {
15791
15904
  "bytes": "3.1.2",
15792
- "content-type": "~1.0.4",
15905
+ "content-type": "~1.0.5",
15793
15906
  "debug": "2.6.9",
15794
15907
  "depd": "2.0.0",
15795
15908
  "destroy": "1.2.0",
@@ -15797,7 +15910,7 @@
15797
15910
  "iconv-lite": "0.4.24",
15798
15911
  "on-finished": "2.4.1",
15799
15912
  "qs": "6.11.0",
15800
- "raw-body": "2.5.1",
15913
+ "raw-body": "2.5.2",
15801
15914
  "type-is": "~1.6.18",
15802
15915
  "unpipe": "1.0.0"
15803
15916
  },
@@ -15926,12 +16039,15 @@
15926
16039
  }
15927
16040
  },
15928
16041
  "call-bind": {
15929
- "version": "1.0.2",
15930
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
15931
- "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
16042
+ "version": "1.0.7",
16043
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
16044
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
15932
16045
  "requires": {
15933
- "function-bind": "^1.1.1",
15934
- "get-intrinsic": "^1.0.2"
16046
+ "es-define-property": "^1.0.0",
16047
+ "es-errors": "^1.3.0",
16048
+ "function-bind": "^1.1.2",
16049
+ "get-intrinsic": "^1.2.4",
16050
+ "set-function-length": "^1.2.1"
15935
16051
  }
15936
16052
  },
15937
16053
  "callsites": {
@@ -16378,9 +16494,9 @@
16378
16494
  }
16379
16495
  },
16380
16496
  "content-type": {
16381
- "version": "1.0.4",
16382
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
16383
- "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
16497
+ "version": "1.0.5",
16498
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
16499
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="
16384
16500
  },
16385
16501
  "convert-source-map": {
16386
16502
  "version": "1.8.0",
@@ -16391,9 +16507,9 @@
16391
16507
  }
16392
16508
  },
16393
16509
  "cookie": {
16394
- "version": "0.5.0",
16395
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
16396
- "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw=="
16510
+ "version": "0.6.0",
16511
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
16512
+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="
16397
16513
  },
16398
16514
  "cookie-signature": {
16399
16515
  "version": "1.0.6",
@@ -16769,6 +16885,16 @@
16769
16885
  "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",
16770
16886
  "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ=="
16771
16887
  },
16888
+ "define-data-property": {
16889
+ "version": "1.1.4",
16890
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
16891
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
16892
+ "requires": {
16893
+ "es-define-property": "^1.0.0",
16894
+ "es-errors": "^1.3.0",
16895
+ "gopd": "^1.0.1"
16896
+ }
16897
+ },
16772
16898
  "define-lazy-prop": {
16773
16899
  "version": "2.0.0",
16774
16900
  "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
@@ -17027,6 +17153,19 @@
17027
17153
  "is-arrayish": "^0.2.1"
17028
17154
  }
17029
17155
  },
17156
+ "es-define-property": {
17157
+ "version": "1.0.0",
17158
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
17159
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
17160
+ "requires": {
17161
+ "get-intrinsic": "^1.2.4"
17162
+ }
17163
+ },
17164
+ "es-errors": {
17165
+ "version": "1.3.0",
17166
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
17167
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="
17168
+ },
17030
17169
  "es-module-lexer": {
17031
17170
  "version": "0.9.3",
17032
17171
  "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz",
@@ -17144,16 +17283,16 @@
17144
17283
  }
17145
17284
  },
17146
17285
  "express": {
17147
- "version": "4.18.2",
17148
- "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
17149
- "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
17286
+ "version": "4.19.2",
17287
+ "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
17288
+ "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==",
17150
17289
  "requires": {
17151
17290
  "accepts": "~1.3.8",
17152
17291
  "array-flatten": "1.1.1",
17153
- "body-parser": "1.20.1",
17292
+ "body-parser": "1.20.2",
17154
17293
  "content-disposition": "0.5.4",
17155
17294
  "content-type": "~1.0.4",
17156
- "cookie": "0.5.0",
17295
+ "cookie": "0.6.0",
17157
17296
  "cookie-signature": "1.0.6",
17158
17297
  "debug": "2.6.9",
17159
17298
  "depd": "2.0.0",
@@ -17387,9 +17526,9 @@
17387
17526
  }
17388
17527
  },
17389
17528
  "follow-redirects": {
17390
- "version": "1.15.2",
17391
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
17392
- "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
17529
+ "version": "1.15.6",
17530
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
17531
+ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="
17393
17532
  },
17394
17533
  "fork-ts-checker-webpack-plugin": {
17395
17534
  "version": "6.5.2",
@@ -17493,9 +17632,9 @@
17493
17632
  "optional": true
17494
17633
  },
17495
17634
  "function-bind": {
17496
- "version": "1.1.1",
17497
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
17498
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
17635
+ "version": "1.1.2",
17636
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
17637
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
17499
17638
  },
17500
17639
  "gensync": {
17501
17640
  "version": "1.0.0-beta.2",
@@ -17503,13 +17642,15 @@
17503
17642
  "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="
17504
17643
  },
17505
17644
  "get-intrinsic": {
17506
- "version": "1.1.1",
17507
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
17508
- "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
17645
+ "version": "1.2.4",
17646
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
17647
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
17509
17648
  "requires": {
17510
- "function-bind": "^1.1.1",
17511
- "has": "^1.0.3",
17512
- "has-symbols": "^1.0.1"
17649
+ "es-errors": "^1.3.0",
17650
+ "function-bind": "^1.1.2",
17651
+ "has-proto": "^1.0.1",
17652
+ "has-symbols": "^1.0.3",
17653
+ "hasown": "^2.0.0"
17513
17654
  }
17514
17655
  },
17515
17656
  "get-own-enumerable-property-symbols": {
@@ -17617,6 +17758,14 @@
17617
17758
  "slash": "^3.0.0"
17618
17759
  }
17619
17760
  },
17761
+ "gopd": {
17762
+ "version": "1.0.1",
17763
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
17764
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
17765
+ "requires": {
17766
+ "get-intrinsic": "^1.1.3"
17767
+ }
17768
+ },
17620
17769
  "got": {
17621
17770
  "version": "9.6.0",
17622
17771
  "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
@@ -17677,16 +17826,37 @@
17677
17826
  "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
17678
17827
  "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw=="
17679
17828
  },
17680
- "has-symbols": {
17829
+ "has-property-descriptors": {
17681
17830
  "version": "1.0.2",
17682
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
17683
- "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw=="
17831
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
17832
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
17833
+ "requires": {
17834
+ "es-define-property": "^1.0.0"
17835
+ }
17836
+ },
17837
+ "has-proto": {
17838
+ "version": "1.0.3",
17839
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
17840
+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q=="
17841
+ },
17842
+ "has-symbols": {
17843
+ "version": "1.0.3",
17844
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
17845
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
17684
17846
  },
17685
17847
  "has-yarn": {
17686
17848
  "version": "2.1.0",
17687
17849
  "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz",
17688
17850
  "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw=="
17689
17851
  },
17852
+ "hasown": {
17853
+ "version": "2.0.2",
17854
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
17855
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
17856
+ "requires": {
17857
+ "function-bind": "^1.1.2"
17858
+ }
17859
+ },
17690
17860
  "hast-to-hyperscript": {
17691
17861
  "version": "9.0.1",
17692
17862
  "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz",
@@ -18774,9 +18944,9 @@
18774
18944
  "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
18775
18945
  },
18776
18946
  "object-inspect": {
18777
- "version": "1.11.0",
18778
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz",
18779
- "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg=="
18947
+ "version": "1.13.1",
18948
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
18949
+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ=="
18780
18950
  },
18781
18951
  "object-keys": {
18782
18952
  "version": "1.1.1",
@@ -19589,9 +19759,9 @@
19589
19759
  "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
19590
19760
  },
19591
19761
  "raw-body": {
19592
- "version": "2.5.1",
19593
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
19594
- "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
19762
+ "version": "2.5.2",
19763
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
19764
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
19595
19765
  "requires": {
19596
19766
  "bytes": "3.1.2",
19597
19767
  "http-errors": "2.0.0",
@@ -20467,6 +20637,19 @@
20467
20637
  "send": "0.18.0"
20468
20638
  }
20469
20639
  },
20640
+ "set-function-length": {
20641
+ "version": "1.2.2",
20642
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
20643
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
20644
+ "requires": {
20645
+ "define-data-property": "^1.1.4",
20646
+ "es-errors": "^1.3.0",
20647
+ "function-bind": "^1.1.2",
20648
+ "get-intrinsic": "^1.2.4",
20649
+ "gopd": "^1.0.1",
20650
+ "has-property-descriptors": "^1.0.2"
20651
+ }
20652
+ },
20470
20653
  "setimmediate": {
20471
20654
  "version": "1.0.5",
20472
20655
  "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
@@ -20519,13 +20702,14 @@
20519
20702
  }
20520
20703
  },
20521
20704
  "side-channel": {
20522
- "version": "1.0.4",
20523
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
20524
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
20705
+ "version": "1.0.6",
20706
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
20707
+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
20525
20708
  "requires": {
20526
- "call-bind": "^1.0.0",
20527
- "get-intrinsic": "^1.0.2",
20528
- "object-inspect": "^1.9.0"
20709
+ "call-bind": "^1.0.7",
20710
+ "es-errors": "^1.3.0",
20711
+ "get-intrinsic": "^1.2.4",
20712
+ "object-inspect": "^1.13.1"
20529
20713
  }
20530
20714
  },
20531
20715
  "signal-exit": {
@@ -21318,9 +21502,9 @@
21318
21502
  }
21319
21503
  },
21320
21504
  "webpack-dev-middleware": {
21321
- "version": "5.3.3",
21322
- "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz",
21323
- "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==",
21505
+ "version": "5.3.4",
21506
+ "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz",
21507
+ "integrity": "sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==",
21324
21508
  "requires": {
21325
21509
  "colorette": "^2.0.10",
21326
21510
  "memfs": "^3.4.3",
package/lib/helpers.cjs CHANGED
@@ -11,7 +11,7 @@ exports.isEventHandler = isEventHandler;
11
11
  exports.isStyleNode = isStyleNode;
12
12
  exports.optionalImport = optionalImport;
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  function __transformExtension(filepath, extMapping) {
16
16
  if (!filepath.startsWith('./') && !filepath.startsWith('../')) {
17
17
  // Package import
@@ -52,7 +52,8 @@ function isComment(content) {
52
52
  return false;
53
53
  }
54
54
  function isConditionalComment(content) {
55
- return (content || '').trim().startsWith('<!--[if');
55
+ const clean = (content || '').trim();
56
+ return clean.startsWith('<!--[if') || clean === '<!--<![endif]-->';
56
57
  }
57
58
  function isStyleNode(node) {
58
59
  return node.tag === 'style' && !isAmpBoilerplate(node) && 'content' in node && node.content.length > 0;
package/lib/helpers.mjs CHANGED
@@ -24,7 +24,8 @@ export function isComment(content) {
24
24
  }
25
25
 
26
26
  export function isConditionalComment(content) {
27
- return (content || '').trim().startsWith('<!--[if');
27
+ const clean = (content || '').trim();
28
+ return clean.startsWith('<!--[if') || clean === '<!--<![endif]-->';
28
29
  }
29
30
 
30
31
  export function isStyleNode(node) {
package/lib/htmlnano.cjs CHANGED
@@ -33,7 +33,7 @@ function __transformExtension(filepath, extMapping) {
33
33
  return filepath;
34
34
  }
35
35
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
36
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
36
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
37
37
  const presets = {
38
38
  safe: _safe.default,
39
39
  ampSafe: _ampSafe.default,
@@ -98,14 +98,14 @@ async function minifyUrls(tree, options, moduleOptions) {
98
98
  if (isSrcsetAttribute(node.tag, attrNameLower)) {
99
99
  if (srcset) {
100
100
  try {
101
- const parsedSrcset = srcset.parse(attrValue, {
101
+ const parsedSrcset = srcset.parseSrcset(attrValue, {
102
102
  strict: true
103
103
  });
104
- node.attrs[attrName] = srcset.stringify(parsedSrcset.map(srcset => {
104
+ node.attrs[attrName] = srcset.stringifySrcset(parsedSrcset.map(item => {
105
105
  if (relateUrlInstance) {
106
- srcset.url = relateUrlInstance.relate(srcset.url);
106
+ item.url = relateUrlInstance.relate(item.url);
107
107
  }
108
- return srcset;
108
+ return item;
109
109
  }));
110
110
  } catch (e) {
111
111
  // srcset will throw an Error for invalid srcset.
@@ -175,14 +175,14 @@ export default async function minifyUrls(tree, options, moduleOptions) {
175
175
  if (isSrcsetAttribute(node.tag, attrNameLower)) {
176
176
  if (srcset) {
177
177
  try {
178
- const parsedSrcset = srcset.parse(attrValue, { strict: true });
178
+ const parsedSrcset = srcset.parseSrcset(attrValue, { strict: true });
179
179
 
180
- node.attrs[attrName] = srcset.stringify(parsedSrcset.map(srcset => {
180
+ node.attrs[attrName] = srcset.stringifySrcset(parsedSrcset.map(item => {
181
181
  if (relateUrlInstance) {
182
- srcset.url = relateUrlInstance.relate(srcset.url);
182
+ item.url = relateUrlInstance.relate(item.url);
183
183
  }
184
184
 
185
- return srcset;
185
+ return item;
186
186
  }));
187
187
  } catch (e) {
188
188
  // srcset will throw an Error for invalid srcset.
@@ -14,7 +14,6 @@ class AttributeTokenChain {
14
14
  constructor() {
15
15
  this.freqData = new Map(); // <attr, frequency>[]
16
16
  }
17
-
18
17
  addFromNodeAttrs(nodeAttrs) {
19
18
  Object.keys(nodeAttrs).forEach(attrName => {
20
19
  const attrNameLower = attrName.toLowerCase();
@@ -17,7 +17,6 @@ class AttributeTokenChain {
17
17
  constructor() {
18
18
  this.freqData = new Map(); // <attrValue, frequency>[]
19
19
  }
20
-
21
20
  addFromNodeAttrsArray(attrValuesArray) {
22
21
  attrValuesArray.forEach(attrValue => {
23
22
  if (this.freqData.has(attrValue)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htmlnano",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Modular HTML minifier, built on top of the PostHTML",
5
5
  "main": "index.cjs",
6
6
  "module": "index.mjs",
@@ -59,7 +59,7 @@
59
59
  ]
60
60
  },
61
61
  "dependencies": {
62
- "cosmiconfig": "^8.0.0",
62
+ "cosmiconfig": "^9.0.0",
63
63
  "posthtml": "^0.16.5",
64
64
  "timsort": "^0.3.0"
65
65
  },
@@ -70,27 +70,27 @@
70
70
  "@babel/preset-env": "^7.15.6",
71
71
  "@babel/register": "^7.15.3",
72
72
  "@aminya/babel-plugin-replace-import-extension": "1.2.0",
73
- "cssnano": "^6.0.0",
73
+ "cssnano": "^7.0.0",
74
74
  "eslint": "^8.12.0",
75
75
  "eslint-plugin-import": "^2.28.1",
76
76
  "eslint-plugin-path-import-extension": "^0.9.0",
77
77
  "expect": "^29.0.0",
78
78
  "mocha": "^10.1.0",
79
79
  "postcss": "^8.3.11",
80
- "purgecss": "^5.0.0",
80
+ "purgecss": "^6.0.0",
81
81
  "relateurl": "^0.2.7",
82
82
  "rimraf": "^5.0.0",
83
- "srcset": "4.0.0",
83
+ "srcset": "5.0.1",
84
84
  "svgo": "^3.0.2",
85
85
  "terser": "^5.21.0",
86
86
  "uncss": "^0.17.3"
87
87
  },
88
88
  "peerDependencies": {
89
- "cssnano": "^6.0.0",
89
+ "cssnano": "^7.0.0",
90
90
  "postcss": "^8.3.11",
91
- "purgecss": "^5.0.0",
91
+ "purgecss": "^6.0.0",
92
92
  "relateurl": "^0.2.7",
93
- "srcset": "4.0.0",
93
+ "srcset": "5.0.1",
94
94
  "svgo": "^3.0.2",
95
95
  "terser": "^5.10.0",
96
96
  "uncss": "^0.17.3"