This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
chore: Use Node.js 12 #12
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d0a2b32
chore: Use Node.js 12
ffflorian 6d44568
add if case
ffflorian b2cbbc9
add space
ffflorian 730cd98
better if check
ffflorian 3be3373
formatting
ffflorian b5cdc9e
[ci skip] formatting
ffflorian 077be6a
[ci skip] formatting
ffflorian 5faebe8
build and run when testing
ffflorian 10dc715
don't rebuild twice
ffflorian 644d81e
don't run example
ffflorian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ os: osx | |
language: node_js | ||
|
||
node_js: | ||
- '10' | ||
- '12' | ||
|
||
notifications: | ||
email: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
{ | ||
"author": "Wire Swiss <wireapp@wire.com>", | ||
"contributors": [ | ||
{ | ||
"email": "chris@wire.com", | ||
"name": "Chris Owen", | ||
"url": "http://wire.com" | ||
}, | ||
{ | ||
"email": "digital.flowers@hotmail.com", | ||
"name": "Fareed Al-Namrouti" | ||
} | ||
], | ||
"dependencies": { | ||
"nan": "2.13.2" | ||
}, | ||
|
@@ -48,9 +37,7 @@ | |
"address", | ||
"addressbook", | ||
"contacts", | ||
"wire", | ||
"binding", | ||
"c" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Useless IMO |
||
"binding" | ||
], | ||
"license": "GPL-3.0", | ||
"lint-staged": { | ||
|
@@ -82,9 +69,8 @@ | |
"lint": "yarn lint:other && yarn lint:ts", | ||
"lint:other": "yarn prettier --list-different", | ||
"lint:ts": "tslint --project tsconfig.json", | ||
"postinstall": "node-gyp rebuild", | ||
"prettier": "prettier \"**/*.{json,md,yml}\"", | ||
"test": "yarn lint" | ||
"test": "yarn lint && yarn dist" | ||
}, | ||
"version": "3.0.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,8 @@ void fillPersonObject(Isolate* isolate, Local<Object> obj, Person *person) | |
|
||
class AddressBookWorker : public AsyncProgressWorker { | ||
public: | ||
AddressBookWorker(Callback *callback,Callback *progress) | ||
: AsyncProgressWorker(callback), progress(progress) , contacts() {} | ||
AddressBookWorker(Callback *callback, Callback *progress) | ||
: AsyncProgressWorker(callback), progress(progress), contacts() {} | ||
|
||
~AddressBookWorker() {} | ||
|
||
|
@@ -114,7 +114,11 @@ NAN_METHOD(GetMe) { | |
|
||
|
||
NAN_METHOD(GetContact) { | ||
int index = info[0]->Uint32Value(); | ||
#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 7 | ||
int index = info[0]->Uint32Value(Nan::GetCurrentContext()).ToChecked(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
#else | ||
int index = info[0]->Uint32Value(); | ||
#endif | ||
|
||
AddressBook ab; | ||
Isolate* isolate = Isolate::GetCurrent(); | ||
|
@@ -144,4 +148,4 @@ NAN_MODULE_INIT(Init) { | |
GetFunction(New<FunctionTemplate>(GetContacts)).ToLocalChecked()); | ||
} | ||
|
||
NODE_MODULE(addon, Init) | ||
NODE_MODULE(addon, Init) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list was incomplete and can now be found at https://github.com/wireapp/node-addressbook/graphs/contributors