Skip to content

Commit a115031

Browse files
committed
Bump 2.6.1
1 parent 1dbe71c commit a115031

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.6.1
4+
5+
* Fixing prototype pollution issue ([@arjunshibu](https://github.com/arjunshibu)).
6+
37
## v2.6.0
48

59
* Adding TypeScript declaration files.

build/baobab.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Baobab
33
*
44
* Homepage: https://github.com/Yomguithereal/baobab
5-
* Version: 2.6.0
5+
* Version: 2.6.1
66
* Author: Yomguithereal (Guillaume Plique)
77
* License: MIT
88
*/
@@ -1108,7 +1108,7 @@ exports.dynamic = dynamic;
11081108
/**
11091109
* Version.
11101110
*/
1111-
Baobab.VERSION = '2.6.0';
1111+
Baobab.VERSION = '2.6.1';
11121112
var VERSION = Baobab.VERSION;
11131113
/**
11141114
* Exporting.
@@ -2364,7 +2364,7 @@ function merger(deep) {
23642364
t = objects[i];
23652365

23662366
for (k in t) {
2367-
if (deep && _type["default"].object(t[k]) && !(t[k] instanceof _monkey.Monkey)) {
2367+
if (deep && _type["default"].object(t[k]) && !(t[k] instanceof _monkey.Monkey) && k !== '__proto__' && k !== 'constructor' && k !== 'prototype') {
23682368
o[k] = merger(true, o[k] || {}, t[k]);
23692369
} else {
23702370
o[k] = t[k];

build/baobab.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "baobab",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "JavaScript persistent data tree with cursors.",
55
"main": "./dist/baobab.js",
66
"dependencies": {

src/baobab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ export {Cursor, MonkeyDefinition, Monkey, type, helpers};
582582
/**
583583
* Version.
584584
*/
585-
Baobab.VERSION = '2.6.0';
585+
Baobab.VERSION = '2.6.1';
586586
export const VERSION = Baobab.VERSION;
587587

588588
/**

0 commit comments

Comments
 (0)