Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

fix(NAPI): Ref-napi ffi-napi added. #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"cross-env": "5.1.3",
"deps_downloader": "https://s3.eu-west-2.amazonaws.com/deps-downloader/deps_downloader-0.3.0.tgz",
"enum": "^2.3.0",
"ffi": "^2.3.0",
"ffi-napi": "2.4.5",
"mime": "^2.0.3",
"multihashes": "^0.4.14",
"rdflib": "^0.19.1",
"ref": "^1.3.3",
"ref-array": "^1.2.0",
"ref-napi": "1.4.1",
"ref-struct": "^1.1.0",
"weak-napi": "1.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/native/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const makeError = require('./_error.js');
Expand Down
4 changes: 2 additions & 2 deletions src/native/_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const Enum = require('enum');
const ArrayType = require('ref-array');
const ref = require('ref');
const ref = require('ref-napi');
const Struct = require('ref-struct');
const base = require('./_base.js');
const makeError = require('./_error.js');
Expand Down
4 changes: 2 additions & 2 deletions src/native/_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

const makeError = require('./_error.js');
const errConst = require('../error_const');
const ffi = require('ffi');
const ref = require('ref');
const ffi = require('ffi-napi');
const ref = require('ref-napi');
const Enum = require('enum');
const Struct = require('ref-struct');
const ArrayType = require('ref-array');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_cipher_opt.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const base = require('./_base');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const base = require('./_base');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_immutable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const base = require('./_base');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_mutable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const Enum = require('enum');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_nfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ffi = require('ffi');
const ffi = require('ffi-napi');
const ref = require("ref");
const Struct = require('ref-struct');
const base = require('./_base');
Expand Down
4 changes: 2 additions & 2 deletions src/native/_system_uri.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


const path = require('path');
const FFI = require('ffi');
const ref = require('ref');
const FFI = require('ffi-napi');
const ref = require('ref-napi');
const { getSystemUriLibFilename } = require('../helpers');
const makeError = require('./_error.js');
const h = require('./helpers');
Expand Down
2 changes: 1 addition & 1 deletion src/native/_testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// relating to use of the SAFE Network Software.


const ref = require('ref');
const ref = require('ref-napi');
const { types: t, helpers: h } = require("./_base");
const { types } = require('./_auth');

Expand Down
2 changes: 1 addition & 1 deletion src/native/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

const path = require('path');
const fs = require('fs');
const FFI = require('ffi');
const FFI = require('ffi-napi');
const { getSafeAppLibFilename } = require('../helpers');
const { getSystemUriLibFilename } = require('../helpers');
const os = require('os');
Expand Down
53 changes: 35 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,6 @@ bindings@1, bindings@^1.3.0:
dependencies:
file-uri-to-path "1.0.0"

bindings@~1.2.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11"
integrity sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=

bluebird@~3.5.0:
version "3.5.4"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.4.tgz#d6cc661595de30d5b3af5fcedd3c0b3ef6ec5714"
Expand Down Expand Up @@ -1327,16 +1322,17 @@ fast-levenshtein@~2.0.4:
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=

ffi@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/ffi/-/ffi-2.3.0.tgz#fa1a7b3d85c0fa8c83d96947a64b5192bc47f858"
integrity sha512-vkPA9Hf9CVuQ5HeMZykYvrZF2QNJ/iKGLkyDkisBnoOOFeFXZQhUPxBARPBIZMJVulvBI2R+jgofW03gyPpJcQ==
ffi[email protected]:
version "2.4.5"
resolved "https://registry.yarnpkg.com/ffi-napi/-/ffi-napi-2.4.5.tgz#12e807f238f8c68fc094fc46c1ce5193c2ab64f8"
integrity sha512-24Et/c5/sRvZvpOZ9nvkK0Be1S8A1Vkt6aJSKGaohOGb5FwV4+EmecaTtNhN4TCLJDjYC8z/k4X8W1SC5IK/fw==
dependencies:
bindings "~1.2.0"
debug "2"
nan "2"
ref "1"
ref-struct "1"
bindings "^1.3.0"
debug "^3.1.0"
get-uv-event-loop-napi-h "^1.0.5"
node-addon-api "1.5.0"
ref-napi "^1.4.0"
ref-struct-di "^1.1.0"

figures@^1.3.5:
version "1.7.0"
Expand Down Expand Up @@ -1511,7 +1507,7 @@ get-symbol-from-current-process-h@^1.0.1:
resolved "https://registry.yarnpkg.com/get-symbol-from-current-process-h/-/get-symbol-from-current-process-h-1.0.1.tgz#7e4809087e7d2f3a78a785b36f787e2183ba4c5d"
integrity sha512-QvP1+tCDjgTiu+akjdEYd8eK8MFYy6nRCRNjfiCeQB9RJEHQZpN+WE+CVqPRNqjIVMwSqd0WiD008B+b7iIdaA==

get-uv-event-loop-napi-h@^1.0.2:
get-uv-event-loop-napi-h@^1.0.2, get-uv-event-loop-napi-h@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/get-uv-event-loop-napi-h/-/get-uv-event-loop-napi-h-1.0.5.tgz#1904a1dc1fa6df7487c9e8eaf87302bcc9e33e47"
integrity sha512-uWDHId313vRTyqeLhlLWJS0CJOP8QXY5en/9Pv14dnPvAlRfKBfD6h2EDtoy7jxxOIWB9QgzYK16VCN3pCZOBg==
Expand Down Expand Up @@ -2607,7 +2603,12 @@ nice-try@^1.0.4:
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==

node-addon-api@^1.1.0:
[email protected]:
version "1.5.0"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-1.5.0.tgz#55be6b3da36e746f4b1f2af16c2adf67647d1ff8"
integrity sha512-YsL/8dpBWxCFj3wAVAa/ceN4TlT8lACK8EgpuN0q/4ecflWHDuKpodb+tt7Rx22r/6FJ2f+IT25XSsXnZGwYgA==

node-addon-api@^1.1.0, node-addon-api@^1.6.2:
version "1.6.3"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-1.6.3.tgz#3998d4593e2dca2ea82114670a4eb003386a9fe1"
integrity sha512-FXWH6mqjWgU8ewuahp4spec8LkroFZK2NicOv6bNwZC3kcwZUI8LeZdG80UzTSLLhK4T7MsgNwlYDVRlDdfTDg==
Expand Down Expand Up @@ -3162,15 +3163,31 @@ ref-array@^1.2.0:
debug "2"
ref "1"

ref-struct@1, ref-struct@^1.1.0:
[email protected], ref-napi@^1.4.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/ref-napi/-/ref-napi-1.4.1.tgz#ab129c5d4c2b4ccbb50503c09c315334a5a3a77b"
integrity sha512-7AK1YNzEO2z8DLFPTf+AvOViCUgLK0stM4hnR0HWLb71Bo10UJWIpMDN3Tz7BNnUJhsj2pHWfjxugcaRvCF7zA==
dependencies:
bindings "^1.3.0"
debug "^3.1.0"
node-addon-api "^1.6.2"

ref-struct-di@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/ref-struct-di/-/ref-struct-di-1.1.0.tgz#d252144eb449608ccf2e5c12fda35f8153bd3760"
integrity sha512-gghZITj/iQwdwFDduZ6T8kL2B2ogInlOz7AOB0ggFoEc7akAKMcDrbzh3OIPk13Kxy8U2bHPvN6nejcBh4jN7A==
dependencies:
debug "^3.1.0"

ref-struct@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/ref-struct/-/ref-struct-1.1.0.tgz#5d5ee65ad41cefc3a5c5feb40587261e479edc13"
integrity sha1-XV7mWtQc78Olxf60BYcmHkee3BM=
dependencies:
debug "2"
ref "1"

ref@1, ref@^1.3.3:
ref@1:
version "1.3.5"
resolved "https://registry.yarnpkg.com/ref/-/ref-1.3.5.tgz#0e33f080cdb94a3d95312b2b3b1fd0f82044ca0f"
integrity sha512-2cBCniTtxcGUjDpvFfVpw323a83/0RLSGJJY5l5lcomZWhYpU2cuLdsvYqMixvsdLJ9+sTdzEkju8J8ZHDM2nA==
Expand Down