@wooksjs/event-cli 0.2.22 → 0.2.23

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/dist/index.cjs CHANGED
@@ -61,7 +61,7 @@ class WooksCli extends wooks.WooksAdapterBase {
61
61
  const pathParams = (firstFlagIndex
62
62
  ? argv.slice(0, firstFlagIndex - 1)
63
63
  : argv);
64
- const path = '/' + pathParams.map((v) => encodeURIComponent(v)).join('/');
64
+ const path = '/' + pathParams.map((v) => encodeURI(v).replace(/\//g, '%2F')).join('/');
65
65
  const { restoreCtx, clearCtx } = createCliContext({ argv, pathParams }, this.mergeEventOptions((_a = this.opts) === null || _a === void 0 ? void 0 : _a.eventOptions));
66
66
  const handlers = this.wooks.lookup('CLI', path) || ((_b = this.opts) === null || _b === void 0 ? void 0 : _b.onNotFound) && [this.opts.onNotFound] || null;
67
67
  if (handlers) {
package/dist/index.mjs CHANGED
@@ -59,7 +59,7 @@ class WooksCli extends WooksAdapterBase {
59
59
  const pathParams = (firstFlagIndex
60
60
  ? argv.slice(0, firstFlagIndex - 1)
61
61
  : argv);
62
- const path = '/' + pathParams.map((v) => encodeURIComponent(v)).join('/');
62
+ const path = '/' + pathParams.map((v) => encodeURI(v).replace(/\//g, '%2F')).join('/');
63
63
  const { restoreCtx, clearCtx } = createCliContext({ argv, pathParams }, this.mergeEventOptions((_a = this.opts) === null || _a === void 0 ? void 0 : _a.eventOptions));
64
64
  const handlers = this.wooks.lookup('CLI', path) || ((_b = this.opts) === null || _b === void 0 ? void 0 : _b.onNotFound) && [this.opts.onNotFound] || null;
65
65
  if (handlers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/event-cli",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "@wooksjs/event-cli",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "url": "https://github.com/wooksjs/wooksjs/issues"
32
32
  },
33
33
  "peerDependencies": {
34
- "wooks": "0.2.22",
35
- "@wooksjs/event-core": "0.2.22"
34
+ "wooks": "0.2.23",
35
+ "@wooksjs/event-core": "0.2.23"
36
36
  },
37
37
  "dependencies": {
38
38
  "minimist": "^1.2.6",