diff --git a/.travis.yml b/.travis.yml index 76224c508..a9fe10a33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ os: - osx env: global: - # https://github.com/jasongin/nvs/blob/master/doc/CI.md + # https://github.com/jasongin/nvs/blob/HEAD/doc/CI.md - NVS_VERSION=1.4.2 matrix: - NODEJS_VERSION=node/10 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index eb07a975e..97e54b4d3 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,4 +1,4 @@ # Code of Conduct The Node.js Code of Conduct, which applies to this project, can be found at -https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md. +https://github.com/nodejs/admin/blob/HEAD/CODE_OF_CONDUCT.md. diff --git a/README.md b/README.md index b4bd6bba2..093393209 100644 --- a/README.md +++ b/README.md @@ -152,14 +152,14 @@ The following is the documentation for node-addon-api. Are you new to **node-addon-api**? Take a look at our **[examples](https://github.com/nodejs/node-addon-examples)** -- **[Hello World](https://github.com/nodejs/node-addon-examples/tree/master/1_hello_world/node-addon-api)** -- **[Pass arguments to a function](https://github.com/nodejs/node-addon-examples/tree/master/2_function_arguments/node-addon-api)** -- **[Callbacks](https://github.com/nodejs/node-addon-examples/tree/master/3_callbacks/node-addon-api)** -- **[Object factory](https://github.com/nodejs/node-addon-examples/tree/master/4_object_factory/node-addon-api)** -- **[Function factory](https://github.com/nodejs/node-addon-examples/tree/master/5_function_factory/node-addon-api)** -- **[Wrapping C++ Object](https://github.com/nodejs/node-addon-examples/tree/master/6_object_wrap/node-addon-api)** -- **[Factory of wrapped object](https://github.com/nodejs/node-addon-examples/tree/master/7_factory_wrap/node-addon-api)** -- **[Passing wrapped object around](https://github.com/nodejs/node-addon-examples/tree/master/8_passing_wrapped/node-addon-api)** +- **[Hello World](https://github.com/nodejs/node-addon-examples/tree/HEAD/1_hello_world/node-addon-api)** +- **[Pass arguments to a function](https://github.com/nodejs/node-addon-examples/tree/HEAD/2_function_arguments/node-addon-api)** +- **[Callbacks](https://github.com/nodejs/node-addon-examples/tree/HEAD/3_callbacks/node-addon-api)** +- **[Object factory](https://github.com/nodejs/node-addon-examples/tree/HEAD/4_object_factory/node-addon-api)** +- **[Function factory](https://github.com/nodejs/node-addon-examples/tree/HEAD/5_function_factory/node-addon-api)** +- **[Wrapping C++ Object](https://github.com/nodejs/node-addon-examples/tree/HEAD/6_object_wrap/node-addon-api)** +- **[Factory of wrapped object](https://github.com/nodejs/node-addon-examples/tree/HEAD/7_factory_wrap/node-addon-api)** +- **[Passing wrapped object around](https://github.com/nodejs/node-addon-examples/tree/HEAD/8_passing_wrapped/node-addon-api)** @@ -201,7 +201,7 @@ If you want faster build, you might use the following option: npm run-script dev:incremental ``` -Take a look and get inspired by our **[test suite](https://github.com/nodejs/node-addon-api/tree/master/test)** +Take a look and get inspired by our **[test suite](https://github.com/nodejs/node-addon-api/tree/HEAD/test)** ### **Benchmarks** diff --git a/appveyor.yml b/appveyor.yml index 3f08b6837..77e434d7a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ environment: - # https://github.com/jasongin/nvs/blob/master/doc/CI.md + # https://github.com/jasongin/nvs/blob/HEAD/doc/CI.md NVS_VERSION: 1.4.2 matrix: - NODEJS_VERSION: node/10 diff --git a/doc/array.md b/doc/array.md index a12e92daf..934808ba4 100644 --- a/doc/array.md +++ b/doc/array.md @@ -9,7 +9,7 @@ around `napi_value` representing a JavaScript Array. types such as [`Napi::Int32Array`][] and [`Napi::ArrayBuffer`][], respectively, that can be used for transferring large amounts of data from JavaScript to the native side. An example illustrating the use of a JavaScript-provided -`ArrayBuffer` in native code is available [here](https://github.com/nodejs/node-addon-examples/tree/master/array_buffer_to_native/node-addon-api). +`ArrayBuffer` in native code is available [here](https://github.com/nodejs/node-addon-examples/tree/HEAD/array_buffer_to_native/node-addon-api). ## Constructor ```cpp diff --git a/doc/cmake-js.md b/doc/cmake-js.md index 08cd3ea8c..b26ad50ff 100644 --- a/doc/cmake-js.md +++ b/doc/cmake-js.md @@ -51,7 +51,7 @@ If your N-API native add-on uses the optional [**node-addon-api**](https://githu ## Example -A working example of an N-API native addon built using CMake.js can be found on the [node-addon-examples repository](https://github.com/nodejs/node-addon-examples/tree/master/build_with_cmake#building-n-api-addons-using-cmakejs). +A working example of an N-API native addon built using CMake.js can be found on the [node-addon-examples repository](https://github.com/nodejs/node-addon-examples/tree/HEAD/build_with_cmake#building-n-api-addons-using-cmakejs). ## **CMake** Reference diff --git a/doc/property_descriptor.md b/doc/property_descriptor.md index 9995766e4..526d61159 100644 --- a/doc/property_descriptor.md +++ b/doc/property_descriptor.md @@ -282,5 +282,5 @@ The name of the property can be any of the following types: - napi\_writable, - napi\_enumerable, - napi\_configurable -For more information on the flags and on napi\_property\_attributes, please read the documentation [here](https://github.com/nodejs/node/blob/master/doc/api/n-api.md#napi_property_attributes). +For more information on the flags and on napi\_property\_attributes, please read the documentation [here](https://github.com/nodejs/node/blob/HEAD/doc/api/n-api.md#napi_property_attributes). diff --git a/doc/setup.md b/doc/setup.md index 5ba5302de..7a7590b4b 100644 --- a/doc/setup.md +++ b/doc/setup.md @@ -33,7 +33,7 @@ To use **N-API** in a native module: The base ABI-stable C APIs do not throw or handle C++ exceptions, but the N-API C++ wrapper classes may _optionally_ [integrate C++ and JavaScript exception-handling - ](https://nodejs.github.io/node-addon-api/class_napi_1_1_error.html). + ](https://github.com/nodejs/node-addon-api/blob/HEAD/doc/error_handling.md). To enable that capability, C++ exceptions must be enabled in `binding.gyp`: ```gyp