@live-change/security-service 0.8.51 → 0.8.53

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 +6 -6
  2. package/package.json +5 -5
package/event.js CHANGED
@@ -138,13 +138,13 @@ async function processSecurityCounters(event, timestamp, service) {
138
138
  const now = Date.now()
139
139
  const actions = []
140
140
  const counters = securityCounters.filter(counter => counter.match.includes(event.type))
141
- if(counters.length == 0) return
141
+ if(counters.length === 0) return
142
142
  const counterEventsRequests = []
143
143
  for(const counter of counters) {
144
144
  const duration = lcp.parseDuration(counter.duration)
145
145
  for(const eventType of counter.match) {
146
146
  for(const key of counter.keys) {
147
- const request = counterEventsRequests.find(req => req.type == eventType && req.key == key)
147
+ const request = counterEventsRequests.find(req => req.type === eventType && req.key === key)
148
148
  if(request) {
149
149
  request.max = Math.max(request.max, counter.max)
150
150
  request.duration = Math.max(request.duration, duration)
@@ -249,8 +249,8 @@ definition.trigger({
249
249
  eventType: event.type,
250
250
  keys: event.keys,
251
251
  actions,
252
- newRelations: newRelations.filter(rel => rel.type == 'eq'),
253
- canceledRelations: canceledRelations.filter(rel => rel.type == 'eq')
252
+ newRelations: newRelations.filter(rel => rel.type === 'eq'),
253
+ canceledRelations: canceledRelations.filter(rel => rel.type === 'eq')
254
254
  })
255
255
 
256
256
  }
@@ -339,7 +339,7 @@ definition.view({
339
339
  }
340
340
  const newValue = await this.indexRange.get()
341
341
  this.loading = false
342
- if(JSON.stringify(this.value) != JSON.stringify(newValue)) {
342
+ if(JSON.stringify(this.value) !== JSON.stringify(newValue)) {
343
343
  this.value = newValue
344
344
  if(this.value) {
345
345
  this.count = this.value.length
@@ -397,7 +397,7 @@ definition.view({
397
397
  }
398
398
  }
399
399
 
400
- if(eventRequests.length == 0) return
400
+ if(eventRequests.length === 0) return
401
401
  for(const i in eventRequests) {
402
402
  const eventRequest = eventRequests[i]
403
403
  const request = new Request(eventRequest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/security-service",
3
- "version": "0.8.51",
3
+ "version": "0.8.53",
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.51",
26
- "@live-change/pattern": "^0.8.51",
27
- "@live-change/pattern-db": "^0.8.51",
25
+ "@live-change/framework": "^0.8.53",
26
+ "@live-change/pattern": "^0.8.53",
27
+ "@live-change/pattern-db": "^0.8.53",
28
28
  "nodemailer": "^6.7.2"
29
29
  },
30
- "gitHead": "ba8da813894eeb717223aa8d5e364649e4ac0347"
30
+ "gitHead": "39422adadd1863fa396fc4e875936e09428d6cf1"
31
31
  }