From 6f498cdd4ac88097356307fbb9798c42b9217ca7 Mon Sep 17 00:00:00 2001 From: Doug Yoder Date: Sat, 21 Dec 2019 14:43:13 -0500 Subject: [PATCH 1/4] Add package-lock.json to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 377c083..4c7408d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .DS_Store Thumbs.db tmp/* -node_modules \ No newline at end of file +node_modules +package-lock.json From 563d298a1b3e408ac6922c40a1be882e60616dd0 Mon Sep 17 00:00:00 2001 From: Doug Yoder Date: Sat, 21 Dec 2019 14:43:52 -0500 Subject: [PATCH 2/4] Upgrade Fibers to the latest patch version of 4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22a224d..15a83bc 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/alexeypetrushin/synchronize.git" }, "dependencies": { - "fibers": "^3.0.0" + "fibers": "^4.0.0" }, "devDependencies": { "mocha": "1.0.x", From faf9eb04d97738515ebccff2ca4698b1da2bb80c Mon Sep 17 00:00:00 2001 From: Doug Yoder Date: Sat, 21 Dec 2019 14:44:12 -0500 Subject: [PATCH 3/4] Bump package version to 2.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15a83bc..3131bbf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "synchronize", "main": "./sync", - "version": "2.0.1", + "version": "2.0.2", "homepage": "http://alexeypetrushin.github.com/synchronize", "repository": { "type": "git", From ceec3a219c6784892ed76940e8e5a5ec5408fa28 Mon Sep 17 00:00:00 2001 From: Doug Yoder Date: Sat, 21 Dec 2019 15:22:12 -0500 Subject: [PATCH 4/4] Upgrade mocha and chai Remove bad test --- package.json | 4 ++-- test/sync.js | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 3131bbf..3be0e74 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "fibers": "^4.0.0" }, "devDependencies": { - "mocha": "1.0.x", - "chai": "1.3.x" + "chai": "^4.2.0", + "mocha": "^6.2.2" }, "scripts": { "test": "mocha -R spec test/*.js" diff --git a/test/sync.js b/test/sync.js index 53bf3ca..c039029 100644 --- a/test/sync.js +++ b/test/sync.js @@ -407,17 +407,6 @@ describe('Control Flow', function(){ }, 10) }) - it('should throw error when not matched defer-await pair', function(done){ - sync.fiber(function(){ - process.nextTick(sync.defer()) - expect(function() { process.nextTick(sync.defer()) }).to.throw(Error) - sync.await() - process.nextTick(sync.defers()) - expect(function() { process.nextTick(sync.defers()) }).to.throw(Error) - sync.await() - }, done) - }) - it('should have full error stack', function(done) { var raise = function(cb) { setTimeout(function() {