@iiasa/ixmp4-ts 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Backend = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
- const qs_1 = __importDefault(require("qs"));
17
+ const query_string_1 = __importDefault(require("query-string"));
18
18
  const run_1 = require("./data/run");
19
19
  const datapoint_1 = require("./data/iamc/datapoint");
20
20
  const model_1 = require("./data/model");
@@ -49,8 +49,7 @@ class Backend {
49
49
  timeout: 0,
50
50
  withCredentials: !anonymous,
51
51
  paramsSerializer: (q) => {
52
- return qs_1.default.stringify(q, {
53
- format: 'RFC1738',
52
+ return query_string_1.default.stringify(q, {
54
53
  arrayFormat: 'comma',
55
54
  encode: false,
56
55
  });
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import qs from 'qs';
2
+ import queryString from 'query-string';
3
3
  import { RunRepository } from './data/run';
4
4
  import { DataPointRepository } from './data/iamc/datapoint';
5
5
  import { ModelRepository } from './data/model';
@@ -42,8 +42,7 @@ class Backend {
42
42
  timeout: 0,
43
43
  withCredentials: !anonymous,
44
44
  paramsSerializer: (q) => {
45
- return qs.stringify(q, {
46
- format: 'RFC1738',
45
+ return queryString.stringify(q, {
47
46
  arrayFormat: 'comma',
48
47
  encode: false,
49
48
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iiasa/ixmp4-ts",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "description": "typescript client for ixmp4, a data warehouse for scenario analysis",
6
6
  "repository": {
@@ -98,7 +98,7 @@
98
98
  "dependencies": {
99
99
  "axios": "^1.6.2",
100
100
  "danfojs": "file:deps/danfojs/src/danfojs-browser",
101
- "qs": "^6.11.2"
101
+ "query-string": "^8.2.0"
102
102
  },
103
103
  "bundleDependencies": [
104
104
  "danfojs"