@koine/api 2.0.0-beta.16 → 2.0.0-beta.18

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/ApiError.d.ts CHANGED
File without changes
package/ApiError.js CHANGED
File without changes
package/cjs/ApiError.d.ts CHANGED
File without changes
package/cjs/ApiError.js CHANGED
File without changes
File without changes
package/cjs/createApi.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -50,7 +50,7 @@ var createSwrApi = function () {
50
50
  for (var _i = 0; _i < arguments.length; _i++) {
51
51
  args[_i] = arguments[_i];
52
52
  }
53
- var api = createApi_1.default.apply(void 0, args);
53
+ var api = createApi_1.default.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(args), false));
54
54
  ["get", "post", "put", "patch", "delete"].forEach(function (method) {
55
55
  var hookName = "use".concat(method.charAt(0).toUpperCase() + method.slice(1));
56
56
  api[hookName] = createUseApi(api, method);
package/cjs/index.d.ts CHANGED
File without changes
package/cjs/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/package.json CHANGED
File without changes
package/createApi.d.ts CHANGED
File without changes
package/createApi.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/createSwrApi.d.ts CHANGED
File without changes
package/createSwrApi.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __assign, __awaiter, __generator } from "tslib";
2
+ import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib";
3
3
  import useSWR from "swr";
4
4
  import useSWRMutation from "swr/mutation";
5
5
  import { isFunction } from "@koine/utils";
@@ -47,7 +47,7 @@ export var createSwrApi = function () {
47
47
  for (var _i = 0; _i < arguments.length; _i++) {
48
48
  args[_i] = arguments[_i];
49
49
  }
50
- var api = createApi.apply(void 0, args);
50
+ var api = createApi.apply(void 0, __spreadArray([], __read(args), false));
51
51
  ["get", "post", "put", "patch", "delete"].forEach(function (method) {
52
52
  var hookName = "use".concat(method.charAt(0).toUpperCase() + method.slice(1));
53
53
  api[hookName] = createUseApi(api, method);
package/index.d.ts CHANGED
File without changes
package/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@koine/api",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/utils": "2.0.0-beta.16"
5
+ "@koine/utils": "2.0.0-beta.18"
6
6
  },
7
7
  "peerDependenciesMeta": {
8
8
  "next": {
@@ -51,5 +51,5 @@
51
51
  }
52
52
  },
53
53
  "peerDependencies": {},
54
- "version": "2.0.0-beta.16"
54
+ "version": "2.0.0-beta.18"
55
55
  }