@spoosh/plugin-transform 0.1.4 → 0.2.0
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ function transformPlugin() {
|
|
|
82
82
|
const responseTransformer = pluginOptions?.transform?.response;
|
|
83
83
|
if (responseTransformer && response.data !== void 0) {
|
|
84
84
|
const transformedData = await responseTransformer(response.data);
|
|
85
|
-
context.stateManager.
|
|
85
|
+
context.stateManager.setMeta(context.queryKey, {
|
|
86
86
|
transformedData
|
|
87
87
|
});
|
|
88
88
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -56,7 +56,7 @@ function transformPlugin() {
|
|
|
56
56
|
const responseTransformer = pluginOptions?.transform?.response;
|
|
57
57
|
if (responseTransformer && response.data !== void 0) {
|
|
58
58
|
const transformedData = await responseTransformer(response.data);
|
|
59
|
-
context.stateManager.
|
|
59
|
+
context.stateManager.setMeta(context.queryKey, {
|
|
60
60
|
transformedData
|
|
61
61
|
});
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Data transformation plugin for Spoosh with sync/async support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@spoosh/core": ">=0.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/core": "0.
|
|
39
|
+
"@spoosh/core": "0.5.0",
|
|
40
40
|
"@spoosh/test-utils": "0.1.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|