@bundleup/sdk 0.0.4 → 0.0.6

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.js CHANGED
@@ -158,7 +158,7 @@ var Request = class {
158
158
  constructor(apiKey, connectionId) {
159
159
  this.apiKey = apiKey;
160
160
  this.connectionId = connectionId;
161
- this.baseUrl = "https://api.bundleup.com/v1";
161
+ this.baseUrl = "https://req.bundleup.io";
162
162
  }
163
163
  get headers() {
164
164
  return {
@@ -277,7 +277,7 @@ var Chat = class {
277
277
  }
278
278
  return this.req.post(
279
279
  "/",
280
- { channelId, content },
280
+ { channel_id: channelId, content },
281
281
  { "BU-Method": "chat.message" }
282
282
  );
283
283
  }
package/dist/index.mjs CHANGED
@@ -132,7 +132,7 @@ var Request = class {
132
132
  constructor(apiKey, connectionId) {
133
133
  this.apiKey = apiKey;
134
134
  this.connectionId = connectionId;
135
- this.baseUrl = "https://api.bundleup.com/v1";
135
+ this.baseUrl = "https://req.bundleup.io";
136
136
  }
137
137
  get headers() {
138
138
  return {
@@ -251,7 +251,7 @@ var Chat = class {
251
251
  }
252
252
  return this.req.post(
253
253
  "/",
254
- { channelId, content },
254
+ { channel_id: channelId, content },
255
255
  { "BU-Method": "chat.message" }
256
256
  );
257
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bundleup/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "SDK package for BundleUp",
5
5
  "exports": {
6
6
  ".": {