react-native-nitro-modules 0.33.6 → 0.33.7
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.
|
@@ -60,7 +60,7 @@ public:
|
|
|
60
60
|
static std::shared_ptr<Prototype> get(const NativeInstanceId& typeId, const std::shared_ptr<Prototype>& base = nullptr) {
|
|
61
61
|
static std::unordered_map<NativeInstanceId, std::shared_ptr<Prototype>> _prototypesCache;
|
|
62
62
|
|
|
63
|
-
auto [it, inserted] =
|
|
63
|
+
auto [it, inserted] = _prototypesCache.try_emplace(typeId);
|
|
64
64
|
if (inserted) {
|
|
65
65
|
// This is the first time we see this C++ type ID - create a new base Prototype for this.
|
|
66
66
|
it->second = std::shared_ptr<Prototype>(new Prototype(typeId, base));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-modules",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.7",
|
|
4
4
|
"description": "Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|