pssdk 3.1.0-rc1 → 4.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/threadableCI.js +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pssdk",
3
- "version": "3.1.0-rc1",
3
+ "version": "4.0.0",
4
4
  "description": "PSSDK to Integrate with Peoplesoft Component Interfaces via GraalNodeJs",
5
5
  "keywords": [
6
6
  "pssdk",
package/threadableCI.js CHANGED
@@ -34,10 +34,19 @@ class TreadableCI {
34
34
  .then(() => this);
35
35
  }
36
36
 
37
+ /**
38
+ * Invokes a non-standard method defined on the CI.
39
+ *
40
+ * Unlike the other methods, this one does not resolve to the CI, so it is not chainable.
41
+ *
42
+ * @param methodName The name of the non-standard method.
43
+ * @param params Optional. Data to set on the CI before invoking the method.
44
+ * @return a promise of whatever the method returns: a boolean, number, string, or null.
45
+ * @throws PssdkException If the method is unsupported or fails to invoke.
46
+ */
37
47
  execute(methodName, params) {
38
48
  return this.pool
39
- .run({ ci: this.ci, methodName, params }, { name: 'execute' })
40
- .then(() => this);
49
+ .run({ ci: this.ci, methodName, params }, { name: 'execute' });
41
50
  }
42
51
 
43
52
  toJSON() {
@@ -66,6 +75,7 @@ class TreadableCI {
66
75
  close() {
67
76
  return this.ci.close();
68
77
  }
78
+
69
79
  /*********************************/
70
80
  /******** HELPER METHODS *********/
71
81
  /*********************************/