@svadmin/strapi 0.9.7 → 0.9.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/strapi",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Strapi v4/v5 DataProvider for svadmin",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "peerDependencies": {
23
- "@svadmin/core": "^0.25.3",
23
+ "@svadmin/core": "^0.27.1",
24
24
  "@refinedev/strapi-v4": "^5.0.0"
25
25
  },
26
26
  "license": "MIT",
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import type { DataProvider } from '@svadmin/core';
2
3
  import { createRefineAdapter } from '@svadmin/refine-adapter';
3
4
 
@@ -10,7 +11,6 @@ import { createRefineAdapter } from '@svadmin/refine-adapter';
10
11
  * @returns A fully compatible svadmin DataProvider
11
12
  */
12
13
  export async function createStrapiDataProvider(...args: any[]): Promise<DataProvider> {
13
- // @ts-ignore
14
14
  const pkg = await import('@refinedev/strapi-v4');
15
15
  const init = (pkg as any).default || (pkg as any).dataProvider || (pkg as any).DataProvider;
16
16
  if (typeof init !== 'function') throw new Error('[svadmin] Failed to resolve @refinedev/strapi-v4 data provider. Ensure the package is installed correctly.');