fusio-sdk 3.0.8 → 3.0.9

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.
@@ -32,7 +32,7 @@ export declare class CategoryTag extends TagAbstract {
32
32
  * @throws {MessageException}
33
33
  * @throws {ClientException}
34
34
  */
35
- insert(payload: CategoryCreate): Promise<Message>;
35
+ create(payload: CategoryCreate): Promise<Message>;
36
36
  /**
37
37
  * @returns {Promise<CategoryCollection>}
38
38
  * @throws {MessageException}
@@ -123,7 +123,7 @@ export class CategoryTag extends TagAbstract {
123
123
  * @throws {MessageException}
124
124
  * @throws {ClientException}
125
125
  */
126
- async insert(payload) {
126
+ async create(payload) {
127
127
  const url = this.parser.url('/backend/category', {});
128
128
  let params = {
129
129
  url: url,
@@ -186,6 +186,8 @@ export class AccountTag extends TagAbstract {
186
186
  switch (error.response.status) {
187
187
  case 400:
188
188
  throw new MessageException(error.response.data);
189
+ case 401:
190
+ throw new MessageException(error.response.data);
189
191
  case 500:
190
192
  throw new MessageException(error.response.data);
191
193
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusio-sdk",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "SDK to talk to the Fusio API",
5
5
  "keywords": [
6
6
  "API",