@cloud-cli/px 3.5.6 → 3.5.7

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.
@@ -74,7 +74,10 @@ export class ProxyManager {
74
74
  }
75
75
  async findByDomainAndPath(string) {
76
76
  const [domain, path = ''] = string.split('/');
77
- const query = new Query().where('domain').is(domain).where('path').is(path);
77
+ const query = new Query().where('domain').is(domain);
78
+ if (path) {
79
+ query.where('path').is(path);
80
+ }
78
81
  const proxies = await Resource.find(Proxy, query);
79
82
  return proxies;
80
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",