hdt 3.2.2 → 3.3.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.
|
@@ -163,7 +163,7 @@ std::ostream &operator<<(std::ostream &stream, StopWatch &sw) {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
std::string StopWatch::toHuman(unsigned long long time) {
|
|
166
|
-
|
|
166
|
+
uint64_t tot_secs = time/1000000;
|
|
167
167
|
|
|
168
168
|
unsigned int hours = tot_secs/3600;
|
|
169
169
|
unsigned int mins = (tot_secs/60) % 60;
|
package/lib/HdtDocument.cc
CHANGED
|
@@ -62,10 +62,8 @@ const Nan::Persistent<Function>& HdtDocument::GetConstructor() {
|
|
|
62
62
|
Nan::SetPrototypeMethod(constructorTemplate, "_readHeader", ReadHeader);
|
|
63
63
|
Nan::SetPrototypeMethod(constructorTemplate, "_changeHeader", ChangeHeader);
|
|
64
64
|
Nan::SetPrototypeMethod(constructorTemplate, "_close", Close);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Nan::SetAccessor(constructorTemplate->PrototypeTemplate(),
|
|
68
|
-
Nan::New("closed").ToLocalChecked(), Closed);
|
|
65
|
+
constructorTemplate->PrototypeTemplate()->SetAccessorProperty(Nan::New("_features").ToLocalChecked(), Nan::New<v8::FunctionTemplate>(GetFeatures), v8::Local<v8::FunctionTemplate>());
|
|
66
|
+
constructorTemplate->PrototypeTemplate()->SetAccessorProperty(Nan::New("closed").ToLocalChecked(), Nan::New<v8::FunctionTemplate>(GetClosed), v8::Local<v8::FunctionTemplate>());
|
|
69
67
|
// Set constructor
|
|
70
68
|
constructor.Reset(Nan::GetFunction(constructorTemplate).ToLocalChecked());
|
|
71
69
|
}
|
|
@@ -701,7 +699,7 @@ NAN_METHOD(HdtDocument::FetchDistinctTerms) {
|
|
|
701
699
|
|
|
702
700
|
|
|
703
701
|
// Gets a bitvector indicating the supported features.
|
|
704
|
-
|
|
702
|
+
NAN_METHOD(HdtDocument::GetFeatures) {
|
|
705
703
|
HdtDocument* hdtDocument = Unwrap<HdtDocument>(info.This());
|
|
706
704
|
info.GetReturnValue().Set(Nan::New<Integer>(hdtDocument->features));
|
|
707
705
|
}
|
|
@@ -732,7 +730,7 @@ NAN_METHOD(HdtDocument::Close) {
|
|
|
732
730
|
|
|
733
731
|
|
|
734
732
|
// Gets a boolean indicating whether the document is closed.
|
|
735
|
-
|
|
733
|
+
NAN_METHOD(HdtDocument::GetClosed) {
|
|
736
734
|
HdtDocument* hdtDocument = Unwrap<HdtDocument>(info.This());
|
|
737
735
|
info.GetReturnValue().Set(Nan::New<Boolean>(!hdtDocument->hdt));
|
|
738
736
|
}
|
package/lib/HdtDocument.h
CHANGED
|
@@ -45,11 +45,11 @@ class HdtDocument : public node::ObjectWrap {
|
|
|
45
45
|
// HdtDocument#_changeHeader(headerString, outputFile, callback, self)
|
|
46
46
|
static NAN_METHOD(ChangeHeader);
|
|
47
47
|
// HdtDocument#_features
|
|
48
|
-
static
|
|
48
|
+
static NAN_METHOD(GetFeatures);
|
|
49
49
|
// HdtDocument#close([callback], [self])
|
|
50
50
|
static NAN_METHOD(Close);
|
|
51
51
|
// HdtDocument#closed
|
|
52
|
-
static
|
|
52
|
+
static NAN_METHOD(GetClosed);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
// Check if a term is a variable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hdt",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Native bindings to access HDT compressed triple files.",
|
|
5
5
|
"author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"minimist": "^1.1.0",
|
|
42
|
-
"n3": "^
|
|
43
|
-
"nan": "^2.
|
|
44
|
-
"rdf-string": "^
|
|
42
|
+
"n3": "^2.0.1",
|
|
43
|
+
"nan": "^2.24.0",
|
|
44
|
+
"rdf-string": "^2.0.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"eslint": "^5.3.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"precommit-hook": "^3.0.0",
|
|
50
50
|
"replace-in-file": "^8.3.0",
|
|
51
51
|
"should": "^13.1.0",
|
|
52
|
-
"@comunica/utils-bindings-factory": "^
|
|
52
|
+
"@comunica/utils-bindings-factory": "^5.0.0"
|
|
53
53
|
},
|
|
54
54
|
"pre-commit": [
|
|
55
55
|
"lint",
|