@sealcode/sealgen 0.15.1 → 0.15.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.
@@ -46,8 +46,9 @@ class StatefulPage extends Mountable {
46
46
  }
47
47
  makeActionURL(action_description, ...args) {
48
48
  const { action } = this.extractActionAndLabel(action_description);
49
- return `./?action=${action}&action_args=${to_base64(
50
- JSON.stringify(args)
49
+ return `./?action=${action}&action_args=${encodeURIComponent(
50
+ // encoding as URI Component because sometimes it can contain a "+" which is treated as a space
51
+ to_base64(JSON.stringify(args))
51
52
  )}`;
52
53
  }
53
54
  makeActionButton(_state, action_description, ...args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -110,8 +110,9 @@ export abstract class StatefulPage<
110
110
  ...args: ExtractTail<ExtractTail<Parameters<Actions[ActionName]>>>
111
111
  ) {
112
112
  const { action } = this.extractActionAndLabel(action_description);
113
- return `./?action=${action}&action_args=${to_base64(
114
- JSON.stringify(args)
113
+ return `./?action=${action}&action_args=${encodeURIComponent(
114
+ // encoding as URI Component because sometimes it can contain a "+" which is treated as a space
115
+ to_base64(JSON.stringify(args))
115
116
  )}`;
116
117
  }
117
118