New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

barky

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barky - npm Package Compare versions

Comparing version 1.0.48 to 1.0.49

4

dist/digest/alerter.js

@@ -31,3 +31,3 @@ "use strict";

}
const snapshots = context.getSnapshotsForChannel(channel);
const snapshots = context.getAlertableSnapshotsForChannel(config, channel);
alert.start_date = earliestDateFor(snapshots);

@@ -55,3 +55,3 @@ yield channel.sendNewAlert(snapshots, alert);

}
const snapshots = context.getSnapshotsForChannel(channel);
const snapshots = context.getAlertableSnapshotsForChannel(config, channel);
if (channel.canSendAlert(alert)) {

@@ -58,0 +58,0 @@ yield channel.sendOngoingAlert(snapshots, alert);

@@ -24,3 +24,3 @@ import { Result } from "../models/result";

get snapshots(): Snapshot[];
getSnapshotsForChannel(channel: ChannelConfig): Snapshot[];
getAlertableSnapshotsForChannel(config: DigestConfiguration, channel: ChannelConfig): Snapshot[];
getLastSnapshotFor(uniqueId: string): Snapshot;

@@ -27,0 +27,0 @@ deleteLogs(logs: MonitorLog[]): void;

@@ -96,4 +96,4 @@ "use strict";

}
getSnapshotsForChannel(channel) {
return this.snapshots
getAlertableSnapshotsForChannel(config, channel) {
return this.alertableSnapshots(config)
.filter(x => x.isDigestable)

@@ -100,0 +100,0 @@ .filter(x => { var _a, _b; return (_b = (_a = x.alert) === null || _a === void 0 ? void 0 : _a.channels) === null || _b === void 0 ? void 0 : _b.some(c => channel.isMatchFor(c)); });

{
"name": "barky",
"version": "1.0.48",
"version": "1.0.49",
"description": "A simple cloud services watchdog with digest notification support & no external dependencies",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Rohland/barky#readme",

{
"name": "barky",
"version": "1.0.48",
"version": "1.0.49",
"description": "A simple cloud services watchdog with digest notification support & no external dependencies",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Rohland/barky#readme",

@@ -378,3 +378,3 @@ # Barky - Cloud Watchdog

mute-windows: # alerts are silenced if generated in these window periods
- match: mysql:performance # only for monitors matching this regex
- match: mysql.*performance # only for monitors matching this regex
time: 00:00 - 06:00

@@ -425,6 +425,15 @@ - date: 2023-08-27 # only matches for this specific date

- `match`: regex to match monitor names (not required)
- `match`: regex to match monitor identifier(see below for format) (not required)
- `date`: specific date to match (not required)
- `time`: time range to match (required)
The `match` regular expression is used to match against the monitor identifier that is a string value composed of:
- `type` - the type of monitor (example: web, sumo, mysql)
- `label` - the name of the monitor (example: web-performance)
- `identifier` - the name of the failing identifier (example: www.codeo.co.za)
The value is composed as follows: `type|label|identifier`. For example: `web|web-performance|www.codeo.co.za`. The regular expression for match
will thus be compared against this string value (case insensitive).
### SMS

@@ -431,0 +440,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc