rts2003-so 1.1.3 → 1.1.4
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const fetch =
|
|
1
|
+
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
|
|
2
2
|
|
|
3
3
|
const RTS2003_SO_ENDPOINT = process.env.RTS2003_SO_ENDPOINT || '';
|
|
4
4
|
const RTS2003_SO_SECRET_KEY = process.env.RTS2003_SO_SECRET_KEY || '';
|
|
5
5
|
|
|
6
6
|
class SingleSignOn {
|
|
7
|
-
constructor(RTS2003_SO_ENDPOINT, RTS2003_SO_SECRET_KEY) {
|
|
8
|
-
this.endpoint =
|
|
9
|
-
this.secretKey =
|
|
7
|
+
constructor(endpoint = RTS2003_SO_ENDPOINT, secretKey = RTS2003_SO_SECRET_KEY) {
|
|
8
|
+
this.endpoint = endpoint;
|
|
9
|
+
this.secretKey = secretKey;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
async userRegister(dataToSend = {
|