aboutsummaryrefslogtreecommitdiffstats
path: root/dgbuilder/dgeflows/node_modules/body-parser/index.js
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 14:15:05 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 14:16:18 -0500
commitd9642fafddbaa28789339e1989c4583af003a193 (patch)
tree0442af1ba4e793433fac5871dd8e69c98a056446 /dgbuilder/dgeflows/node_modules/body-parser/index.js
parent33d814f236d4c3e4246851c810bdbbab5090abbb (diff)
Fix license issues
Fix license definition in package.json files Remove obsolete dgbuilder from SDNC (dgbuilder now in CCSDK) Change-Id: Iee0bf9468f081c5957eae2e873efbea6fb6be354 Issue-ID: SDNC-489 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com> Former-commit-id: 4e104ac4183dd46124753c4571939e765a124508
Diffstat (limited to 'dgbuilder/dgeflows/node_modules/body-parser/index.js')
-rw-r--r--dgbuilder/dgeflows/node_modules/body-parser/index.js94
1 files changed, 0 insertions, 94 deletions
diff --git a/dgbuilder/dgeflows/node_modules/body-parser/index.js b/dgbuilder/dgeflows/node_modules/body-parser/index.js
deleted file mode 100644
index a47ef89b..00000000
--- a/dgbuilder/dgeflows/node_modules/body-parser/index.js
+++ /dev/null
@@ -1,94 +0,0 @@
-/*!
- * body-parser
- * Copyright(c) 2014 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-/**
- * Module dependencies.
- */
-
-var deprecate = require('depd')('body-parser')
-var fs = require('fs')
-var path = require('path')
-
-/**
- * @typedef Parsers
- * @type {function}
- * @property {function} json
- * @property {function} raw
- * @property {function} text
- * @property {function} urlencoded
- */
-
-/**
- * Module exports.
- * @type {Parsers}
- */
-
-exports = module.exports = deprecate.function(bodyParser,
- 'bodyParser: use individual json/urlencoded middlewares')
-
-/**
- * Path to the parser modules.
- */
-
-var parsersDir = path.join(__dirname, 'lib', 'types')
-
-/**
- * Auto-load bundled parsers with getters.
- */
-
-fs.readdirSync(parsersDir).forEach(function onfilename(filename) {
- if (!/\.js$/.test(filename)) return
-
- var loc = path.resolve(parsersDir, filename)
- var mod
- var name = path.basename(filename, '.js')
-
- function load() {
- if (mod) {
- return mod
- }
-
- return mod = require(loc)
- }
-
- Object.defineProperty(exports, name, {
- configurable: true,
- enumerable: true,
- get: load
- })
-})
-
-/**
- * Create a middleware to parse json and urlencoded bodies.
- *
- * @param {object} [options]
- * @return {function}
- * @deprecated
- * @api public
- */
-
-function bodyParser(options){
- var opts = {}
-
- options = options || {}
-
- // exclude type option
- for (var prop in options) {
- if ('type' !== prop) {
- opts[prop] = options[prop]
- }
- }
-
- var _urlencoded = exports.urlencoded(opts)
- var _json = exports.json(opts)
-
- return function bodyParser(req, res, next) {
- _json(req, res, function(err){
- if (err) return next(err);
- _urlencoded(req, res, next);
- });
- }
-}