@iiasa/ixmp4-ts 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/backend.js
CHANGED
@@ -1,27 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
26
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
@@ -37,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
38
15
|
exports.Backend = void 0;
|
39
16
|
const axios_1 = __importDefault(require("axios"));
|
40
|
-
const
|
17
|
+
const qs_1 = __importDefault(require("qs"));
|
41
18
|
const run_1 = require("./data/run");
|
42
19
|
const datapoint_1 = require("./data/iamc/datapoint");
|
43
20
|
const model_1 = require("./data/model");
|
@@ -72,7 +49,7 @@ class Backend {
|
|
72
49
|
timeout: 0,
|
73
50
|
withCredentials: !anonymous,
|
74
51
|
paramsSerializer: (q) => {
|
75
|
-
return
|
52
|
+
return qs_1.default.stringify(q, {
|
76
53
|
format: 'RFC1738',
|
77
54
|
arrayFormat: 'comma',
|
78
55
|
encode: false,
|
package/dist/esm/backend.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.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "typescript client for ixmp4, a data warehouse for scenario analysis",
|
6
6
|
"repository": {
|
@@ -32,6 +32,7 @@
|
|
32
32
|
"types": "./dist/types/index.d.ts",
|
33
33
|
"exports": {
|
34
34
|
".": {
|
35
|
+
"types": "./dist/types/index.d.ts",
|
35
36
|
"import": "./dist/esm/index.js",
|
36
37
|
"require": "./dist/cjs/index.js",
|
37
38
|
"default": "./dist/cjs/index.js"
|