nervatura 5.0.0-beta.1 → 5.0.0-beta.13
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.
- package/README.md +5 -4
- package/dist/api.proto +2 -1
- package/package.json +3 -3
- package/postinstall.js +6 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Open Source Business Management Framework
|
|
|
7
7
|
|
|
8
8
|
Nervatura is a business management framework based on **open-data principle**. It can handle any type of business related information, starting from customer details, up to shipping, stock or payment information.
|
|
9
9
|
|
|
10
|
-
The framework is based on Nervatura [Object Model](https://nervatura.github.io/nervatura
|
|
10
|
+
The framework is based on Nervatura [Object Model](https://nervatura.github.io/nervatura/model) specification. The main aspects of its design were:
|
|
11
11
|
|
|
12
12
|
* simple and transparent structure
|
|
13
13
|
* capability of storing different data types of an average company
|
|
@@ -19,7 +19,8 @@ The framework is based on Nervatura Object [**MODEL**](https://nervatura.github.
|
|
|
19
19
|
|
|
20
20
|
The Nervatura service is small and fast. A single ~6 MB file contains all the necessary dependencies.
|
|
21
21
|
The framework includes:
|
|
22
|
-
- CLI (command line)
|
|
22
|
+
- [**CLI API**](https://nervatura.github.io/nervatura/#cli-api) (command line)
|
|
23
|
+
- [**CGO API**](https://nervatura.github.io/nervatura/#cgo-api) (C shared library)
|
|
23
24
|
- standard HTTP [**RESTful API**](https://nervatura.github.io/nervatura/api) for client communication
|
|
24
25
|
- HTTP/2-based [**gRPC API**](https://nervatura.github.io/nervatura/grpc) for server-side communication
|
|
25
26
|
- JWT generation, external token validation, SSL/TLS support and other HTTP security [settings](https://github.com/nervatura/nervatura-service/blob/master/.env.example)
|
|
@@ -29,8 +30,8 @@ or CSV data files
|
|
|
29
30
|
- sample report templates and [**REPORT EDITOR**](https://nervatura.github.io/nervatura/docs/editor) GUI
|
|
30
31
|
- PWA [**CLIENT**](https://nervatura.github.io/nervatura/docs) application and a basic **ADMIN** interface
|
|
31
32
|
|
|
32
|
-
The client and report interface supports [multilingualism](https://nervatura.github.io/nervatura/#customize-the-appearance). The framework can be easily extended with additional interfaces and functions in the
|
|
33
|
-
C#, C++, Dart, Go, Java, Kotlin, Node, Objective-C, PHP, Python, Ruby
|
|
33
|
+
The client and report interface supports [multilingualism](https://nervatura.github.io/nervatura/#customize-the-appearance). The framework can be easily extended with additional interfaces and functions in the supported languages:
|
|
34
|
+
C, C#, C++, Dart, Go, Java, Kotlin, Node, Objective-C, PHP, Python, Ruby (CGO and gRPC API)
|
|
34
35
|
|
|
35
36
|
[**Installation**](https://nervatura.github.io/nervatura/#installation) and [**Quick Start**](https://nervatura.github.io/nervatura/#quick-start)
|
|
36
37
|
|
package/dist/api.proto
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
-
option go_package = "github.com/nervatura/nervatura-
|
|
3
|
+
option go_package = "github.com/nervatura/nervatura-service/pkg/proto";
|
|
4
4
|
|
|
5
5
|
package nervatura;
|
|
6
6
|
|
|
@@ -108,6 +108,7 @@ message RequestUserLogin {
|
|
|
108
108
|
message ResponseUserLogin {
|
|
109
109
|
string token = 1; // Access JWT token
|
|
110
110
|
string engine = 2; // Type of database
|
|
111
|
+
string version = 3; // Service version
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
message RequestTokenDecode {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nervatura",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.13",
|
|
4
4
|
"description": "Open Source Business Management Framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"business management",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"url": "https://github.com/nervatura/nervatura-service/releases/download/v{{version}}/nervatura_{{version}}_{{platform}}_{{arch}}.tar.gz"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"mkdirp": "^0.
|
|
49
|
+
"mkdirp": "^1.0.4",
|
|
50
50
|
"request": "^2.88.2",
|
|
51
|
-
"tar": "^
|
|
51
|
+
"tar": "^6.1.11"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/postinstall.js
CHANGED
|
@@ -12,17 +12,18 @@ const request = require('request'),
|
|
|
12
12
|
|
|
13
13
|
// Mapping from Node's `process.arch` to Golang's `$GOARCH`
|
|
14
14
|
const ARCH_MAPPING = {
|
|
15
|
-
"ia32": "386",
|
|
15
|
+
//"ia32": "386",
|
|
16
16
|
"x64": "amd64",
|
|
17
|
-
"arm": "arm"
|
|
17
|
+
//"arm": "arm",
|
|
18
|
+
"arm64": "arm64"
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
// Mapping between Node's `process.platform` to Golang's
|
|
21
22
|
const PLATFORM_MAPPING = {
|
|
22
|
-
"darwin": "darwin",
|
|
23
|
+
//"darwin": "darwin",
|
|
23
24
|
"linux": "linux",
|
|
24
25
|
"win32": "windows",
|
|
25
|
-
"freebsd": "freebsd"
|
|
26
|
+
//"freebsd": "freebsd"
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
function validateConfiguration(packageJson) {
|
|
@@ -118,7 +119,7 @@ function install(callback) {
|
|
|
118
119
|
|
|
119
120
|
mkdirp.sync(opts.binPath);
|
|
120
121
|
let ungz = zlib.createGunzip();
|
|
121
|
-
let untar = tar.
|
|
122
|
+
let untar = tar.x({cwd: opts.binPath});
|
|
122
123
|
|
|
123
124
|
ungz.on('error', callback);
|
|
124
125
|
untar.on('error', callback);
|