@live-change/security-service 0.2.18 → 0.2.19
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/definition.js +0 -1
- package/event.js +2 -2
- package/package.json +2 -2
- package/utils.js +1 -1
package/definition.js
CHANGED
package/event.js
CHANGED
|
@@ -7,12 +7,12 @@ const lcp = require('@live-change/pattern')
|
|
|
7
7
|
const lcpDb = require('@live-change/pattern-db')
|
|
8
8
|
const { request } = require('http')
|
|
9
9
|
|
|
10
|
-
const securityPatterns = definition.config
|
|
10
|
+
const securityPatterns = definition.config?.patterns ?? []
|
|
11
11
|
const relationsStore = lcpDb.relationsStore(app.dao, app.databaseName, 'security_relations')
|
|
12
12
|
lcp.prepareModelForLive(securityPatterns)
|
|
13
13
|
//console.log("SECURITY PATTERNS", securityPatterns)
|
|
14
14
|
|
|
15
|
-
const securityCounters = definition.config
|
|
15
|
+
const securityCounters = definition.config?.counters ?? []
|
|
16
16
|
|
|
17
17
|
definition.beforeStart(service => {
|
|
18
18
|
relationsStore.createTable()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/security-service",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"@live-change/pattern-db": "^0.2.2",
|
|
27
27
|
"nodemailer": "^6.7.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c2833a9660374ee17dd3def99fd1cdf47f6b1531"
|
|
30
30
|
}
|
package/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const app = require("@live-change/framework").app()
|
|
2
2
|
const definition = require('./definition.js')
|
|
3
3
|
|
|
4
|
-
const clientKeys = definition.config
|
|
4
|
+
const clientKeys = definition.config?.clientKeys ?? []
|
|
5
5
|
|
|
6
6
|
function multiKeyIndexQuery(keys, indexName, tableName) {
|
|
7
7
|
return ['database', 'query', app.databaseName, `(${
|