Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from dmapper/patch-racer
Browse files Browse the repository at this point in the history
patch racer to fix problem related to cutting code by metro bundler i…
  • Loading branch information
pturchik authored Nov 11, 2019
2 parents 778cf43 + 9929796 commit 571f072
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"bluebird": "^3.5.0",
"racer": "^0.9.3",
"racer": "0.9.9",
"rich-text": "^4.0.0",
"sharedb": "^1.0.0-beta.22"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"license": "MIT",
"dependencies": {
"racer": "^0.9.3",
"racer": "0.9.9",
"racer-highway": "^8.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"husky": "^0.14.3",
"lint-staged": "^4.3.0",
"prettier-standard": "^7.0.3",
"racer": "*",
"racer": "0.9.9",
"sharedb": "*",
"standard": "^10.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/orm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"racer": "^0.9.3"
"racer": "0.9.9"
},
"author": "cray0000 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sharedb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@startupjs/model": "^0.8.1",
"hoist-non-react-statics": "^1.2.0",
"lodash": "4.x",
"racer": "^0.9.3",
"racer": "0.9.9",
"rich-text": "^4.0.0",
"sharedb": "^1.0.0-beta.22"
},
Expand Down
21 changes: 21 additions & 0 deletions template/patches/racer+0.9.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/node_modules/racer/lib/Model/events.js b/node_modules/racer/lib/Model/events.js
index e5aaf3f..c68c10a 100644
--- a/node_modules/racer/lib/Model/events.js
+++ b/node_modules/racer/lib/Model/events.js
@@ -241,7 +241,7 @@ Model.prototype.removeContextListeners = function(value) {
* @param {string} eventType
*/
function eventListener(model, eventType, arg2, arg3, arg4) {
- var subpattern, options, cb;
+ var subpattern, options, cb, useEventObjects;
if (arg4) {
// on(eventType, path, options, cb)
subpattern = arg2;
@@ -262,7 +262,7 @@ function eventListener(model, eventType, arg2, arg3, arg4) {
}
if (options) {
if (options.useEventObjects) {
- var useEventObjects = true;
+ useEventObjects = true;
}
}

0 comments on commit 571f072

Please sign in to comment.