@live-change/security-service 0.8.10 → 0.8.11

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.
Files changed (2) hide show
  1. package/event.js +2 -1
  2. package/package.json +5 -5
package/event.js CHANGED
@@ -9,13 +9,14 @@ import lcpDb from '@live-change/pattern-db'
9
9
  import { request } from 'http'
10
10
 
11
11
  const securityPatterns = definition.config?.patterns ?? []
12
- const relationsStore = lcpDb.relationsStore(app.dao, app.databaseName, 'security_relations')
13
12
  lcp.prepareModelForLive(securityPatterns)
14
13
  //console.log("SECURITY PATTERNS", securityPatterns)
15
14
 
16
15
  const securityCounters = definition.config?.counters ?? []
17
16
 
17
+ let relationsStore
18
18
  definition.beforeStart(service => {
19
+ relationsStore = lcpDb.relationsStore(app.dao, app.databaseName, 'security_relations')
19
20
  relationsStore.createTable()
20
21
  })
21
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/security-service",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/framework": "^0.8.10",
26
- "@live-change/pattern": "^0.8.10",
27
- "@live-change/pattern-db": "^0.8.10",
25
+ "@live-change/framework": "^0.8.11",
26
+ "@live-change/pattern": "^0.8.11",
27
+ "@live-change/pattern-db": "^0.8.11",
28
28
  "nodemailer": "^6.7.2"
29
29
  },
30
- "gitHead": "b6d6d60903abd25c8da4a55f653aafafb6cf04f7"
30
+ "gitHead": "c69f8c0c5b1f9c8b62d74bd44e97dccbdc789c5a"
31
31
  }