backend-plus 2.5.2-betha.22 → 2.5.2-betha.24

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.
@@ -1,29 +1,29 @@
1
- "use strict";
2
-
3
- module.exports = function(context){
4
- var admin=context.be.isAdmin(context);
5
- return context.be.tableDefAdapt({
6
- name:'tokens',
7
- elementName:'token',
8
- schema:'his',
9
- editable:admin,
10
- fields:[
11
- {name:'token' , typeName:'text' , nullable:false },
12
- {name:'date' , typeName:'timestamp' , nullable:false },
13
- {name:'username' , typeName:'text' , nullable:false },
14
- {name:'useragent' , typeName:'jsonb' , nullable:false },
15
- {name:'tokentype' , typeName:'text' },
16
- {name:'due' , typeName:'timestamp' },
17
- {name:'info' , typeName:'jsonb' },
18
- ],
19
- primaryKey:['token'],
20
- foreignKeys:[
21
- //{references:'usuarios', fields:['usuario']},
22
- ],
23
- sql:{
24
- isTable: true,
25
- from: `(select * from his.tokens order by date desc)`,
26
- skipEnance:true,
27
- },
28
- }, context);
1
+ "use strict";
2
+
3
+ module.exports = function(context){
4
+ var admin=context.be.isAdmin(context);
5
+ return context.be.tableDefAdapt({
6
+ name:'tokens',
7
+ elementName:'token',
8
+ schema:'his',
9
+ editable:admin,
10
+ fields:[
11
+ {name:'token' , typeName:'text' , nullable:false },
12
+ {name:'date' , typeName:'timestamp' , nullable:false },
13
+ {name:'username' , typeName:'text' , nullable:false },
14
+ {name:'useragent' , typeName:'jsonb' , nullable:false },
15
+ {name:'tokentype' , typeName:'text' },
16
+ {name:'due' , typeName:'timestamp' },
17
+ {name:'info' , typeName:'jsonb' },
18
+ ],
19
+ primaryKey:['token'],
20
+ foreignKeys:[
21
+ //{references:'usuarios', fields:['usuario']},
22
+ ],
23
+ sql:{
24
+ isTable: true,
25
+ from: `(select * from his.tokens order by date desc)`,
26
+ skipEnance:true,
27
+ },
28
+ }, context);
29
29
  }
package/package.json CHANGED
@@ -1,137 +1,137 @@
1
- {
2
- "name": "backend-plus",
3
- "description": "Backend for the anti Pareto rule",
4
- "version": "2.5.2-betha.22",
5
- "author": "Codenautas <codenautas@googlegroups.com>",
6
- "license": "MIT",
7
- "repository": "codenautas/backend-plus",
8
- "main": "lib/backend-plus.js",
9
- "types": "lib/backend-plus.d.ts",
10
- "files": [
11
- "lib",
12
- "for-client",
13
- "unlogged",
14
- "src",
15
- "install"
16
- ],
17
- "contributors": [
18
- {
19
- "name": "Estefanía Capece",
20
- "email": "eycapece@gmail.com"
21
- },
22
- {
23
- "name": "Emilio Platzer",
24
- "email": "emilioplatzer@gmail.com"
25
- },
26
- {
27
- "name": "Manuel De la Penna",
28
- "email": "manueldelapenna@gmail.com"
29
- }
30
- ],
31
- "dependencies": {
32
- "@upgraded/locate-path": "^6.0.0-alfa.1",
33
- "ajax-best-promise": "^0.4.2",
34
- "backend-skins": "^0.1.15",
35
- "best-globals": "^2.0.1",
36
- "big.js": "^7.0.1",
37
- "body-parser": "^2.2.0",
38
- "cast-error": "^0.1.2",
39
- "castellano": "^0.1.4",
40
- "connect-pg-simple": "^10.0.0",
41
- "cookie-parser": "^1.4.7",
42
- "cors": "^2.8.5",
43
- "dialog-promise": "^0.10.2",
44
- "discrepances": "^0.2.9",
45
- "express": "^5.1.0",
46
- "express-session": "^1.18.2",
47
- "express-useragent": "^1.0.15",
48
- "fs-extra": "^11.3.1",
49
- "js-to-html": "^1.3.2",
50
- "js-yaml": "^4.1.0",
51
- "json4all": "^1.4.0",
52
- "lazy-some": "^0.1.0",
53
- "like-ar": "^0.5.1",
54
- "login-plus": "^1.8.0",
55
- "memorystore": "^1.6.7",
56
- "mini-tools": "^1.13.4",
57
- "moment": "^2.30.1",
58
- "multiparty": "^4.2.3",
59
- "nodemailer": "^7.0.6",
60
- "numeral": "^2.0.6",
61
- "pg-promise-strict": "^1.4.3",
62
- "pg-triggers": "0.4.3",
63
- "pikaday": "^1.8.2",
64
- "pug": "^3.0.3",
65
- "read-yaml-promise": "^1.0.2",
66
- "regexplicit": "^0.1.3",
67
- "require-bro": "^0.3.2",
68
- "self-explain": "^0.11.0",
69
- "serve-content": "^1.0.2",
70
- "session-file-store": "^1.5.0",
71
- "simple-git": "^3.28.0",
72
- "sql-tools": "^0.1.2",
73
- "stack-trace": "^0.0.10",
74
- "stylus": "0.64.0",
75
- "type-store": "^0.4.5",
76
- "typed-controls": "^0.12.2",
77
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
78
- },
79
- "devDependencies": {
80
- "@types/big.js": "^6.2.2",
81
- "@types/expect.js": "~0.3.32",
82
- "@types/express": "^5.0.3",
83
- "@types/express-useragent": "^1.0.5",
84
- "@types/fs-extra": "^11.0.4",
85
- "@types/js-yaml": "^4.0.9",
86
- "@types/mocha": "^10.0.10",
87
- "@types/multiparty": "~4.2.1",
88
- "@types/node": "^24.4.0",
89
- "@types/nodemailer": "^7.0.1",
90
- "@types/numeral": "~2.0.5",
91
- "@types/session-file-store": "^1.2.5",
92
- "@types/stack-trace": "~0.0.33",
93
- "@types/websql": "~0.0.30",
94
- "esprima": "^4.0.1",
95
- "expect.js": "~0.3.1",
96
- "karma": "6.4.4",
97
- "karma-chrome-launcher": "^3.2.0",
98
- "karma-expect": "^1.1.3",
99
- "karma-firefox-launcher": "^2.1.3",
100
- "karma-ie-launcher": "^1.0.0",
101
- "karma-mocha": "^2.0.1",
102
- "kill-9": "~0.4.3",
103
- "mocha": "^11.7.2",
104
- "nyc": "^17.1.0",
105
- "puppeteer": "^24.20.0",
106
- "sinon": "^21.0.0",
107
- "supertest": "^7.1.4",
108
- "types.d.ts": "~0.6.22",
109
- "typescript": "^5.9.2",
110
- "why-is-node-running": "^3.2.2"
111
- },
112
- "engines": {
113
- "node": ">= 18"
114
- },
115
- "scripts": {
116
- "test": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --single-run --bail test/test-*.js",
117
- "test-karma": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test-k*.js",
118
- "test-why": "node --expose-internals ./node_modules/mocha/bin/_mocha --reporter spec --bail test/test*.js",
119
- "test-ci": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test*.js",
120
- "test-good": "mocha --reporter spec --bail --check-leaks test/test*.js",
121
- "example-pu": "node test/puppeteer/first-step.js",
122
- "test-pu": "node ./test/download_puppeteer && mocha --reporter spec --bail --check-leaks --globals cptable --globals QUOTE --globals __core-js_shared__ test/test-pu.js",
123
- "test-server": "mocha --reporter spec --single-run --bail test/test.js",
124
- "server-test": "node test/run-simple-backend.js",
125
- "example-tables": "node examples/tables/server/server-tables.js --dir-x examples/tables",
126
- "example-fichas": "node examples/fichero/server/server-fichas.js",
127
- "example-4test": "node examples/4test/server/server-4test.js",
128
- "prepublish": "(tsc -p tsconfig-server.json || echo \"continue w/error\") && (tsc -p tsconfig-client.json || echo \"continue w/error\")"
129
- },
130
- "qa-control": {
131
- "package-version": "0.3.0",
132
- "run-in": "server",
133
- "type": "lib",
134
- "stage": "designing",
135
- "coverage": 100
136
- }
137
- }
1
+ {
2
+ "name": "backend-plus",
3
+ "description": "Backend for the anti Pareto rule",
4
+ "version": "2.5.2-betha.24",
5
+ "author": "Codenautas <codenautas@googlegroups.com>",
6
+ "license": "MIT",
7
+ "repository": "codenautas/backend-plus",
8
+ "main": "lib/backend-plus.js",
9
+ "types": "lib/backend-plus.d.ts",
10
+ "files": [
11
+ "lib",
12
+ "for-client",
13
+ "unlogged",
14
+ "src",
15
+ "install"
16
+ ],
17
+ "contributors": [
18
+ {
19
+ "name": "Estefanía Capece",
20
+ "email": "eycapece@gmail.com"
21
+ },
22
+ {
23
+ "name": "Emilio Platzer",
24
+ "email": "emilioplatzer@gmail.com"
25
+ },
26
+ {
27
+ "name": "Manuel De la Penna",
28
+ "email": "manueldelapenna@gmail.com"
29
+ }
30
+ ],
31
+ "dependencies": {
32
+ "@upgraded/locate-path": "^6.0.0-alfa.1",
33
+ "ajax-best-promise": "^0.4.2",
34
+ "backend-skins": "^0.1.15",
35
+ "best-globals": "^2.0.1",
36
+ "big.js": "^7.0.1",
37
+ "body-parser": "^2.2.0",
38
+ "cast-error": "^0.1.2",
39
+ "castellano": "^0.1.4",
40
+ "connect-pg-simple": "^10.0.0",
41
+ "cookie-parser": "^1.4.7",
42
+ "cors": "^2.8.5",
43
+ "dialog-promise": "^0.10.2",
44
+ "discrepances": "^0.2.9",
45
+ "express": "^5.1.0",
46
+ "express-session": "^1.18.2",
47
+ "express-useragent": "^1.0.15",
48
+ "fs-extra": "^11.3.1",
49
+ "js-to-html": "^1.3.2",
50
+ "js-yaml": "^4.1.0",
51
+ "json4all": "^1.4.0",
52
+ "lazy-some": "^0.1.0",
53
+ "like-ar": "^0.5.1",
54
+ "login-plus": "^1.8.0",
55
+ "memorystore": "^1.6.7",
56
+ "mini-tools": "^1.13.4",
57
+ "moment": "^2.30.1",
58
+ "multiparty": "^4.2.3",
59
+ "nodemailer": "^7.0.6",
60
+ "numeral": "^2.0.6",
61
+ "pg-promise-strict": "^1.4.3",
62
+ "pg-triggers": "0.4.3",
63
+ "pikaday": "^1.8.2",
64
+ "pug": "^3.0.3",
65
+ "read-yaml-promise": "^1.0.2",
66
+ "regexplicit": "^0.1.3",
67
+ "require-bro": "^0.3.2",
68
+ "self-explain": "^0.11.0",
69
+ "serve-content": "^1.0.2",
70
+ "session-file-store": "^1.5.0",
71
+ "simple-git": "^3.28.0",
72
+ "sql-tools": "^0.1.2",
73
+ "stack-trace": "^0.0.10",
74
+ "stylus": "0.64.0",
75
+ "type-store": "^0.4.5",
76
+ "typed-controls": "^0.12.2",
77
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
78
+ },
79
+ "devDependencies": {
80
+ "@types/big.js": "^6.2.2",
81
+ "@types/expect.js": "~0.3.32",
82
+ "@types/express": "^5.0.3",
83
+ "@types/express-useragent": "^1.0.5",
84
+ "@types/fs-extra": "^11.0.4",
85
+ "@types/js-yaml": "^4.0.9",
86
+ "@types/mocha": "^10.0.10",
87
+ "@types/multiparty": "~4.2.1",
88
+ "@types/node": "^24.4.0",
89
+ "@types/nodemailer": "^7.0.1",
90
+ "@types/numeral": "~2.0.5",
91
+ "@types/session-file-store": "^1.2.5",
92
+ "@types/stack-trace": "~0.0.33",
93
+ "@types/websql": "~0.0.30",
94
+ "esprima": "^4.0.1",
95
+ "expect.js": "~0.3.1",
96
+ "karma": "6.4.4",
97
+ "karma-chrome-launcher": "^3.2.0",
98
+ "karma-expect": "^1.1.3",
99
+ "karma-firefox-launcher": "^2.1.3",
100
+ "karma-ie-launcher": "^1.0.0",
101
+ "karma-mocha": "^2.0.1",
102
+ "kill-9": "~0.4.3",
103
+ "mocha": "^11.7.2",
104
+ "nyc": "^17.1.0",
105
+ "puppeteer": "^24.20.0",
106
+ "sinon": "^21.0.0",
107
+ "supertest": "^7.1.4",
108
+ "types.d.ts": "~0.6.22",
109
+ "typescript": "^5.9.2",
110
+ "why-is-node-running": "^3.2.2"
111
+ },
112
+ "engines": {
113
+ "node": ">= 18"
114
+ },
115
+ "scripts": {
116
+ "test": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --single-run --bail test/test-*.js",
117
+ "test-karma": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test-k*.js",
118
+ "test-why": "node --expose-internals ./node_modules/mocha/bin/_mocha --reporter spec --bail test/test*.js",
119
+ "test-ci": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test*.js",
120
+ "test-good": "mocha --reporter spec --bail --check-leaks test/test*.js",
121
+ "example-pu": "node test/puppeteer/first-step.js",
122
+ "test-pu": "node ./test/download_puppeteer && mocha --reporter spec --bail --check-leaks --globals cptable --globals QUOTE --globals __core-js_shared__ test/test-pu.js",
123
+ "test-server": "mocha --reporter spec --single-run --bail test/test.js",
124
+ "server-test": "node test/run-simple-backend.js",
125
+ "example-tables": "node examples/tables/server/server-tables.js --dir-x examples/tables",
126
+ "example-fichas": "node examples/fichero/server/server-fichas.js",
127
+ "example-4test": "node examples/4test/server/server-4test.js",
128
+ "prepublish": "(tsc -p tsconfig-server.json || echo \"continue w/error\") && (tsc -p tsconfig-client.json || echo \"continue w/error\")"
129
+ },
130
+ "qa-control": {
131
+ "package-version": "0.3.0",
132
+ "run-in": "server",
133
+ "type": "lib",
134
+ "stage": "designing",
135
+ "coverage": 100
136
+ }
137
+ }