@js4cytoscape/ndex-client 0.4.3-alpha.10 → 0.4.3-alpha.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@js4cytoscape/ndex-client",
3
- "version": "0.4.3-alpha.10",
3
+ "version": "0.4.3-alpha.12",
4
4
  "description": "NDEx client library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "watch:js": "webpack --watch",
21
21
  "build": "webpack --mode=development",
22
22
  "build-prod": "webpack --mode=production",
23
- "test": "nyc mocha"
23
+ "test": "nyc mocha --require @babel/register"
24
24
  },
25
25
  "author": "Jing Chen",
26
26
  "license": "MIT",
@@ -28,9 +28,18 @@
28
28
  "node": ">=12.16.1"
29
29
  },
30
30
  "dependencies": {
31
- "axios": "^1.4.0"
31
+ "axios": "^1.6.8"
32
32
  },
33
33
  "devDependencies": {
34
- "@microsoft/tsdoc": "^0.14.2"
34
+ "@microsoft/tsdoc": "^0.14.2",
35
+ "@babel/core": "^7.14.6",
36
+ "@babel/preset-env": "^7.14.5",
37
+ "@babel/register": "^7.14.5",
38
+ "babel-plugin-istanbul": "^6.0.0"
39
+ },
40
+ "babel": {
41
+ "presets": [
42
+ "@babel/preset-env"
43
+ ]
35
44
  }
36
45
  }
package/src/CyNDEx.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const CY_REST_BASE_URL = 'http://127.0.0.1';
2
2
 
3
- const axios = require('axios');
3
+ import { default as axios } from 'axios';
4
4
 
5
5
  class CyNDEx {
6
6
 
@@ -175,4 +175,4 @@ class CyNDEx {
175
175
  }
176
176
  }
177
177
 
178
- module.exports = { CyNDEx };
178
+ export default CyNDEx ;
package/src/NDEx.js CHANGED
@@ -1,4 +1,4 @@
1
- const axios = require('axios');
1
+ import { default as axios } from 'axios';
2
2
 
3
3
  const CX1_HEADER = {
4
4
  numberVerification: [{
@@ -861,4 +861,5 @@ class NDEx {
861
861
  return this._httpPostV3ProtectedObj('users/signin', undefined, {idToken: idToken});
862
862
  }
863
863
  }
864
- module.exports = { NDEx };
864
+
865
+ export default NDEx ;
package/src/index.js CHANGED
@@ -1,4 +1,2 @@
1
- let NDEx = require('./NDEx.js').NDEx;
2
- let CyNDEx = require('./CyNDEx.js').CyNDEx;
3
-
4
- module.exports = { NDEx, CyNDEx };
1
+ export { default as NDEx } from './NDEx.js';
2
+ export { default as CyNDEx } from './CyNDEx.js';