old_contents: {
    'targets': [
      {
        'target_name': 'bcrypt_lib',
        'sources': [
          'src/blowfish.cc',
          'src/bcrypt.cc',
          'src/bcrypt_node.cc'
        ],
        'cflags!': [ '-fno-exceptions' ],
        'cflags_cc!': [ '-fno-exceptions' ],
        'include_dirs' : [
            "<!@(node -p \"require('node-addon-api').include\")"
        ], 
        'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
        "xcode_settings": {
          "CLANG_CXX_LIBRARY": "libc++",
          'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
        },
        'conditions': [
          [ 'OS=="win"', {
            "msvs_settings": {
              "VCCLCompilerTool": {
                "ExceptionHandling": 1
              }
            },
            'defines': [
              'uint=unsigned int',
            ]
          }]
        ]
      },
      {
        "target_name": "action_after_build",
        "type": "none",
        "dependencies": [ "<(module_name)" ],
        "copies": [
          {
            "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
            "destination": "<(module_path)"
          }
        ]
      }
    ]
  }
  
new_contents: {
    'targets': [
      {
        'target_name': 'bcrypt_lib',
        'sources': [
          'src/blowfish.cc',
          'src/bcrypt.cc',
          'src/bcrypt_node.cc'
        ],
        'cflags!': [ '-fno-exceptions' ],
        'cflags_cc!': [ '-fno-exceptions' ],
        'include_dirs' : [
            "<!@(node -p \"require('node-addon-api').include\")"
        ], 
        'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
        'conditions': [
          ['OS=="win"', {
            "msvs_settings": {
              "VCCLCompilerTool": {
                "ExceptionHandling": 1
              }
            },
            'defines': [
              'uint=unsigned int',
            ]
          }],
          ['OS=="mac"', {
            "xcode_settings": {
              "CLANG_CXX_LIBRARY": "libc++",
              'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
              'MACOSX_DEPLOYMENT_TARGET': '10.7'
            }
          }]
        ]
      },
      {
        "target_name": "action_after_build",
        "type": "none",
        "dependencies": [ "<(module_name)" ],
        "copies": [
          {
            "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
            "destination": "<(module_path)"
          }
        ]
      }
    ]
  }
  
subject: Update binding.gyp to fox problem on macOS with node version 4 and 5