@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 +7 -0
- package/package.json +1 -1
- package/src/server.js +2 -1
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
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/...
|