Skip to content

Commit

Permalink
Fix typo in variable name setPrototypeOf
Browse files Browse the repository at this point in the history
closes #3266
  • Loading branch information
asafdav2 authored and dougwilson committed Apr 1, 2017
1 parent 347d4db commit c087a45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var deprecate = require('depd')('express');
var flatten = require('array-flatten');
var merge = require('utils-merge');
var resolve = require('path').resolve;
var setPrototyeOf = require('setprototypeof')
var setPrototypeOf = require('setprototypeof')
var slice = Array.prototype.slice;

/**
Expand Down Expand Up @@ -95,10 +95,10 @@ app.defaultConfiguration = function defaultConfiguration() {
}

// inherit protos
setPrototyeOf(this.request, parent.request)
setPrototyeOf(this.response, parent.response)
setPrototyeOf(this.engines, parent.engines)
setPrototyeOf(this.settings, parent.settings)
setPrototypeOf(this.request, parent.request)
setPrototypeOf(this.response, parent.response)
setPrototypeOf(this.engines, parent.engines)
setPrototypeOf(this.settings, parent.settings)
});

// setup locals
Expand Down Expand Up @@ -228,8 +228,8 @@ app.use = function use(fn) {
router.use(path, function mounted_app(req, res, next) {
var orig = req.app;
fn.handle(req, res, function (err) {
setPrototyeOf(req, orig.request)
setPrototyeOf(res, orig.response)
setPrototypeOf(req, orig.request)
setPrototypeOf(res, orig.response)
next(err);
});
});
Expand Down
6 changes: 3 additions & 3 deletions lib/middleware/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @private
*/

var setPrototyeOf = require('setprototypeof')
var setPrototypeOf = require('setprototypeof')

/**
* Initialization middleware, exposing the
Expand All @@ -32,8 +32,8 @@ exports.init = function(app){
res.req = req;
req.next = next;

setPrototyeOf(req, app.request)
setPrototyeOf(res, app.response)
setPrototypeOf(req, app.request)
setPrototypeOf(res, app.response)

res.locals = res.locals || Object.create(null);

Expand Down

0 comments on commit c087a45

Please sign in to comment.