Support Long in mongoose

This commit is contained in:
Alexandre Bodin 2019-08-08 14:35:33 +02:00
parent 4ad7f5bd89
commit 4dcb694a57
3 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ const fs = require('fs');
const url = require('url'); const url = require('url');
const _ = require('lodash'); const _ = require('lodash');
const mongoose = require('mongoose'); const mongoose = require('mongoose');
require('mongoose-long')(mongoose);
const Mongoose = mongoose.Mongoose; const Mongoose = mongoose.Mongoose;
const relations = require('./relations'); const relations = require('./relations');

View File

@ -18,6 +18,7 @@
"lodash": "^4.17.11", "lodash": "^4.17.11",
"mongoose": "^5.5.9", "mongoose": "^5.5.9",
"mongoose-float": "^1.0.4", "mongoose-float": "^1.0.4",
"mongoose-long": "^0.2.1",
"pluralize": "^7.0.0", "pluralize": "^7.0.0",
"strapi-utils": "3.0.0-beta.14" "strapi-utils": "3.0.0-beta.14"
}, },

View File

@ -11899,6 +11899,11 @@ mongoose-legacy-pluralize@1.0.2:
resolved "https://registry.yarnpkg.com/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz#3ba9f91fa507b5186d399fb40854bff18fb563e4" resolved "https://registry.yarnpkg.com/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz#3ba9f91fa507b5186d399fb40854bff18fb563e4"
integrity sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ== integrity sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==
mongoose-long@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/mongoose-long/-/mongoose-long-0.2.1.tgz#2d4f560430338bfbe7129e31a543c497a2d6a4db"
integrity sha512-cbzEW5rShz8MxoTMFUidf13KObGkauA4ILeR3XcIdI7VLzMXwwXy///gLAbN2fD6vYy2ZAMDnCopQrCkNH9VNQ==
mongoose@^5.5.13, mongoose@^5.5.9: mongoose@^5.5.13, mongoose@^5.5.9:
version "5.6.6" version "5.6.6"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.6.6.tgz#78953b9ea91b1bf685ce59d7737100352af627f6" resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.6.6.tgz#78953b9ea91b1bf685ce59d7737100352af627f6"