rts2003-so 1.4.1 → 1.4.2

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 (3) hide show
  1. package/README.md +3 -6
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -61,12 +61,9 @@ const result = sso.userDelete({
61
61
  });
62
62
 
63
63
  // user get user for api
64
- const result = sso.getOne({
65
- "email": "string"
66
- });
67
-
68
- const result = sso.getOne({
69
- "id": "string"
64
+ const result = sso.userGetOne({
65
+ "email": "string",
66
+ "id": 0
70
67
  });
71
68
 
72
69
  // user update password for api
package/index.js CHANGED
@@ -140,8 +140,9 @@ class SingleSignOn {
140
140
  }
141
141
  }
142
142
 
143
- async getOne(dataToSend = {
144
- email
143
+ async userGetOne(dataToSend = {
144
+ email,
145
+ id
145
146
  }) {
146
147
  try {
147
148
  if (!this.endpoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rts2003-so",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "RTS2003 SO is service order, manage user, like re-token, logout, register, update, delete, update password, get user.",
5
5
  "main": "index.js",
6
6
  "scripts": {