@metacall/protocol 0.1.27 → 0.1.28

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.d.ts CHANGED
@@ -3,8 +3,8 @@ export * from './language';
3
3
  export * from './login';
4
4
  export * from './package';
5
5
  export * from './plan';
6
- export * from './token';
7
- import metacallAPI from './protocol';
8
6
  export * from './protocol';
9
7
  export * from './signup';
8
+ export * from './token';
9
+ import metacallAPI from './protocol';
10
10
  export default metacallAPI;
package/dist/index.js CHANGED
@@ -18,8 +18,8 @@ __exportStar(require("./language"), exports);
18
18
  __exportStar(require("./login"), exports);
19
19
  __exportStar(require("./package"), exports);
20
20
  __exportStar(require("./plan"), exports);
21
- __exportStar(require("./token"), exports);
22
- const protocol_1 = __importDefault(require("./protocol"));
23
21
  __exportStar(require("./protocol"), exports);
24
22
  __exportStar(require("./signup"), exports);
23
+ __exportStar(require("./token"), exports);
24
+ const protocol_1 = __importDefault(require("./protocol"));
25
25
  exports.default = protocol_1.default;
package/dist/protocol.js CHANGED
@@ -124,7 +124,7 @@ exports.default = (token, baseURL) => {
124
124
  filename: 'blob',
125
125
  contentType: 'application/x-zip-compressed'
126
126
  });
127
- const res = await axios_1.default.post(getURL('/api/package/create'), fd, getConfig(fd.getHeaders?.() ?? {}) // Operator chaining to make it compatible with frontend
127
+ const res = await axios_1.default.post(getURL('/api/package/create'), fd, getConfig() // Axios automatically sets multipart headers
128
128
  );
129
129
  return res.data;
130
130
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacall/protocol",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Tool for deploying into MetaCall FaaS platform.",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js",
package/src/index.ts CHANGED
@@ -3,8 +3,9 @@ export * from './language';
3
3
  export * from './login';
4
4
  export * from './package';
5
5
  export * from './plan';
6
- export * from './token';
7
- import metacallAPI from './protocol';
8
6
  export * from './protocol';
9
7
  export * from './signup';
8
+ export * from './token';
9
+
10
+ import metacallAPI from './protocol';
10
11
  export default metacallAPI;
package/src/protocol.ts CHANGED
@@ -255,7 +255,7 @@ export default (token: string, baseURL: string): API => {
255
255
  const res = await axios.post<string>(
256
256
  getURL('/api/package/create'),
257
257
  fd,
258
- getConfig(fd.getHeaders?.() ?? {}) // Operator chaining to make it compatible with frontend
258
+ getConfig() // Axios automatically sets multipart headers
259
259
  );
260
260
  return res.data;
261
261
  },