@forsakringskassan/vite-lib-config 4.8.2 → 4.9.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/README.md CHANGED
@@ -55,7 +55,7 @@ export interface FKConfig {
55
55
  /** path to component to mount by default (default `src/dev-vite/app.vue`) */
56
56
  entrypoint?: string;
57
57
  /** mocks to configure with apimock-express (default `[]`) */
58
- mocks?: MockEntry[];
58
+ mocks?: MockEntry[] | Mock[]
59
59
  }
60
60
  ```
61
61
 
@@ -1,4 +1,5 @@
1
1
  import { vitePlugin as apimockPlugin } from '@forsakringskassan/apimock-express';
2
+ import { Mock } from '@forsakringskassan/apimock-express';
2
3
  import { MockEntry } from '@forsakringskassan/apimock-express';
3
4
  import { Plugin as Plugin_2 } from 'vite';
4
5
  import { Plugin as Plugin_3 } from 'rollup';
@@ -25,7 +26,7 @@ export declare interface FKConfig {
25
26
  /** path to component to mount by default (default `src/dev-vite/app.vue`) */
26
27
  entrypoint?: string;
27
28
  /** mocks to configure with apimock-express (default `[]`) */
28
- mocks?: MockEntry[];
29
+ mocks?: MockEntry[] | Mock[];
29
30
  }
30
31
 
31
32
  export { MockEntry }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "4.8.2",
3
+ "version": "4.9.1",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"
@@ -58,7 +58,7 @@
58
58
  "@babel/core": "^7.22.0",
59
59
  "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.0",
60
60
  "@fkui/tsconfig": ">= 6.3.0",
61
- "@forsakringskassan/apimock-express": "^1.1.0 || ^2.0.0",
61
+ "@forsakringskassan/apimock-express": "^1.1.0 || ^2.0.0 || ^3.0.0",
62
62
  "prettier": "^3.0.0",
63
63
  "typescript": "^5.0.2 || ^6.0.2",
64
64
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",