@cloud-cli/px 3.2.1 → 3.2.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.
@@ -2,7 +2,6 @@ import { Query, Resource } from '@cloud-cli/store';
2
2
  import { ProxyEntry } from './proxy.js';
3
3
  const domainNotSpecifiedError = new Error('Domain not specified');
4
4
  const targetNotSpecifiedError = new Error('Target not specified');
5
- const notFoundError = new Error('Proxy not found');
6
5
  export class ProxyManager {
7
6
  addProxy(proxy) {
8
7
  return new Promise(async (resolve, reject) => {
@@ -39,9 +38,6 @@ export class ProxyManager {
39
38
  query.where('target').is(options.target);
40
39
  }
41
40
  const proxy = await Resource.find(ProxyEntry, query);
42
- if (!proxy.length) {
43
- return reject(notFoundError);
44
- }
45
41
  try {
46
42
  for (const p of proxy) {
47
43
  await p.remove();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",