pssdk 3.0.1-rc.6 → 3.0.1-rc10
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 +2 -3
- package/threadableCI.js +9 -5
- package/worker.js +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pssdk",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-rc10",
|
|
4
4
|
"description": "PSSDK to Integrate with Peoplesoft Component Interfaces via GraalNodeJs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pssdk",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"piscina": "^5.1.4"
|
|
34
|
-
"rfdc": "^1.4.1"
|
|
33
|
+
"piscina": "^5.1.4"
|
|
35
34
|
}
|
|
36
35
|
}
|
package/threadableCI.js
CHANGED
|
@@ -41,13 +41,17 @@ class TreadableCI {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
toJSON() {
|
|
44
|
+
return this.ci.toJSON();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
toObject() {
|
|
44
48
|
return this.pool
|
|
45
|
-
.run({ ci: this.ci }, { name: '
|
|
49
|
+
.run({ ci: this.ci }, { name: 'toObject' });
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
toArray() {
|
|
49
53
|
return this.pool
|
|
50
|
-
.run({ ci: this.ci }, { name: '
|
|
54
|
+
.run({ ci: this.ci }, { name: 'toArray' });
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
setInteractiveMode(params) {
|
|
@@ -73,7 +77,7 @@ class TreadableCI {
|
|
|
73
77
|
return Promise.resolve(params)
|
|
74
78
|
.then(() => this.create(params))
|
|
75
79
|
.then(() => this.save(params))
|
|
76
|
-
.then(() => this.
|
|
80
|
+
.then(() => this.toObject())
|
|
77
81
|
.finally(() => this.cancel());
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -87,7 +91,7 @@ class TreadableCI {
|
|
|
87
91
|
fetch(params) {
|
|
88
92
|
return Promise.resolve(params)
|
|
89
93
|
.then(() => this.get(params))
|
|
90
|
-
.then(() => this.
|
|
94
|
+
.then(() => this.toObject())
|
|
91
95
|
.finally(() => this.cancel());
|
|
92
96
|
}
|
|
93
97
|
|
|
@@ -102,7 +106,7 @@ class TreadableCI {
|
|
|
102
106
|
return Promise.resolve(params)
|
|
103
107
|
.then(() => this.get(params))
|
|
104
108
|
.then(() => this.save(params))
|
|
105
|
-
.then(() => this.
|
|
109
|
+
.then(() => this.toObject())
|
|
106
110
|
.finally(() => this.cancel());
|
|
107
111
|
}
|
|
108
112
|
|
package/worker.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const clone = require('rfdc/default');
|
|
2
|
-
|
|
3
1
|
module.exports = {
|
|
4
2
|
get: ({ ci, params }) => ci.get(params),
|
|
5
3
|
set: ({ ci, params }) => ci.set(params),
|
|
@@ -7,9 +5,8 @@ module.exports = {
|
|
|
7
5
|
create: ({ ci, params }) => ci.create(params),
|
|
8
6
|
save: ({ ci, params }) => ci.save(params),
|
|
9
7
|
cancel: ({ ci }) => ci.cancel(),
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
toObject: ({ ci }) => JSON.parse(JSON.stringify(ci.toProxyObject())),
|
|
9
|
+
toArray: ({ ci }) => JSON.parse(JSON.stringify(ci.toProxyArrayOfProxyObjects())),
|
|
12
10
|
execute: ({ ci, methodName, params }) => ci.execute(methodName, params),
|
|
13
11
|
insert: ({ ci, params }) => ci.create(params).save(params),
|
|
14
12
|
};
|
|
15
|
-
|