aeria-sdk 0.0.160 → 0.0.162

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/upload.js CHANGED
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uploader = void 0;
4
- const querystring = require("node:querystring");
5
4
  const http_js_1 = require("./http.js");
6
5
  const utils_js_1 = require("./utils.js");
7
6
  const uploader = (config) => (bearerToken) => async (collectionName, params) => {
8
- const qs = querystring.encode({
7
+ const qs = {
9
8
  name: params.name,
10
9
  format: params.format || 'raw',
11
- });
12
- const url = `${(0, utils_js_1.publicUrl)(config)}/${collectionName}/upload?${qs}`;
10
+ };
11
+ const url = `${(0, utils_js_1.publicUrl)(config)}/${collectionName}/upload?name=${qs.name}&format=${qs.format}`;
13
12
  const headers = {
14
13
  'x-stream-request': '1',
15
14
  'content-type': params.type,
package/dist/upload.mjs CHANGED
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
- import * as querystring from "node:querystring";
3
2
  import { request } from "./http.mjs";
4
3
  import { publicUrl } from "./utils.mjs";
5
4
  export const uploader = (config) => (bearerToken) => async (collectionName, params) => {
6
- const qs = querystring.encode({
5
+ const qs = {
7
6
  name: params.name,
8
7
  format: params.format || "raw"
9
- });
10
- const url = `${publicUrl(config)}/${collectionName}/upload?${qs}`;
8
+ };
9
+ const url = `${publicUrl(config)}/${collectionName}/upload?name=${qs.name}&format=${qs.format}`;
11
10
  const headers = {
12
11
  "x-stream-request": "1",
13
12
  "content-type": params.type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.160",
3
+ "version": "0.0.162",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -47,8 +47,8 @@
47
47
  "@aeriajs/types": "link:../types"
48
48
  },
49
49
  "peerDependencies": {
50
- "@aeriajs/common": "^0.0.126",
51
- "@aeriajs/types": "^0.0.108"
50
+ "@aeriajs/common": "^0.0.127",
51
+ "@aeriajs/types": "^0.0.109"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "echo skipping",