Skip to content

Commit

Permalink
Fix Immutable refs during parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Dec 8, 2018
1 parent 028e69e commit b8767bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"webpack": "^3.1.0"
},
"dependencies": {
"jsan": "^3.1.12",
"jsan": "^3.1.13",
"lodash": "^4.17.2",
"react": "^15.4.1",
"react-dom": "^15.4.1",
Expand All @@ -84,7 +84,7 @@
"redux-devtools-instrument": "^1.9.3",
"remotedev-app": "^0.10.12",
"remotedev-monitor-components": "^0.0.5",
"remotedev-serialize": "^0.1.5",
"remotedev-serialize": "^0.1.7",
"remotedev-slider": "^1.1.1",
"remotedev-utils": "0.0.1"
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export function getSeralizeParameter(config, param) {
return {
replacer: immutableSerializer.replacer,
reviver: immutableSerializer.reviver,
options: serialize.options || true
options: typeof serialize.options === 'object' ?
{ ...immutableSerializer.options, ...serialize.options } : immutableSerializer.options
};
}
if (!serialize.replacer && !serialize.reviver) return { options: serialize.options };
Expand Down
17 changes: 11 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4522,11 +4522,16 @@ js-yaml@3.4.5:
argparse "^1.0.2"
esprima "^2.6.0"

jsan@^3.1.11, jsan@^3.1.12:
jsan@^3.1.12:
version "3.1.12"
resolved "https://registry.yarnpkg.com/jsan/-/jsan-3.1.12.tgz#e784ce5ab533ee41f868bb054d74769365c80be5"
integrity sha512-EDJhJdWGP++Qh5TGfsdc3k2hFjr1/4Q3nVX6MPkTYlqqj3Xv9erXnBRZEBmuGR2IpfARdm0Ivj5EBSvhFylWRA==

jsan@^3.1.13:
version "3.1.13"
resolved "https://registry.yarnpkg.com/jsan/-/jsan-3.1.13.tgz#4de8c7bf8d1cfcd020c313d438f930cec4b91d86"
integrity sha512-9kGpCsGHifmw6oJet+y8HaCl14y7qgAsxVdV3pCHDySNR3BfDC30zgkssd7x5LRVAT22dnpbe9JdzzmXZnq9/g==

jsan@^3.1.3:
version "3.1.10"
resolved "https://registry.yarnpkg.com/jsan/-/jsan-3.1.10.tgz#ba9917b864defff567e0c990a34ae7a8d5eb1d90"
Expand Down Expand Up @@ -7518,12 +7523,12 @@ remotedev-monitor-components@^0.0.5:
codemirror "^5.21.0"
styled-components "^1.1.1"

remotedev-serialize@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/remotedev-serialize/-/remotedev-serialize-0.1.5.tgz#26ae46fcefb7cdf6cb282a9a7c717c2d3d26972e"
integrity sha512-ed5rQ3Q78s8r2+iL9KjsFQfVWySnoFYxgyo6g2/4T74PpKOVW3M13t4Ahzds+EvIN9EHGypx+6LesgTyHgjI9Q==
remotedev-serialize@^0.1.7:
version "0.1.7"
resolved "https://registry.yarnpkg.com/remotedev-serialize/-/remotedev-serialize-0.1.7.tgz#744182d1d42c557207495a438442f18152933ec3"
integrity sha512-iTWTPjxazpwRHDqrfR0Vaxnq1XdW3TOAuClowoj6DYu3z0iQmd812tvrmA96TswZv22gIkwx9eEhz7vOQOEIgw==
dependencies:
jsan "^3.1.11"
jsan "^3.1.13"

remotedev-slider@1.1.3, remotedev-slider@^1.1.1:
version "1.1.3"
Expand Down

0 comments on commit b8767bc

Please sign in to comment.