@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=${
|
|
50
|
-
|
|
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
|
@@ -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=${
|
|
114
|
-
|
|
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
|
|