rubik-pact 1.0.5 → 1.0.7

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.
@@ -2,6 +2,6 @@ module.exports = [
2
2
  { kubikName: 'companies.channels.conversations', apiName: 'companies/{{companyId}}/channels/{{channelId}}/conversations' },
3
3
  { kubikName: 'companies.conversations.messages', apiName: 'companies/{{companyId}}/conversations/{{conversationId}}/messages' },
4
4
  { kubikName: 'companies.conversations.messages.attachments', apiName: 'companies/{{companyId}}/conversations/{{conversationId}}/messages/attachments' },
5
- { kubikName: 'companies.conversationsGet', apiName: 'companies/{{companyId}}/conversations/{{conversationId}}' }
5
+ { kubikName: 'companies.conversationsGet', apiName: 'companies/{{companyId}}/conversations/{{conversationId}}' },
6
6
  { kubikName: 'companies.companyId', apiName: 'companies/{{companyId}}' }
7
7
  ];
package/classes/Pact.js CHANGED
@@ -72,7 +72,7 @@ class Pact extends Kubik {
72
72
  if (!token) token = this.token;
73
73
  const headers = { 'X-Private-Api-Token': token };
74
74
 
75
- let method = method || 'POST'
75
+ method = method || 'POST';
76
76
  if (body instanceof FormData) {
77
77
  Object.assign(headers, body.getHeaders());
78
78
  } else if (isObject(body)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubik-pact",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Pact Bot Api kubik for the Rubik application system",
5
5
  "main": "classes/Pact.js",
6
6
  "author": "ns@indotech.ru",