express-ext 0.1.31 → 0.1.32

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/lib/index.js CHANGED
@@ -138,7 +138,7 @@ var FollowController = (function () {
138
138
  this.id = (id && id.length > 0 ? id : 'id');
139
139
  this.follow = this.follow.bind(this);
140
140
  this.unfollow = this.unfollow.bind(this);
141
- this.checkfollow = this.checkfollow.bind(this);
141
+ this.checkFollow = this.checkFollow.bind(this);
142
142
  }
143
143
  FollowController.prototype.follow = function (req, res) {
144
144
  var _this = this;
@@ -172,7 +172,7 @@ var FollowController = (function () {
172
172
  return res.status(200).json(count).end();
173
173
  }).catch(function (err) { return http_1.handleError(err, res, _this.log); });
174
174
  };
175
- FollowController.prototype.checkfollow = function (req, res) {
175
+ FollowController.prototype.checkFollow = function (req, res) {
176
176
  var _this = this;
177
177
  var id = req.params.id;
178
178
  var target = req.params.target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-ext",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "express-ext",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -148,7 +148,7 @@ export class FollowController {
148
148
  this.id = (id && id.length > 0 ? id : 'id');
149
149
  this.follow = this.follow.bind(this);
150
150
  this.unfollow = this.unfollow.bind(this);
151
- this.checkfollow = this.checkfollow.bind(this);
151
+ this.checkFollow = this.checkFollow.bind(this);
152
152
  }
153
153
  id: string;
154
154
  follow(req: Request, res: Response): void {
@@ -181,7 +181,7 @@ export class FollowController {
181
181
  return res.status(200).json(count).end();
182
182
  }).catch(err => handleError(err, res, this.log));
183
183
  }
184
- checkfollow(req: Request, res: Response): void {
184
+ checkFollow(req: Request, res: Response): void {
185
185
  const id = req.params.id;
186
186
  const target = req.params.target;
187
187
  if (!id || id.length === 0) {