@shopware/api-client 0.0.2 → 0.1.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.mjs CHANGED
@@ -23,13 +23,16 @@ function createAPIClient(params) {
23
23
  pathParam,
24
24
  params2
25
25
  );
26
- return apiFetch(requestPath, {
27
- ...options,
28
- headers: {
29
- ...defaultHeaders,
30
- ...options.headers
26
+ return apiFetch(
27
+ requestPath,
28
+ {
29
+ ...options,
30
+ headers: {
31
+ ...defaultHeaders,
32
+ ...options.headers
33
+ }
31
34
  }
32
- });
35
+ );
33
36
  }
34
37
  return {
35
38
  invoke
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware/api-client",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "Shopware client for API connection.",
5
5
  "author": "Shopware",
6
6
  "repository": {
@@ -20,27 +20,31 @@
20
20
  "module": "./dist/index.mjs",
21
21
  "types": "./dist/index.d.ts",
22
22
  "files": [
23
- "dist"
23
+ "dist",
24
+ "api-types"
24
25
  ],
25
26
  "exports": {
26
27
  "import": "./dist/index.mjs"
27
28
  },
28
29
  "devDependencies": {
29
- "@types/prettier": "^2.7.2",
30
+ "@types/prettier": "^2.7.3",
30
31
  "@vitest/coverage-c8": "^0.32.2",
31
32
  "prettier": "^2.8.8",
32
33
  "vitest": "^0.32.2",
33
- "eslint-config-shopware": "0.0.2",
34
+ "eslint-config-shopware": "0.0.3",
35
+ "@shopware/api-gen": "0.0.4",
34
36
  "tsconfig": "0.0.0"
35
37
  },
36
38
  "dependencies": {
37
- "ofetch": "^1.0.1"
39
+ "ofetch": "^1.1.1"
38
40
  },
39
41
  "scripts": {
40
42
  "build": "export NODE_ENV=production && unbuild && pnpm build:types",
41
43
  "build:types": "tsc ./src/*.ts --declaration --allowJs --emitDeclarationOnly --outDir ./temp --skipLibCheck",
42
44
  "dev": "export NODE_ENV=development && unbuild --stub",
43
- "lint": "eslint src/**/*.ts* --fix --max-warnings=0",
45
+ "generate": "esno ../api-gen/src/cli.ts generate",
46
+ "lint": "eslint src/**/*.ts* --fix --max-warnings=0 && pnpm run typecheck",
47
+ "typecheck": "tsc --noEmit",
44
48
  "test": "vitest run && pnpm run test:types",
45
49
  "test:types": "vitest typecheck --run",
46
50
  "test:bench": "vitest bench",