ti2-tourplan 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/index.js +18 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -85,23 +85,24 @@ class Plugin {
85
85
  data = data.replace(xmlOptions.dtd.name, `Request SYSTEM "${xmlOptions.dtd.name}"`);
86
86
  let replyObj;
87
87
  let errorStr;
88
- if (this.xmlProxyUrl) {
89
- // use pyfilematch xmlproxy
90
- try {
91
- replyObj = R.path(['data'], await axios({
92
- method: 'post',
93
- url: `${this.xmlProxyUrl}/xmlproxy`,
94
- data: {
95
- url: endpoint,
96
- data,
97
- headers: getHeaders({ length: `${data.length}` }),
98
- },
99
- }));
100
- } catch (err) {
101
- console.log('error in calling pyfilematch xmlproxy', err);
102
- errorStr = `error in calling pyfilematch xmlproxy: ${err}`;
103
- }
104
- }
88
+ // can't use proxy because of the static IP thing, darn
89
+ // if (this.xmlProxyUrl) {
90
+ // // use pyfilematch xmlproxy
91
+ // try {
92
+ // replyObj = R.path(['data'], await axios({
93
+ // method: 'post',
94
+ // url: `${this.xmlProxyUrl}/xmlproxy`,
95
+ // data: {
96
+ // url: endpoint,
97
+ // data,
98
+ // headers: getHeaders({ length: `${data.length}` }),
99
+ // },
100
+ // }));
101
+ // } catch (err) {
102
+ // console.log('error in calling pyfilematch xmlproxy', err);
103
+ // errorStr = `error in calling pyfilematch xmlproxy: ${err}`;
104
+ // }
105
+ // }
105
106
  if (!replyObj) {
106
107
  // in case of error /xmlproxy, fallback to call tourplan directly
107
108
  // and then use pyfilematch xml2json to parse the xml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {