@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.
@@ -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 qs = __importStar(require("qs"));
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 qs.stringify(q, {
52
+ return qs_1.default.stringify(q, {
76
53
  format: 'RFC1738',
77
54
  arrayFormat: 'comma',
78
55
  encode: false,
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import * as qs from 'qs';
2
+ import qs from 'qs';
3
3
  import { RunRepository } from './data/run';
4
4
  import { DataPointRepository } from './data/iamc/datapoint';
5
5
  import { ModelRepository } from './data/model';
@@ -73,7 +73,6 @@
73
73
  "@babel/plugin-transform-runtime": "^7.12.10",
74
74
  "@babel/preset-env": "^7.10.4",
75
75
  "@types/chai": "^4.2.19",
76
- "@types/mocha": "^8.2.2",
77
76
  "@types/node": "^15.12.5",
78
77
  "@types/papaparse": "^5.2.6",
79
78
  "@types/plotly.js-dist-min": "^2.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iiasa/ixmp4-ts",
3
- "version": "0.1.0",
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"