profoundjs 6.2.0 → 6.3.0

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.
@@ -7,13 +7,13 @@
7
7
 
8
8
  \*****************************************************************************/
9
9
 
10
- function SOAPClientParameters () {
10
+ function SOAPClientParameters() {
11
11
  var _pl = [];
12
- this.add = function (name, value) {
12
+ this.add = function(name, value) {
13
13
  _pl[name] = value;
14
14
  return this;
15
15
  };
16
- this.toXml = function () {
16
+ this.toXml = function() {
17
17
  var xml = "";
18
18
  for (var p in _pl) {
19
19
  switch (typeof (_pl[p])) {
@@ -30,7 +30,7 @@ function SOAPClientParameters () {
30
30
  return xml;
31
31
  };
32
32
  }
33
- SOAPClientParameters._serialize = function (o) {
33
+ SOAPClientParameters._serialize = function(o) {
34
34
  var s = "";
35
35
  var p;
36
36
  switch (typeof (o)) {
@@ -112,12 +112,12 @@ SOAPClientParameters._serialize = function (o) {
112
112
  return s;
113
113
  };
114
114
 
115
- function SOAPClient () {}
115
+ function SOAPClient() {}
116
116
 
117
117
  SOAPClient.username = null;
118
118
  SOAPClient.password = null;
119
119
 
120
- SOAPClient.invoke = function (url, method, parameters, async, callback) {
120
+ SOAPClient.invoke = function(url, method, parameters, async, callback) {
121
121
  if (async) {
122
122
  SOAPClient._loadWsdl(url, method, parameters, async, callback);
123
123
  }
@@ -130,7 +130,7 @@ SOAPClient.invoke = function (url, method, parameters, async, callback) {
130
130
  SOAPClient_cacheWsdl = [];
131
131
 
132
132
  // private: invoke async
133
- SOAPClient._loadWsdl = function (url, method, parameters, async, callback) {
133
+ SOAPClient._loadWsdl = function(url, method, parameters, async, callback) {
134
134
  // load from cache?
135
135
  var wsdl = SOAPClient_cacheWsdl[url];
136
136
  if (wsdl + "" != "" && wsdl + "" != "undefined") {
@@ -147,7 +147,7 @@ SOAPClient._loadWsdl = function (url, method, parameters, async, callback) {
147
147
 
148
148
  // xmlHttp.open("GET", url + "?wsdl", async);
149
149
  if (async) {
150
- xmlHttp.onreadystatechange = function () {
150
+ xmlHttp.onreadystatechange = function() {
151
151
  if (xmlHttp.readyState == 4) {
152
152
  SOAPClient._onLoadWsdl(url, method, parameters, async, callback, xmlHttp);
153
153
  }
@@ -159,12 +159,12 @@ SOAPClient._loadWsdl = function (url, method, parameters, async, callback) {
159
159
  return SOAPClient._onLoadWsdl(url, method, parameters, async, callback, xmlHttp);
160
160
  }
161
161
  };
162
- SOAPClient._onLoadWsdl = function (url, method, parameters, async, callback, req) {
162
+ SOAPClient._onLoadWsdl = function(url, method, parameters, async, callback, req) {
163
163
  var wsdl = req.responseXML;
164
164
  SOAPClient_cacheWsdl[url] = wsdl; // save a copy in cache
165
165
  return SOAPClient._sendSoapRequest(url, method, parameters, async, callback, wsdl);
166
166
  };
167
- SOAPClient._sendSoapRequest = function (url, method, parameters, async, callback, wsdl) {
167
+ SOAPClient._sendSoapRequest = function(url, method, parameters, async, callback, wsdl) {
168
168
  // get namespace
169
169
  var ns = (wsdl.documentElement.attributes["targetNamespace"] + "" == "undefined") ? wsdl.documentElement.attributes.getNamedItem("targetNamespace").nodeValue : wsdl.documentElement.attributes["targetNamespace"].value;
170
170
 
@@ -195,7 +195,7 @@ SOAPClient._sendSoapRequest = function (url, method, parameters, async, callback
195
195
  xmlHttp.setRequestHeader("SOAPAction", soapaction);
196
196
  xmlHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
197
197
  if (async) {
198
- xmlHttp.onreadystatechange = function () {
198
+ xmlHttp.onreadystatechange = function() {
199
199
  if (xmlHttp.readyState == 4) {
200
200
  SOAPClient._onSendSoapRequest(method, async, callback, wsdl, xmlHttp);
201
201
  }
@@ -207,7 +207,7 @@ SOAPClient._sendSoapRequest = function (url, method, parameters, async, callback
207
207
  }
208
208
  };
209
209
 
210
- SOAPClient._onSendSoapRequest = function (method, async, callback, wsdl, req) {
210
+ SOAPClient._onSendSoapRequest = function(method, async, callback, wsdl, req) {
211
211
  var o = null;
212
212
  var nd = SOAPClient._getElementsByTagName(req.responseXML, method + "Result");
213
213
  if (nd.length == 0) {
@@ -233,11 +233,11 @@ SOAPClient._onSendSoapRequest = function (method, async, callback, wsdl, req) {
233
233
  return o;
234
234
  }
235
235
  };
236
- SOAPClient._soapresult2object = function (node, wsdl) {
236
+ SOAPClient._soapresult2object = function(node, wsdl) {
237
237
  var wsdlTypes = SOAPClient._getTypesFromWsdl(wsdl);
238
238
  return SOAPClient._node2object(node, wsdlTypes);
239
239
  };
240
- SOAPClient._node2object = function (node, wsdlTypes) {
240
+ SOAPClient._node2object = function(node, wsdlTypes) {
241
241
  var i;
242
242
  // null node
243
243
  if (node == null) {
@@ -274,7 +274,7 @@ SOAPClient._node2object = function (node, wsdlTypes) {
274
274
  return l;
275
275
  }
276
276
  };
277
- SOAPClient._extractValue = function (node, wsdlTypes) {
277
+ SOAPClient._extractValue = function(node, wsdlTypes) {
278
278
  var value = node.nodeValue;
279
279
  switch (SOAPClient._getTypeFromWsdl(node.parentNode.nodeName, wsdlTypes).toLowerCase()) {
280
280
  case "s:boolean":
@@ -302,7 +302,7 @@ SOAPClient._extractValue = function (node, wsdlTypes) {
302
302
  return (value != null) ? value + "" : "";
303
303
  }
304
304
  };
305
- SOAPClient._getTypesFromWsdl = function (wsdl) {
305
+ SOAPClient._getTypesFromWsdl = function(wsdl) {
306
306
  var wsdlTypes = [];
307
307
  // IE
308
308
  var ell = wsdl.getElementsByTagName("s:element");
@@ -326,12 +326,12 @@ SOAPClient._getTypesFromWsdl = function (wsdl) {
326
326
  }
327
327
  return wsdlTypes;
328
328
  };
329
- SOAPClient._getTypeFromWsdl = function (elementname, wsdlTypes) {
329
+ SOAPClient._getTypeFromWsdl = function(elementname, wsdlTypes) {
330
330
  var type = wsdlTypes[elementname] + "";
331
331
  return (type == "undefined") ? "" : type;
332
332
  };
333
333
  // private: utils
334
- SOAPClient._getElementsByTagName = function (document, tagName) {
334
+ SOAPClient._getElementsByTagName = function(document, tagName) {
335
335
  try {
336
336
  // trying to get node omitting any namespaces (latest versions of MSXML.XMLDocument)
337
337
  return document.selectNodes(".//*[local-name()=\"" + tagName + "\"]");
@@ -342,7 +342,7 @@ SOAPClient._getElementsByTagName = function (document, tagName) {
342
342
  return document.getElementsByTagName(tagName);
343
343
  };
344
344
  // private: xmlhttp factory
345
- SOAPClient._getXmlHttp = function () {
345
+ SOAPClient._getXmlHttp = function() {
346
346
  try {
347
347
  if (window.XMLHttpRequest) {
348
348
  var req = new XMLHttpRequest();
@@ -350,7 +350,7 @@ SOAPClient._getXmlHttp = function () {
350
350
  if (req.readyState == null) {
351
351
  req.readyState = 1;
352
352
  req.addEventListener("load",
353
- function () {
353
+ function() {
354
354
  req.readyState = 4;
355
355
  if (typeof req.onreadystatechange == "function") {
356
356
  req.onreadystatechange();
@@ -368,7 +368,7 @@ SOAPClient._getXmlHttp = function () {
368
368
  }
369
369
  throw new Error("Your browser does not support XmlHttp objects");
370
370
  };
371
- SOAPClient._getXmlHttpProgID = function () {
371
+ SOAPClient._getXmlHttpProgID = function() {
372
372
  if (SOAPClient._getXmlHttpProgID.progid) {
373
373
  return SOAPClient._getXmlHttpProgID.progid;
374
374
  }
@@ -387,7 +387,7 @@ SOAPClient._getXmlHttpProgID = function () {
387
387
  throw new Error("Could not find an installed XML parser");
388
388
  };
389
389
 
390
- SOAPClient._toBase64 = function (input) {
390
+ SOAPClient._toBase64 = function(input) {
391
391
  var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
392
392
  var output = "";
393
393
  var chr1, chr2, chr3;
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference path="./profoundjs.d.ts" />
2
2
 
3
3
  const fs = require("fs");
4
- const path = require('path');
4
+ const path = require("path");
5
5
 
6
6
  var loaded = false;
7
7
  var exists = false;
@@ -33,7 +33,7 @@ else {
33
33
  filename = module.constructor._originalResolveFilename(request, paths);
34
34
  }
35
35
  return filename;
36
- }
36
+ };
37
37
  var jse = JSON.parse(fs.readFileSync(__dirname + "/profound.jse", "utf8"));
38
38
  process.require = require;
39
39
  var loader = new require("pjsloader")();
@@ -44,7 +44,7 @@ else {
44
44
  while (name.includes(path.sep)) name = name.replace(path.sep, "/");
45
45
  }
46
46
  return module._compile(loader.Load(jse[name]), filename);
47
- }
47
+ };
48
48
 
49
49
  // Require any of the children, but only the 1st time
50
50
  if (!loaded) {
@@ -56,7 +56,7 @@ else {
56
56
  require(x);
57
57
  }
58
58
  }
59
- profound.utils.requireDirs("plugins", profound.dir, profound.utils.addPlugin); // load custom plugins
59
+ profound.utils.requireDirs("plugins", profound.dir, profound.utils.addPlugin); // load custom plugins
60
60
  }
61
61
  }
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "profoundjs",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "min-profoundui-version": "6.20.0",
5
5
  "description": "Profound.js Framework and Server",
6
6
  "keywords": [
@@ -93,6 +93,7 @@
93
93
  "multer": "^1.4.5-lts.1",
94
94
  "mysql": "^2.17.1",
95
95
  "needle": "^3.1.0",
96
+ "nocache": "^3.0.4",
96
97
  "node-machine-id": "^1.1.12",
97
98
  "node-sql-parser": "^4.6.6",
98
99
  "p-iteration": "^1.1.8",