@nxtedition/rocksdb 11.1.1 → 11.1.2

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.
Files changed (2) hide show
  1. package/binding.cc +1 -1
  2. package/package.json +1 -1
package/binding.cc CHANGED
@@ -1487,7 +1487,7 @@ NAPI_METHOD(regex_init) {
1487
1487
  std::string pattern;
1488
1488
  NAPI_STATUS_THROWS(GetString(env, argv[0], pattern));
1489
1489
 
1490
- auto batch = std::make_unique<std::regex>(pattern);
1490
+ auto batch = std::make_unique<std::regex>(pattern, std::regex::optimize | std::regex::ECMAScript);
1491
1491
 
1492
1492
  napi_value result;
1493
1493
  NAPI_STATUS_THROWS(napi_create_external(env, batch.get(), Finalize<std::regex>, batch.get(), &result));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",