node-addon-api 3.2.1 → 4.3.0

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/README.md CHANGED
@@ -70,7 +70,7 @@ and node-addon-api.
70
70
  - **[Contributors](#contributors)**
71
71
  - **[License](#license)**
72
72
 
73
- ## **Current version: 3.2.1**
73
+ ## **Current version: 4.3.0**
74
74
 
75
75
  (See [CHANGELOG.md](CHANGELOG.md) for complete Changelog)
76
76
 
@@ -83,7 +83,7 @@ This allows addons built with it to run with Node.js versions which support the
83
83
  **However** the node-addon-api support model is to support only the active LTS Node.js versions. This means that
84
84
  every year there will be a new major which drops support for the Node.js LTS version which has gone out of service.
85
85
 
86
- The oldest Node.js version supported by the current version of node-addon-api is Node.js 10.x.
86
+ The oldest Node.js version supported by the current version of node-addon-api is Node.js 12.x.
87
87
 
88
88
  ## Setup
89
89
  - [Installation and usage](doc/setup.md)
package/except.gypi CHANGED
@@ -2,15 +2,24 @@
2
2
  'defines': [ 'NAPI_CPP_EXCEPTIONS' ],
3
3
  'cflags!': [ '-fno-exceptions' ],
4
4
  'cflags_cc!': [ '-fno-exceptions' ],
5
- 'msvs_settings': {
6
- 'VCCLCompilerTool': {
7
- 'ExceptionHandling': 1,
8
- 'EnablePREfast': 'true',
9
- },
10
- },
11
- 'xcode_settings': {
12
- 'CLANG_CXX_LIBRARY': 'libc++',
13
- 'MACOSX_DEPLOYMENT_TARGET': '10.7',
14
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
15
- },
5
+ 'conditions': [
6
+ ["OS=='win'", {
7
+ "defines": [
8
+ "_HAS_EXCEPTIONS=1"
9
+ ],
10
+ "msvs_settings": {
11
+ "VCCLCompilerTool": {
12
+ "ExceptionHandling": 1,
13
+ 'EnablePREfast': 'true',
14
+ },
15
+ },
16
+ }],
17
+ ["OS=='mac'", {
18
+ 'xcode_settings': {
19
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
20
+ 'CLANG_CXX_LIBRARY': 'libc++',
21
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
22
+ },
23
+ }],
24
+ ],
16
25
  }