From 48e250190ab49cac282d4918b013a7532376a565 Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Sun, 4 Feb 2018 18:04:02 +0100 Subject: [PATCH] Upgrades nodejs samples to v0.3 data access --- .../json/product-catalog/nodejs-jquery-bootstrap-app/app.js | 2 +- .../product-catalog/nodejs-jquery-bootstrap-app/package.json | 4 ++-- .../features/json/todo-app/nodejs-express4-rest-api/app.js | 2 +- .../json/todo-app/nodejs-express4-rest-api/package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/app.js b/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/app.js index ce13a5990c..06c5e420d9 100644 --- a/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/app.js +++ b/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/app.js @@ -10,7 +10,7 @@ app.use(express.static('wwwroot')); app.use(bodyParser.text({ type: 'application/json' })) app.use(function (req, res, next) { - req.sql = tediousExpress(req, config.get('connection')); + req.sql = tediousExpress(config.get('connection')); next(); }); diff --git a/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/package.json b/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/package.json index 7b5a42f977..34c586efed 100644 --- a/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/package.json +++ b/samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/package.json @@ -12,10 +12,10 @@ }, "dependencies": { "body-parser": "^1.18.2", - "config": "^1.29.2", + "config": "^1.29.4", "debug": "^2.6.9", "express": "^4.16.2", - "express4-tedious": "^0.2.0", + "express4-tedious": "^0.3.0", "tedious": "^1.15.0" } } diff --git a/samples/features/json/todo-app/nodejs-express4-rest-api/app.js b/samples/features/json/todo-app/nodejs-express4-rest-api/app.js index f4da4e71ef..c3a138a261 100644 --- a/samples/features/json/todo-app/nodejs-express4-rest-api/app.js +++ b/samples/features/json/todo-app/nodejs-express4-rest-api/app.js @@ -5,7 +5,7 @@ var tediousExpress = require('express4-tedious'); var app = express(); app.use(function (req, res, next) { - req.sql = tediousExpress(req, config.get('connection')); + req.sql = tediousExpress(config.get('connection')); next(); }); diff --git a/samples/features/json/todo-app/nodejs-express4-rest-api/package.json b/samples/features/json/todo-app/nodejs-express4-rest-api/package.json index d720d78e61..c777734cd5 100644 --- a/samples/features/json/todo-app/nodejs-express4-rest-api/package.json +++ b/samples/features/json/todo-app/nodejs-express4-rest-api/package.json @@ -16,6 +16,6 @@ "debug": "^2.2.0", "express": "^4.14.0", "tedious": "^1.14.0", - "express4-tedious": "^0.1.0" + "express4-tedious": "^0.3.0" } }