Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

addon-tools-raub

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addon-tools-raub - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

.travis.yml

12

package.json
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "addon-tools-raub",
"version": "2.0.1",
"version": "3.0.0",
"description": "Helpers for Node.js addons and dependency packages",

@@ -13,6 +13,12 @@ "license": "MIT",

"eventemitter",
"utils"
"events",
"utils",
"c++",
"addon",
"bindings",
"native",
"gyp"
],
"engines": {
"node": ">=8.11.1",
"node": ">=8.11.2",
"npm": ">=5.6.0"

@@ -19,0 +25,0 @@ },

@@ -5,3 +5,7 @@ # Addon Tools

![NPM](https://nodei.co/npm/addon-tools-raub.png?compact=true)
![Build Status](https://api.travis-ci.org/node-3d/addon-tools-raub.svg?branch=master)
## Synopsis

@@ -21,10 +25,5 @@

---
## Install
`npm i -s addon-tools-raub`
---
## Contents

@@ -341,5 +340,5 @@

---
## include/addon-tools.hpp

@@ -350,15 +349,15 @@

so that you can replace:
```
// #include <v8.h> // already in node.h
// #include <node.h> // already in nan.h
#include <nan.h>
```
with
```
#include <addon-tools.hpp> // or event-emitter.hpp
```
```
// #include <v8.h> // already in node.h
// #include <node.h> // already in nan.h
#include <nan.h>
```
with
```
#include <addon-tools.hpp> // or event-emitter.hpp
```
In gyp, the include directory should be set for your addon to know where to get it.

@@ -400,4 +399,17 @@ As it was mentioned above, this can be done automatically. Also an actual path to the

* `RET_VALUE(VAL)` - set method return value
* `RET_UNDEFINED` - set method return value as undefined
* `RET_VALUE(VAL)` - set method return value, where `VAL` is `v8::Local<v8::Value>`.
* `RET_UNDEFINED` - set method return value as `undefined`.
* `RET_STR(VAL)` - set method return value, where `VAL` is `const char *`.
* `RET_UTF8(VAL)` - set method return value, where `VAL` is `const char *`.
* `RET_INT(VAL)` - set method return value, where `VAL` is `int32`.
* `RET_INT32(VAL)` - set method return value, where `VAL` is `int32`.
* `RET_UINT32(VAL)` - set method return value, where `VAL` is `uint32`.
* `RET_NUM(VAL)` - set method return value, where `VAL` is `double`.
* `RET_OFFS(VAL)` - set method return value, where `VAL` is `size_t`.
* `RET_FLOAT(VAL)` - set method return value, where `VAL` is `float`.
* `RET_DOUBLE(VAL)` - set method return value, where `VAL` is `double`.
* `RET_EXT(VAL)` - set method return value, where `VAL` is `void *`.
* `RET_BOOL(VAL)` - set method return value, where `VAL` is `bool`.
* `RET_FUN(VAL)` - set method return value, where `VAL` is `Nan::Persistent<v8::Function>`.
* `RET_OBJ(VAL)` - set method return value, where `VAL` is `Nan::Persistent<v8::Object>`.

@@ -441,4 +453,4 @@ </details>

* `JS_BOOL(val)` - create a boolean value
* `JS_FUN(val)` - get a function from persistent.
* `JS_OBJ(val)` - get an object from persistent.
* `JS_FUN(val)` - get a function from persistent `Nan::Persistent<v8::Function>`.
* `JS_OBJ(val)` - get an object from persistent `Nan::Persistent<v8::Object>`.

@@ -464,3 +476,3 @@ </details>

* `SETTER_CHECK(C, T)` - check if setter `value` is approved by `C` check.
* `DES_CHECK` - within dynamic method check if the instance wasn't destroyed by `_destroy()`.
* `DES_CHECK` - within dynamic method check if the instance wasn't destroyed by `destroy()`.

@@ -601,5 +613,5 @@ </details>

---
## index.js

@@ -630,5 +642,5 @@

---
## Crossplatform commands

@@ -719,3 +731,3 @@

* `virtual void _destroy()` - destroys the object, i.e. deactivates it and frees
* `void destroy()` - destroys the object, i.e. deactivates it and frees
resources. This is what also called inside

@@ -722,0 +734,0 @@ `~EventEmitter()`, but only the first call is effective anyway.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc