/var/www/myprog.com.ua/server/node/node_modules/node-addon-api
NameSizeModeActions
tools/-0755rm
common.gypi7620644editdlrm
except.gypi5600644editdlrm
index.js3060644editdlrm
LICENSE.md12450644editdlrm
napi-inl.deprecated.h63230644editdlrm
napi-inl.h2074370644editdlrm
napi.h1126480644editdlrm
node_api.gyp1320644editdlrm
noexcept.gypi6390644editdlrm
nothing.c00644editdlrm
package-support.json4670644editdlrm
package.json102790644editdlrm
README.md137320644editdlrm
Edit: /var/www/myprog.com.ua/server/node/node_modules/node-addon-api/napi-inl.deprecated.h (6323B)
#ifndef SRC_NAPI_INL_DEPRECATED_H_ #define SRC_NAPI_INL_DEPRECATED_H_ //////////////////////////////////////////////////////////////////////////////// // PropertyDescriptor class //////////////////////////////////////////////////////////////////////////////// template inline PropertyDescriptor PropertyDescriptor::Accessor( const char* utf8name, Getter getter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::CallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, nullptr}); return PropertyDescriptor({utf8name, nullptr, nullptr, CbData::Wrapper, nullptr, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Accessor( const std::string& utf8name, Getter getter, napi_property_attributes attributes, void* data) { return Accessor(utf8name.c_str(), getter, attributes, data); } template inline PropertyDescriptor PropertyDescriptor::Accessor( napi_value name, Getter getter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::CallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, nullptr}); return PropertyDescriptor({nullptr, name, nullptr, CbData::Wrapper, nullptr, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Accessor( Name name, Getter getter, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Accessor(nameValue, getter, attributes, data); } template inline PropertyDescriptor PropertyDescriptor::Accessor( const char* utf8name, Getter getter, Setter setter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::AccessorCallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, setter, nullptr}); return PropertyDescriptor({utf8name, nullptr, nullptr, CbData::GetterWrapper, CbData::SetterWrapper, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Accessor( const std::string& utf8name, Getter getter, Setter setter, napi_property_attributes attributes, void* data) { return Accessor(utf8name.c_str(), getter, setter, attributes, data); } template inline PropertyDescriptor PropertyDescriptor::Accessor( napi_value name, Getter getter, Setter setter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::AccessorCallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, setter, nullptr}); return PropertyDescriptor({nullptr, name, nullptr, CbData::GetterWrapper, CbData::SetterWrapper, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Accessor( Name name, Getter getter, Setter setter, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Accessor( nameValue, getter, setter, attributes, data); } template inline PropertyDescriptor PropertyDescriptor::Function( const char* utf8name, Callable cb, napi_property_attributes attributes, void* /*data*/) { using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr))); using CbData = details::CallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({cb, nullptr}); return PropertyDescriptor({utf8name, nullptr, CbData::Wrapper, nullptr, nullptr, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Function( const std::string& utf8name, Callable cb, napi_property_attributes attributes, void* data) { return Function(utf8name.c_str(), cb, attributes, data); } template inline PropertyDescriptor PropertyDescriptor::Function( napi_value name, Callable cb, napi_property_attributes attributes, void* /*data*/) { using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr))); using CbData = details::CallbackData; // TODO: Delete when the function is destroyed auto callbackData = new CbData({cb, nullptr}); return PropertyDescriptor({nullptr, name, CbData::Wrapper, nullptr, nullptr, nullptr, attributes, callbackData}); } template inline PropertyDescriptor PropertyDescriptor::Function( Name name, Callable cb, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Function(nameValue, cb, attributes, data); } #endif // !SRC_NAPI_INL_DEPRECATED_H_