@appsemble/sdk 0.37.0 → 0.37.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.
- package/README.md +3 -3
- package/index.d.ts +11 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble SDK
|
|
2
2
|
|
|
3
3
|
> Build your own blocks
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/sdk)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.37.2)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -153,5 +153,5 @@ declare module '@appsemble/sdk' {
|
|
|
153
153
|
|
|
154
154
|
## License
|
|
155
155
|
|
|
156
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.37.
|
|
156
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.37.2/LICENSE.md) ©
|
|
157
157
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -148,6 +148,17 @@ export interface Utils {
|
|
|
148
148
|
* @returns Whether or not the input is an action error.
|
|
149
149
|
*/
|
|
150
150
|
isActionError: (input: unknown) => input is ActionError;
|
|
151
|
+
/**
|
|
152
|
+
* Test if the input is an error caused by the action's owner being aborted.
|
|
153
|
+
*
|
|
154
|
+
* An action chain rejects with this when the block, page, or flow page that owns it is unmounted
|
|
155
|
+
* while the chain is in flight, e.g. by navigating away or switching tabs. It signals a
|
|
156
|
+
* cancellation, not a failure, so blocks should treat it as a benign stop rather than an error.
|
|
157
|
+
*
|
|
158
|
+
* @param input The input to test
|
|
159
|
+
* @returns Whether or not the input is an action owner abort error.
|
|
160
|
+
*/
|
|
161
|
+
isActionOwnerAbortError: (input: unknown) => boolean;
|
|
151
162
|
/**
|
|
152
163
|
* Remap data based in a user defined remapper function.
|
|
153
164
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/sdk",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"description": "Build your own blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"test": "vitest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@appsemble/types": "0.37.
|
|
47
|
-
"@appsemble/lang-sdk": "0.37.
|
|
46
|
+
"@appsemble/types": "0.37.2",
|
|
47
|
+
"@appsemble/lang-sdk": "0.37.2",
|
|
48
48
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
49
49
|
"type-fest": "^4.0.0"
|
|
50
50
|
},
|