catto.js 1.0.2 → 1.0.3

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/AuthClient.js +4 -4
  2. package/package.json +1 -1
package/AuthClient.js CHANGED
@@ -56,7 +56,7 @@ module.exports = class {
56
56
  } catch(e) {
57
57
  return !1;
58
58
  }
59
- if (result.response.statusCode == 200) {
59
+ if (result.response.status == 200) {
60
60
  this.writeToken(result.body);
61
61
  return !0;
62
62
  } else {
@@ -83,7 +83,7 @@ module.exports = class {
83
83
  } catch(e) {
84
84
  return !1;
85
85
  }
86
- if (result.response.statusCode == 200) {
86
+ if (result.response.status == 200) {
87
87
  this.writeToken(result.body);
88
88
  return !0;
89
89
  } else {
@@ -109,7 +109,7 @@ module.exports = class {
109
109
  } catch(e) {
110
110
  return !1;
111
111
  }
112
- if (result.response.statusCode == 200) {
112
+ if (result.response.status == 200) {
113
113
  this.options.accessToken = "";
114
114
  this.options.refreshToken = "";
115
115
  return !0;
@@ -131,7 +131,7 @@ module.exports = class {
131
131
  } catch(e) {
132
132
  return !1;
133
133
  }
134
- if (result.response.statusCode == 200) {
134
+ if (result.response.status == 200) {
135
135
  this.user = new User(result.body);
136
136
  return !0;
137
137
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {