@mittwald/api-client 1.0.3 → 1.0.5

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-cjs/v2.js CHANGED
@@ -8,13 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.MittwaldAPIClient = void 0;
16
13
  const api_client_commons_1 = require("@mittwald/api-client-commons");
17
- const client_js_1 = __importDefault(require("./generated/v2/client.js"));
14
+ const client_js_1 = require("./generated/v2/client.js");
18
15
  class MittwaldAPIClient extends client_js_1.default {
19
16
  constructor(apiToken) {
20
17
  super({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
+ "version": "1.0.5",
3
4
  "description": "Auto-generated client for the mittwald API",
4
- "version": "1.0.3",
5
5
  "license": "MIT",
6
6
  "repository": "github:mittwald/api-client-js",
7
7
  "author": {
@@ -15,17 +15,16 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  "./v2": {
18
- "import": "./dist/v2.js",
19
- "default": "./dist-cjs/v2.js"
18
+ "types": "./dist/v2.d.ts",
19
+ "default": "./dist/v2.js"
20
20
  }
21
21
  },
22
22
  "scripts": {
23
- "copy:dts": "yarn run -T copyfiles -u 1 src/**/*.d.ts dist",
24
23
  "generate:client": "yarn generate:client:v2 && yarn post:generate",
25
24
  "generate:client-dev": "yarn generate:client-dev:v2 && yarn post:generate",
26
25
  "generate:client-dev:v2": "curl --silent https://api-public.dev.mittwald.systems/openapi | ./transform-openapi.sh | yarn acg generate --name MittwaldAPIV2 - src/generated/v2 --optionalHeader x-access-token",
27
26
  "generate:client:v2": "curl --silent https://api.mittwald.de/openapi | ./transform-openapi.sh | yarn acg generate --name MittwaldAPIV2 - src/generated/v2 --optionalHeader x-access-token",
28
- "post:generate": "yarn run -T compile && yarn run -T compile:cjs && yarn copy:dts"
27
+ "post:generate": "yarn run -T compile && yarn run -T compile:cjs"
29
28
  },
30
29
  "files": [
31
30
  "{dist,dist-cjs}/**/*.{js,d.ts}"
@@ -42,6 +41,5 @@
42
41
  },
43
42
  "devDependencies": {
44
43
  "@mittwald/api-code-generator": "^1.0.0"
45
- },
46
- "types": "./dist/index.d.ts"
44
+ }
47
45
  }