curtain-web-api 1.0.6 → 1.0.7

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.
@@ -6,6 +6,8 @@
6
6
  <excludeFolder url="file://$MODULE_DIR$/temp" />
7
7
  <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
8
  <excludeFolder url="file://$MODULE_DIR$/node_modules" />
9
+ <excludeFolder url="file://$MODULE_DIR$/build" />
10
+ <excludeFolder url="file://$MODULE_DIR$/curtainuser" />
9
11
  </content>
10
12
  <orderEntry type="inheritedJdk" />
11
13
  <orderEntry type="sourceFolder" forTests="false" />
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Curtain Web API
1
+ # Curtain Web API
2
2
  ---
3
3
 
4
4
  This is a node.js package used to interact with the Curtain Web REST API.
@@ -116,6 +116,7 @@ class CurtainWebAPI {
116
116
  this.user.access_token = response.data.access;
117
117
  this.user.refresh_token = response.data.refresh;
118
118
  this.user.loginStatus = true;
119
+ this.user.saveIntoDB().then();
119
120
  return this.getUserInfo();
120
121
  });
121
122
  }
@@ -163,6 +164,7 @@ class CurtainWebAPI {
163
164
  this.user.access_token = response.data.access;
164
165
  this.user.refresh_token = response.data.refresh;
165
166
  this.user.loginStatus = true;
167
+ this.user.saveIntoDB().then();
166
168
  return response;
167
169
  }).then((response) => {
168
170
  return this.getUserInfo();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -94,6 +94,7 @@ export class CurtainWebAPI {
94
94
  this.user.access_token = response.data.access;
95
95
  this.user.refresh_token = response.data.refresh;
96
96
  this.user.loginStatus = true;
97
+ this.user.saveIntoDB().then();
97
98
  return this.getUserInfo();
98
99
  });
99
100
  }
@@ -147,6 +148,7 @@ export class CurtainWebAPI {
147
148
  this.user.access_token = response.data.access;
148
149
  this.user.refresh_token = response.data.refresh;
149
150
  this.user.loginStatus = true;
151
+ this.user.saveIntoDB().then();
150
152
  return response;
151
153
  }).then((response) => {
152
154
  return this.getUserInfo();