bson 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser_build/bson.js
CHANGED
|
@@ -17557,6 +17557,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17557
17557
|
index = serializeInt32(buffer, key, value, index, true);
|
|
17558
17558
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
17559
17559
|
index = serializeMinMax(buffer, key, value, index, true);
|
|
17560
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
17561
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
17560
17562
|
}
|
|
17561
17563
|
}
|
|
17562
17564
|
} else if (object instanceof Map) {
|
|
@@ -17635,6 +17637,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17635
17637
|
index = serializeInt32(buffer, key, value, index);
|
|
17636
17638
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
17637
17639
|
index = serializeMinMax(buffer, key, value, index);
|
|
17640
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
17641
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
17638
17642
|
}
|
|
17639
17643
|
}
|
|
17640
17644
|
} else {
|
|
@@ -17716,6 +17720,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
17716
17720
|
index = serializeInt32(buffer, key, value, index);
|
|
17717
17721
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
17718
17722
|
index = serializeMinMax(buffer, key, value, index);
|
|
17723
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
17724
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
17719
17725
|
}
|
|
17720
17726
|
}
|
|
17721
17727
|
}
|
|
@@ -777,6 +777,8 @@ var serializeInto = function serializeInto(
|
|
|
777
777
|
index = serializeInt32(buffer, key, value, index, true);
|
|
778
778
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
779
779
|
index = serializeMinMax(buffer, key, value, index, true);
|
|
780
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
781
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
780
782
|
}
|
|
781
783
|
}
|
|
782
784
|
} else if (object instanceof Map) {
|
|
@@ -875,6 +877,8 @@ var serializeInto = function serializeInto(
|
|
|
875
877
|
index = serializeInt32(buffer, key, value, index);
|
|
876
878
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
877
879
|
index = serializeMinMax(buffer, key, value, index);
|
|
880
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
881
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
878
882
|
}
|
|
879
883
|
}
|
|
880
884
|
} else {
|
|
@@ -977,6 +981,8 @@ var serializeInto = function serializeInto(
|
|
|
977
981
|
index = serializeInt32(buffer, key, value, index);
|
|
978
982
|
} else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {
|
|
979
983
|
index = serializeMinMax(buffer, key, value, index);
|
|
984
|
+
} else if (typeof value['_bsontype'] !== 'undefined') {
|
|
985
|
+
throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);
|
|
980
986
|
}
|
|
981
987
|
}
|
|
982
988
|
}
|