@cronwatch/sdk 0.6.1 → 0.7.0
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/README.md +2 -0
- package/dist/anthropic.cjs.map +1 -1
- package/dist/anthropic.d.cts +1 -1
- package/dist/anthropic.d.ts +1 -1
- package/dist/anthropic.js.map +1 -1
- package/dist/bugsnag.d.cts +1 -1
- package/dist/bugsnag.d.ts +1 -1
- package/dist/{client-B7bqnkI5.d.cts → client-B5hM4l-D.d.ts} +5 -2
- package/dist/{client-pmqH3apS.d.ts → client-Di5HAWQz.d.cts} +5 -2
- package/dist/d1.d.cts +1 -1
- package/dist/d1.d.ts +1 -1
- package/dist/datadog.d.cts +1 -1
- package/dist/datadog.d.ts +1 -1
- package/dist/discord.d.cts +1 -1
- package/dist/discord.d.ts +1 -1
- package/dist/{email-_H0faCh3.d.ts → email-Ciq7GRn4.d.ts} +1 -1
- package/dist/{email-BJ-z_epD.d.cts → email-DX6gkd5H.d.cts} +1 -1
- package/dist/honeybadger.d.cts +1 -1
- package/dist/honeybadger.d.ts +1 -1
- package/dist/index.cjs +29 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/mailgun.d.cts +2 -2
- package/dist/mailgun.d.ts +2 -2
- package/dist/newrelic.d.cts +1 -1
- package/dist/newrelic.d.ts +1 -1
- package/dist/pg-cron.d.cts +2 -2
- package/dist/pg-cron.d.ts +2 -2
- package/dist/postgres.d.cts +1 -1
- package/dist/postgres.d.ts +1 -1
- package/dist/postmark.d.cts +2 -2
- package/dist/postmark.d.ts +2 -2
- package/dist/resend.d.cts +2 -2
- package/dist/resend.d.ts +2 -2
- package/dist/rollbar.d.cts +1 -1
- package/dist/rollbar.d.ts +1 -1
- package/dist/sendgrid.d.cts +2 -2
- package/dist/sendgrid.d.ts +2 -2
- package/dist/sentry.d.cts +1 -1
- package/dist/sentry.d.ts +1 -1
- package/dist/ses.d.cts +2 -2
- package/dist/ses.d.ts +2 -2
- package/dist/slack.d.cts +1 -1
- package/dist/slack.d.ts +1 -1
- package/dist/sqlite.d.cts +1 -1
- package/dist/sqlite.d.ts +1 -1
- package/dist/twilio.d.cts +1 -1
- package/dist/twilio.d.ts +1 -1
- package/dist/{types-Ddq1MUPL.d.cts → types-BjBbCGeJ.d.cts} +4 -1
- package/dist/{types-Ddq1MUPL.d.ts → types-BjBbCGeJ.d.ts} +4 -1
- package/dist/webhook.d.cts +1 -1
- package/dist/webhook.d.ts +1 -1
- package/package.json +1 -1
package/dist/mailgun.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
|
+
import { E as EmailOptions } from './email-DX6gkd5H.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Mailgun. API reference: https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages
|
package/dist/mailgun.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
|
+
import { E as EmailOptions } from './email-Ciq7GRn4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Mailgun. API reference: https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages
|
package/dist/newrelic.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Alert, a as AlertChannel } from './types-
|
|
1
|
+
import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* New Relic Event API. API reference: https://docs.newrelic.com/docs/data-apis/ingest-apis/event-api/introduction-event-api/
|
package/dist/newrelic.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Alert, a as AlertChannel } from './types-
|
|
1
|
+
import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* New Relic Event API. API reference: https://docs.newrelic.com/docs/data-apis/ingest-apis/event-api/introduction-event-api/
|
package/dist/pg-cron.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Source } from './client-
|
|
2
|
-
import { i as JobOptions, R as Run } from './types-
|
|
1
|
+
import { S as Source } from './client-Di5HAWQz.cjs';
|
|
2
|
+
import { i as JobOptions, R as Run } from './types-BjBbCGeJ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Anything with a pg-style query(): a `pg` Pool or Client, or a wrapper
|
package/dist/pg-cron.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Source } from './client-
|
|
2
|
-
import { i as JobOptions, R as Run } from './types-
|
|
1
|
+
import { S as Source } from './client-B5hM4l-D.js';
|
|
2
|
+
import { i as JobOptions, R as Run } from './types-BjBbCGeJ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Anything with a pg-style query(): a `pg` Pool or Client, or a wrapper
|
package/dist/postgres.d.cts
CHANGED
package/dist/postgres.d.ts
CHANGED
package/dist/postmark.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
|
+
import { E as EmailOptions } from './email-DX6gkd5H.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Postmark. API reference: https://postmarkapp.com/developer/api/email-api
|
package/dist/postmark.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
|
+
import { E as EmailOptions } from './email-Ciq7GRn4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Postmark. API reference: https://postmarkapp.com/developer/api/email-api
|
package/dist/resend.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
|
+
import { E as EmailOptions } from './email-DX6gkd5H.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Resend. API reference: https://resend.com/docs/api-reference/emails/send-email
|
package/dist/resend.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
|
+
import { E as EmailOptions } from './email-Ciq7GRn4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Resend. API reference: https://resend.com/docs/api-reference/emails/send-email
|
package/dist/rollbar.d.cts
CHANGED
package/dist/rollbar.d.ts
CHANGED
package/dist/sendgrid.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
|
+
import { E as EmailOptions } from './email-DX6gkd5H.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* SendGrid. API reference: https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send
|
package/dist/sendgrid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
|
+
import { E as EmailOptions } from './email-Ciq7GRn4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* SendGrid. API reference: https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send
|
package/dist/sentry.d.cts
CHANGED
package/dist/sentry.d.ts
CHANGED
package/dist/ses.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
|
|
2
|
+
import { E as EmailOptions } from './email-DX6gkd5H.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Amazon SES, API v2 SendEmail. API reference: https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
|
package/dist/ses.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AlertChannel } from './types-
|
|
2
|
-
import { E as EmailOptions } from './email-
|
|
1
|
+
import { a as AlertChannel } from './types-BjBbCGeJ.js';
|
|
2
|
+
import { E as EmailOptions } from './email-Ciq7GRn4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Amazon SES, API v2 SendEmail. API reference: https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
|
package/dist/slack.d.cts
CHANGED
package/dist/slack.d.ts
CHANGED
package/dist/sqlite.d.cts
CHANGED
package/dist/sqlite.d.ts
CHANGED
package/dist/twilio.d.cts
CHANGED
package/dist/twilio.d.ts
CHANGED
|
@@ -37,7 +37,10 @@ interface JobOptions {
|
|
|
37
37
|
* A successful run must produce output that satisfies this, or it counts as
|
|
38
38
|
* failed. A string must appear in the output, a RegExp must match it, and a
|
|
39
39
|
* function must return true for it. Catches the job that exits cleanly and
|
|
40
|
-
* did nothing.
|
|
40
|
+
* did nothing. A RegExp runs on the runtime's own engine with no time limit,
|
|
41
|
+
* as a function does, so avoid unbounded repeats that can match the same
|
|
42
|
+
* text (`/\n*\n*x/`, `/(a+)+b/`): over a long output that does not match
|
|
43
|
+
* they backtrack for seconds.
|
|
41
44
|
*/
|
|
42
45
|
expect?: ExpectRule;
|
|
43
46
|
/** Alert on the Nth consecutive failure rather than the first. Default 1. */
|
|
@@ -37,7 +37,10 @@ interface JobOptions {
|
|
|
37
37
|
* A successful run must produce output that satisfies this, or it counts as
|
|
38
38
|
* failed. A string must appear in the output, a RegExp must match it, and a
|
|
39
39
|
* function must return true for it. Catches the job that exits cleanly and
|
|
40
|
-
* did nothing.
|
|
40
|
+
* did nothing. A RegExp runs on the runtime's own engine with no time limit,
|
|
41
|
+
* as a function does, so avoid unbounded repeats that can match the same
|
|
42
|
+
* text (`/\n*\n*x/`, `/(a+)+b/`): over a long output that does not match
|
|
43
|
+
* they backtrack for seconds.
|
|
41
44
|
*/
|
|
42
45
|
expect?: ExpectRule;
|
|
43
46
|
/** Alert on the Nth consecutive failure rather than the first. Default 1. */
|
package/dist/webhook.d.cts
CHANGED
package/dist/webhook.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cronwatch/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Cron and scheduled-job monitoring that lives inside your app. Wrap a job, mount a route, get told when it is missed, failed, slow or over budget. No server to run.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|