@cocreate/lazy-loader 1.13.1 → 1.13.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.13.2](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.13.1...v1.13.2) (2024-01-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * send req.url to acme ([66715f9](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/66715f97ea85a23087b29a8ab45c47db35199f92))
7
+
1
8
  ## [1.13.1](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.13.0...v1.13.1) (2024-01-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/lazy-loader",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "lazy-loader",
package/src/server.js CHANGED
@@ -66,6 +66,7 @@ class CoCreateLazyLoader {
66
66
  })
67
67
 
68
68
  if (!org || !org.object || !org.object[0]) {
69
+ // TODO: hostNotFound is not defined
69
70
  if (!hostNotFound)
70
71
  hostNotFound = await getDefaultFile('/hostNotFound.html')
71
72
  return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html', 'storage': organization.storage })
@@ -77,7 +78,7 @@ class CoCreateLazyLoader {
77
78
 
78
79
  hosts[hostname] = organization
79
80
 
80
- await this.acme.checkCertificate(hostname, organization._id)
81
+ await this.acme.checkCertificate(hostname, organization._id, req.url)
81
82
 
82
83
  if (valideUrl.pathname.startsWith('/webhooks/')) {
83
84
  let name = req.url.split('/')[2]; // Assuming URL structure is /webhook/name/...