mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Bump async to 3.2.2 (#7618)
[all] Upgrade async package to 3.2.2 - [web] Fix usages of async library - [project-history] Fix usage of async library - [third-party-references] Fix usage of async library - [track-changes] Fix usage of async library Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: June Kelly <june.kelly@overleaf.com> GitOrigin-RevId: 90cf132f13da53b2bd6690ee3cdf4d6c8563ecd2
This commit is contained in:
committed by
Copybot
co-authored by
June Kelly
parent
2dce428d89
commit
d55f4dfafa
@@ -19,7 +19,7 @@
|
||||
"@overleaf/logger": "^3.1.0",
|
||||
"@overleaf/metrics": "^4.0.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^3.2.0",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "4.17.1",
|
||||
"mongodb": "^3.6.0"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"@overleaf/metrics": "^4.0.0",
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "3.2.0",
|
||||
"async": "3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"diskusage": "^1.1.3",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"@overleaf/logger": "^3.1.0",
|
||||
"@overleaf/metrics": "^4.0.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.6.3",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"express": "^4.17.1",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/object-persistor": "^1.0.1",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.6.3",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"celebrate": "^13.0.4",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/redis-wrapper": "^2.0.1",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.5.0",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"diff-match-patch": "https://github.com/overleaf/diff-match-patch/archive/89805f9c671a77a263fc53461acd62aa7498f688.tar.gz",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@overleaf/logger": "^3.1.0",
|
||||
"@overleaf/metrics": "^4.0.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.6.3",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"express": "4.17.1",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/redis-wrapper": "^2.0.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^0.9.0",
|
||||
"async": "^3.2.2",
|
||||
"base64id": "0.1.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"@overleaf/metrics": "^4.0.0",
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.6.3",
|
||||
"async": "^3.2.2",
|
||||
"body-parser": "^1.19.0",
|
||||
"bunyan": "^1.8.15",
|
||||
"express": "^4.17.1",
|
||||
|
||||
@@ -591,11 +591,13 @@ module.exports = UpdatesManager = {
|
||||
}
|
||||
// repeatedly get updates and pass them through the summariser to get an final output with user info
|
||||
return async.whilst(
|
||||
() =>
|
||||
cb =>
|
||||
// console.log "checking iterator.done", iterator.done()
|
||||
summarizedUpdates.length < options.min_count &&
|
||||
!iterator.done(),
|
||||
|
||||
cb(
|
||||
null,
|
||||
summarizedUpdates.length < options.min_count &&
|
||||
!iterator.done()
|
||||
),
|
||||
cb =>
|
||||
iterator.next(function (err, partialUpdates) {
|
||||
if (err != null) {
|
||||
@@ -651,7 +653,7 @@ module.exports = UpdatesManager = {
|
||||
const accumulatedUserIds = new Set()
|
||||
|
||||
async.whilst(
|
||||
() => !iterator.done(),
|
||||
cb => cb(null, !iterator.done()),
|
||||
|
||||
cb =>
|
||||
iterator.next((err, updatesFromASinglePack) => {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@overleaf/o-error": "^3.4.0",
|
||||
"@overleaf/redis-wrapper": "^2.0.0",
|
||||
"@overleaf/settings": "^3.0.0",
|
||||
"async": "^2.6.3",
|
||||
"async": "^3.2.2",
|
||||
"aws-sdk": "^2.643.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"bson": "^1.1.5",
|
||||
|
||||
@@ -72,7 +72,7 @@ module.exports = ExportsHandler = {
|
||||
// TODO: when we update async, signature will change from (cb, results) to (results, cb)
|
||||
rootDoc: [
|
||||
'project',
|
||||
(cb, results) =>
|
||||
(results, cb) =>
|
||||
ProjectRootDocManager.ensureRootDocumentIsValid(
|
||||
project_id,
|
||||
function (error) {
|
||||
|
||||
@@ -778,7 +778,7 @@ const ProjectController = {
|
||||
},
|
||||
brandVariation: [
|
||||
'project',
|
||||
(cb, results) => {
|
||||
(results, cb) => {
|
||||
if (
|
||||
(results.project != null
|
||||
? results.project.brandVariationId
|
||||
|
||||
@@ -95,7 +95,7 @@ module.exports = ProjectRootDocManager = {
|
||||
let doc = null
|
||||
|
||||
return async.until(
|
||||
() => doc != null || files.length === 0,
|
||||
cb => cb(null, doc != null || files.length === 0),
|
||||
function (cb) {
|
||||
const file = files.shift()
|
||||
return fs.readFile(
|
||||
|
||||
@@ -62,7 +62,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
},
|
||||
recurlySubscription: [
|
||||
'personalSubscription',
|
||||
(cb, { personalSubscription }) => {
|
||||
({ personalSubscription }, cb) => {
|
||||
if (
|
||||
personalSubscription == null ||
|
||||
personalSubscription.recurlySubscription_id == null ||
|
||||
@@ -79,7 +79,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
],
|
||||
recurlyCoupons: [
|
||||
'recurlySubscription',
|
||||
(cb, { recurlySubscription }) => {
|
||||
({ recurlySubscription }, cb) => {
|
||||
if (!recurlySubscription) {
|
||||
return cb(null, null)
|
||||
}
|
||||
@@ -89,7 +89,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
],
|
||||
plan: [
|
||||
'personalSubscription',
|
||||
(cb, { personalSubscription }) => {
|
||||
({ personalSubscription }, cb) => {
|
||||
if (personalSubscription == null) {
|
||||
return cb()
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
"angular": "~1.8.0",
|
||||
"angular-sanitize": "~1.8.0",
|
||||
"archiver": "^5.3.0",
|
||||
"async": "0.6.2",
|
||||
"async": "3.2.2",
|
||||
"backbone": "^1.3.3",
|
||||
"basic-auth": "^2.0.1",
|
||||
"bcrypt": "^5.0.0",
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -144,8 +144,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -181,8 +180,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -227,8 +225,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(undefined)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -283,8 +280,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -320,8 +316,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -363,8 +358,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -407,8 +401,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -474,8 +467,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -497,8 +489,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -524,8 +515,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -559,8 +549,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -598,7 +587,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call((err, sessions) => {
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -635,7 +624,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call((err, sessions) => {
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -713,8 +702,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(undefined)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -736,8 +724,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(undefined)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
@@ -762,8 +749,7 @@ describe('UserSessionsManager', function () {
|
||||
|
||||
it('should not produce an error', function (done) {
|
||||
return this.call(err => {
|
||||
expect(err).to.not.be.instanceof(Error)
|
||||
expect(err).to.equal(null)
|
||||
expect(err).to.not.exist
|
||||
return done()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user