Skip to content

Commit

Permalink
fix: typescript transpilation / assertion error in 2.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Pocklington committed May 6, 2019
1 parent 96bf261 commit bbfc2fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/response/get/GetResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ var getSize = require("./../../support/getSize");
* @augments ModelResponse
* @private
*/
var GetResponse = module.exports = function GetResponse(model, paths,
isJSONGraph,
isProgressive,
forceCollect) {
var GetResponse = function GetResponse(model, paths, isJSONGraph,
isProgressive, forceCollect) {
this.model = model;
this.currentRemainingPaths = paths;
this.isJSONGraph = isJSONGraph || false;
Expand Down Expand Up @@ -79,3 +77,5 @@ GetResponse.prototype._subscribe = function _subscribe(observer) {
return getRequestCycle(this, model, results,
observer, errors, 1);
};

module.exports = GetResponse;
7 changes: 4 additions & 3 deletions lib/response/set/SetResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ var setRequestCycle = require("./setRequestCycle");
* @augments ModelResponse
* @private
*/
var SetResponse = module.exports = function SetResponse(model, args,
isJSONGraph,
isProgressive) {
var SetResponse = function SetResponse(model, args, isJSONGraph,
isProgressive) {

// The response properties.
this._model = model;
Expand Down Expand Up @@ -106,3 +105,5 @@ SetResponse.prototype.progressively = function progressively() {
return new SetResponse(this._model, this._initialArgs,
this._isJSONGraph, true);
};

module.exports = SetResponse;

0 comments on commit bbfc2fc

Please sign in to comment.