node-addon-api 8.3.0 → 8.3.1

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 (3) hide show
  1. package/README.md +1 -1
  2. package/napi-inl.h +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -19,7 +19,7 @@ and exception handling semantics with low overhead.
19
19
  API references are available in the [doc](doc/README.md) directory.
20
20
 
21
21
  <!-- x-release-please-start-version -->
22
- ## Current version: 8.3.0
22
+ ## Current version: 8.3.1
23
23
  <!-- x-release-please-end -->
24
24
 
25
25
  (See [CHANGELOG.md](CHANGELOG.md) for complete Changelog)
package/napi-inl.h CHANGED
@@ -3244,7 +3244,7 @@ inline void Error::ThrowAsJavaScriptException() const {
3244
3244
 
3245
3245
  status = napi_throw(_env, Value());
3246
3246
 
3247
- #ifdef NAPI_EXPERIMENTAL
3247
+ #if (NAPI_VERSION >= 10)
3248
3248
  napi_status expected_failure_mode = napi_cannot_run_js;
3249
3249
  #else
3250
3250
  napi_status expected_failure_mode = napi_pending_exception;
package/package.json CHANGED
@@ -423,7 +423,7 @@
423
423
  "clang-format": "^1.4.0",
424
424
  "eslint": "^9.13.0",
425
425
  "fs-extra": "^11.1.1",
426
- "neostandard": "^0.11.7",
426
+ "neostandard": "^0.12.0",
427
427
  "pre-commit": "^1.2.2",
428
428
  "semver": "^7.6.0"
429
429
  },
@@ -472,7 +472,7 @@
472
472
  "lint:fix": "eslint --fix && node tools/clang-format --fix"
473
473
  },
474
474
  "pre-commit": "lint",
475
- "version": "8.3.0",
475
+ "version": "8.3.1",
476
476
  "support": true,
477
477
  "engines": {
478
478
  "node": "^18 || ^20 || >= 21"