summaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js')
-rw-r--r--common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js b/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js
deleted file mode 100644
index c1fdd34..0000000
--- a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/schema/operators/bitwise.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*!
- * Module requirements.
- */
-
-var CastError = require('../../error/cast');
-
-/*!
- * ignore
- */
-
-function handleBitwiseOperator(val) {
- var _this = this;
- if (Array.isArray(val)) {
- return val.map(function(v) {
- return _castNumber(_this.path, v);
- });
- } else if (Buffer.isBuffer(val)) {
- return val;
- }
- // Assume trying to cast to number
- return _castNumber(_this.path, val);
-}
-
-/*!
- * ignore
- */
-
-function _castNumber(path, num) {
- var v = Number(num);
- if (isNaN(v)) {
- throw new CastError('number', num, path);
- }
- return v;
-}
-
-module.exports = handleBitwiseOperator;