node-addon-api 1.6.3 → 2.0.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/.travis.yml +4 -7
- package/CHANGELOG.md +121 -1
- package/CONTRIBUTING.md +66 -0
- package/README.md +12 -3
- package/doc/array_buffer.md +1 -1
- package/doc/async_context.md +10 -0
- package/doc/async_operations.md +1 -1
- package/doc/async_progress_worker.md +344 -0
- package/doc/async_worker.md +97 -25
- package/doc/basic_types.md +19 -0
- package/doc/class_property_descriptor.md +82 -1
- package/doc/cmake-js.md +58 -9
- package/doc/date.md +68 -0
- package/doc/object.md +36 -2
- package/doc/object_wrap.md +14 -3
- package/doc/prebuild_tools.md +2 -2
- package/doc/string.md +3 -0
- package/doc/threadsafe_function.md +320 -0
- package/doc/value.md +9 -0
- package/napi-inl.h +769 -63
- package/napi.h +351 -21
- package/package.json +212 -41
package/doc/value.md
CHANGED
|
@@ -10,6 +10,7 @@ The following classes inherit, either directly or indirectly, from `Napi::Value`
|
|
|
10
10
|
- [`Napi::ArrayBuffer`](array_buffer.md)
|
|
11
11
|
- [`Napi::Boolean`](boolean.md)
|
|
12
12
|
- [`Napi::Buffer`](buffer.md)
|
|
13
|
+
- [`Napi::Date`](date.md)
|
|
13
14
|
- [`Napi::External`](external.md)
|
|
14
15
|
- [`Napi::Function`](function.md)
|
|
15
16
|
- [`Napi::Name`](name.md)
|
|
@@ -226,6 +227,14 @@ bool Napi::Value::IsBuffer() const;
|
|
|
226
227
|
|
|
227
228
|
Returns a `bool` indicating if this `Napi::Value` is a Node buffer.
|
|
228
229
|
|
|
230
|
+
### IsDate
|
|
231
|
+
|
|
232
|
+
```cpp
|
|
233
|
+
bool Napi::Value::IsDate() const;
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Returns a `bool` indicating if this `Napi::Value` is a JavaScript date.
|
|
237
|
+
|
|
229
238
|
### As
|
|
230
239
|
|
|
231
240
|
```cpp
|