@iiasa/ixmp4-ts 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/backend.js +2 -3
- package/dist/cjs/data/base.js +1 -1
- package/dist/esm/backend.js +2 -3
- package/dist/esm/data/base.js +1 -1
- package/package.json +2 -2
package/dist/cjs/backend.js
CHANGED
@@ -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
|
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
|
53
|
-
format: 'RFC1738',
|
52
|
+
return query_string_1.default.stringify(q, {
|
54
53
|
arrayFormat: 'comma',
|
55
54
|
encode: false,
|
56
55
|
});
|
package/dist/cjs/data/base.js
CHANGED
@@ -166,7 +166,7 @@ class BaseRepository {
|
|
166
166
|
else {
|
167
167
|
const dfList = pages
|
168
168
|
.map((page) => (0, utils_1.jsonToDf)(page))
|
169
|
-
.filter((df) => df.
|
169
|
+
.filter((df) => df.size !== undefined);
|
170
170
|
return dfd.concat({ dfList: dfList, axis: 0 });
|
171
171
|
}
|
172
172
|
}
|
package/dist/esm/backend.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import axios from 'axios';
|
2
|
-
import
|
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
|
46
|
-
format: 'RFC1738',
|
45
|
+
return queryString.stringify(q, {
|
47
46
|
arrayFormat: 'comma',
|
48
47
|
encode: false,
|
49
48
|
});
|
package/dist/esm/data/base.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@iiasa/ixmp4-ts",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.5",
|
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
|
-
"
|
101
|
+
"query-string": "^8.2.0"
|
102
102
|
},
|
103
103
|
"bundleDependencies": [
|
104
104
|
"danfojs"
|