@diphyx/harlemify 6.3.0 → 6.3.1

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.14.0 || ^4.0.0"
6
6
  },
7
- "version": "6.3.0",
7
+ "version": "6.3.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
@@ -54,6 +54,7 @@ export interface ActionApiCommitContext<MD extends ModelDefinitions, VD extends
54
54
  query: Readonly<Record<string, unknown>>;
55
55
  body: unknown;
56
56
  }>;
57
+ params: Readonly<Record<string, string | number>>;
57
58
  view: DeepReadonly<StoreView<MD, VD>>;
58
59
  }
59
60
  export interface ActionApiCommit<MD extends ModelDefinitions, VD extends ViewDefinitions<MD>, K extends keyof MD = keyof MD> {
@@ -136,7 +137,7 @@ export interface ActionCallCommitOptions {
136
137
  mode?: ModelOneMode | ModelManyMode | Record<string, ModelOneMode | ModelManyMode>;
137
138
  }
138
139
  export interface ActionApiCallOptions extends ActionCallBaseOptions {
139
- params?: Record<string, string>;
140
+ params?: Record<string, string | number>;
140
141
  headers?: Record<string, string>;
141
142
  query?: Record<string, unknown>;
142
143
  body?: unknown;
@@ -297,6 +297,7 @@ export function createAction(definition, model, view) {
297
297
  );
298
298
  const context = {
299
299
  request: { url, method, headers, query, body },
300
+ params: options?.params ?? {},
300
301
  view
301
302
  };
302
303
  data = executeCommit(definition, model, response, context, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diphyx/harlemify",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "API state management for Nuxt powered by Harlem",
5
5
  "keywords": [
6
6
  "nuxt",