nervatura 5.0.0-beta.20 → 5.0.0-beta.21

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/LICENSE ADDED
@@ -0,0 +1,60 @@
1
+ Nervatura License
2
+ =========
3
+
4
+ Nervatura Framework is Licensed under the [LGPL license version 3]
5
+ (http://www.gnu.org/licenses/lgpl.html)
6
+
7
+ Copyright © 2011-2019, Csaba Kappel.
8
+ All rights reserved.
9
+
10
+ ### On Commercial Redistribution
11
+
12
+ In accordance with LGPL you may:
13
+ - redistribute Nervatura with your apps
14
+ - release your applications which use official Nervatura libraries under any license you wish
15
+ But you must:
16
+ - make clear in the documentation that your application uses Nervatura
17
+ - release any modification of the Nervatura libraries under the LGPLv3 license
18
+
19
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
20
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
21
+ PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
22
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23
+ FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
24
+ PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
25
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
26
+
27
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
28
+ HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE,
29
+ BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
30
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
31
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
32
+ OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
33
+ PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
34
+
35
+ ### Licenses for third party contributed software
36
+
37
+ Nervatura contains third party software under the node_modules and lib/pylib and folders.
38
+ Each file/module in contrib is distributed with Nervatura under its original license.
39
+ The javascript licenses are in the code itself. Here we list some of them.
40
+
41
+ #### node_modules folder:
42
+ The full list of the modules please see the (package.json) file
43
+
44
+ #### sample programs:
45
+
46
+ #### ConfigObj (Python, Nervatura WxPython Sample Client)
47
+ Copyright © 2005-2010 Michael Foord, Nicola Larosa
48
+ Homepage: http://www.voidspace.org.uk/python/configobj.html
49
+ Licence: BSD
50
+ http://www.voidspace.org.uk/python/license.shtml
51
+
52
+ #### ObjectAttrValidator (Python, Nervatura WxPython Sample Client)
53
+ Copyright © 2004 by Samuel Reynolds
54
+ Licence: BSD
55
+ http://auditory-research-suite.googlecode.com/svn/trunk/src/python/SI/PTCommon/ObjectAttrValidator2.py
56
+
57
+ #### Knockout (Javascript, JSON-RPC Sample)
58
+ Homepage: http://knockoutjs.com
59
+ Licence: MIT
60
+ http://opensource.org/licenses/mit-license.php
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ Nervatura
2
+ =========
3
+
4
+ Open Source Business Management Framework
5
+
6
+ ## Features
7
+
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
+
10
+ The framework is based on Nervatura [Object Model](https://nervatura.github.io/nervatura/docs/model) specification. The main aspects of its design were:
11
+
12
+ * simple and transparent structure
13
+ * capability of storing different data types of an average company
14
+ * effective, easily expandable and secure data storage
15
+ * support of several database types
16
+ * well documented, easy data management
17
+
18
+ The framework is based on Nervatura Object [**MODEL**](https://nervatura.github.io/nervatura/docs/model) specification. It is a general **open-data model**, which can store all information generated in the operation of a usual corporation.
19
+
20
+ The Nervatura service is small and fast. A single ~6 MB file contains all the necessary dependencies.
21
+ The framework includes:
22
+ - [**CLI API**](https://nervatura.github.io/nervatura/docs/service/cli#cli-api) (command line)
23
+ - [**CGO API**](https://nervatura.github.io/nervatura/docs/service/cli#cgo-api) (C shared library)
24
+ - standard HTTP [**RESTful API**](https://nervatura.github.io/nervatura/docs/service/api) for client communication
25
+ - HTTP/2-based [**gRPC API**](https://nervatura.github.io/nervatura/docs/service/grpc) for server-side communication
26
+ - JWT generation, external token validation, SSL/TLS support and other HTTP security [settings](https://github.com/nervatura/nervatura-service/blob/master/.env.example)
27
+ - built-in database drivers for postgres, mysql, sqlite databases
28
+ - a basic report generation library for creating simple PDF documents (eg. order, invoice, etc.)
29
+ or CSV data files
30
+ - sample report templates and [**REPORT EDITOR**](https://nervatura.github.io/nervatura/docs/client/program/editor) GUI
31
+ - PWA [**CLIENT**](https://nervatura.github.io/nervatura/docs/client) application and a basic **ADMIN** interface
32
+
33
+ The client and report interface supports [multilingualism](https://nervatura.github.io/nervatura/docs/start/customization#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)
35
+
36
+ [**Installation**](https://nervatura.github.io/nervatura/docs/install) and [**Quick Start**](https://nervatura.github.io/nervatura/docs/start)
37
+
38
+ More info see
39
+
40
+ http://www.nervatura.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nervatura",
3
- "version": "5.0.0-beta.20",
3
+ "version": "5.0.0-beta.21",
4
4
  "description": "Open Source Business Management Framework",
5
5
  "keywords": [
6
6
  "business management",
@@ -40,6 +40,7 @@
40
40
  "preuninstall": "node postinstall.js uninstall"
41
41
  },
42
42
  "service": {
43
+ "version": "5.0.0-beta.20",
43
44
  "name": "nervatura",
44
45
  "path": "./bin",
45
46
  "url": "https://github.com/nervatura/nervatura-service/releases/download/v{{version}}/nervatura_{{version}}_{{platform}}_{{arch}}.tar.gz"
package/postinstall.js CHANGED
@@ -36,6 +36,10 @@ function validateConfiguration(packageJson) {
36
36
  return "'service' property must be defined and be an object";
37
37
  }
38
38
 
39
+ if (!packageJson.service.version) {
40
+ return "'version' property must be specified";
41
+ }
42
+
39
43
  if (!packageJson.service.name) {
40
44
  return "'name' property is necessary";
41
45
  }
@@ -81,7 +85,7 @@ function parsePackageJson() {
81
85
  let binName = packageJson.service.name;
82
86
  let binPath = packageJson.service.path;
83
87
  let url = packageJson.service.url;
84
- let version = packageJson.version;
88
+ let version = packageJson.service.version;
85
89
  if (version[0] === 'v') version = version.substr(1); // strip the 'v' if necessary v0.0.1 => 0.0.1
86
90
 
87
91
  // Binary name on Windows has .exe suffix