@cronwatch/sdk 0.6.0 → 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.
Files changed (56) hide show
  1. package/README.md +2 -0
  2. package/dist/anthropic.cjs.map +1 -1
  3. package/dist/anthropic.d.cts +1 -1
  4. package/dist/anthropic.d.ts +1 -1
  5. package/dist/anthropic.js.map +1 -1
  6. package/dist/bugsnag.d.cts +1 -1
  7. package/dist/bugsnag.d.ts +1 -1
  8. package/dist/{client-B7bqnkI5.d.cts → client-B5hM4l-D.d.ts} +5 -2
  9. package/dist/{client-pmqH3apS.d.ts → client-Di5HAWQz.d.cts} +5 -2
  10. package/dist/d1.d.cts +1 -1
  11. package/dist/d1.d.ts +1 -1
  12. package/dist/datadog.d.cts +1 -1
  13. package/dist/datadog.d.ts +1 -1
  14. package/dist/discord.d.cts +1 -1
  15. package/dist/discord.d.ts +1 -1
  16. package/dist/{email-_H0faCh3.d.ts → email-Ciq7GRn4.d.ts} +1 -1
  17. package/dist/{email-BJ-z_epD.d.cts → email-DX6gkd5H.d.cts} +1 -1
  18. package/dist/honeybadger.d.cts +1 -1
  19. package/dist/honeybadger.d.ts +1 -1
  20. package/dist/index.cjs +60 -21
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +4 -4
  23. package/dist/index.d.ts +4 -4
  24. package/dist/index.js +60 -21
  25. package/dist/index.js.map +1 -1
  26. package/dist/mailgun.d.cts +2 -2
  27. package/dist/mailgun.d.ts +2 -2
  28. package/dist/newrelic.d.cts +1 -1
  29. package/dist/newrelic.d.ts +1 -1
  30. package/dist/pg-cron.d.cts +2 -2
  31. package/dist/pg-cron.d.ts +2 -2
  32. package/dist/postgres.d.cts +1 -1
  33. package/dist/postgres.d.ts +1 -1
  34. package/dist/postmark.d.cts +2 -2
  35. package/dist/postmark.d.ts +2 -2
  36. package/dist/resend.d.cts +2 -2
  37. package/dist/resend.d.ts +2 -2
  38. package/dist/rollbar.d.cts +1 -1
  39. package/dist/rollbar.d.ts +1 -1
  40. package/dist/sendgrid.d.cts +2 -2
  41. package/dist/sendgrid.d.ts +2 -2
  42. package/dist/sentry.d.cts +1 -1
  43. package/dist/sentry.d.ts +1 -1
  44. package/dist/ses.d.cts +2 -2
  45. package/dist/ses.d.ts +2 -2
  46. package/dist/slack.d.cts +1 -1
  47. package/dist/slack.d.ts +1 -1
  48. package/dist/sqlite.d.cts +1 -1
  49. package/dist/sqlite.d.ts +1 -1
  50. package/dist/twilio.d.cts +1 -1
  51. package/dist/twilio.d.ts +1 -1
  52. package/dist/{types-Ddq1MUPL.d.cts → types-BjBbCGeJ.d.cts} +4 -1
  53. package/dist/{types-Ddq1MUPL.d.ts → types-BjBbCGeJ.d.ts} +4 -1
  54. package/dist/webhook.d.cts +1 -1
  55. package/dist/webhook.d.ts +1 -1
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.cjs';
2
- import { E as EmailOptions } from './email-BJ-z_epD.cjs';
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-Ddq1MUPL.js';
2
- import { E as EmailOptions } from './email-_H0faCh3.js';
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
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.cjs';
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/
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.js';
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/
@@ -1,5 +1,5 @@
1
- import { S as Source } from './client-B7bqnkI5.cjs';
2
- import { i as JobOptions, R as Run } from './types-Ddq1MUPL.cjs';
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-pmqH3apS.js';
2
- import { i as JobOptions, R as Run } from './types-Ddq1MUPL.js';
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
@@ -1,5 +1,5 @@
1
1
  import pg from 'pg';
2
- import { S as Store } from './types-Ddq1MUPL.cjs';
2
+ import { S as Store } from './types-BjBbCGeJ.cjs';
3
3
 
4
4
  interface PostgresOptions {
5
5
  /** postgres://... Defaults to process.env.DATABASE_URL. */
@@ -1,5 +1,5 @@
1
1
  import pg from 'pg';
2
- import { S as Store } from './types-Ddq1MUPL.js';
2
+ import { S as Store } from './types-BjBbCGeJ.js';
3
3
 
4
4
  interface PostgresOptions {
5
5
  /** postgres://... Defaults to process.env.DATABASE_URL. */
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.cjs';
2
- import { E as EmailOptions } from './email-BJ-z_epD.cjs';
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
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.js';
2
- import { E as EmailOptions } from './email-_H0faCh3.js';
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-Ddq1MUPL.cjs';
2
- import { E as EmailOptions } from './email-BJ-z_epD.cjs';
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-Ddq1MUPL.js';
2
- import { E as EmailOptions } from './email-_H0faCh3.js';
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
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.cjs';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.cjs';
2
2
 
3
3
  /**
4
4
  * Rollbar. API reference: https://docs.rollbar.com/reference/create-item
package/dist/rollbar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.js';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.js';
2
2
 
3
3
  /**
4
4
  * Rollbar. API reference: https://docs.rollbar.com/reference/create-item
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.cjs';
2
- import { E as EmailOptions } from './email-BJ-z_epD.cjs';
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
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.js';
2
- import { E as EmailOptions } from './email-_H0faCh3.js';
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
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.cjs';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.cjs';
2
2
 
3
3
  /**
4
4
  * Sentry, through the envelope endpoint.
package/dist/sentry.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.js';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.js';
2
2
 
3
3
  /**
4
4
  * Sentry, through the envelope endpoint.
package/dist/ses.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.cjs';
2
- import { E as EmailOptions } from './email-BJ-z_epD.cjs';
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-Ddq1MUPL.js';
2
- import { E as EmailOptions } from './email-_H0faCh3.js';
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
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.cjs';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.cjs';
2
2
 
3
3
  interface SlackOptions {
4
4
  /** An incoming webhook URL from api.slack.com/messaging/webhooks. */
package/dist/slack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.js';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.js';
2
2
 
3
3
  interface SlackOptions {
4
4
  /** An incoming webhook URL from api.slack.com/messaging/webhooks. */
package/dist/sqlite.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Database from 'better-sqlite3';
2
- import { S as Store } from './types-Ddq1MUPL.cjs';
2
+ import { S as Store } from './types-BjBbCGeJ.cjs';
3
3
 
4
4
  interface SqliteOptions {
5
5
  /** File path. The directory is created if missing. ":memory:" works too. */
package/dist/sqlite.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Database from 'better-sqlite3';
2
- import { S as Store } from './types-Ddq1MUPL.js';
2
+ import { S as Store } from './types-BjBbCGeJ.js';
3
3
 
4
4
  interface SqliteOptions {
5
5
  /** File path. The directory is created if missing. ":memory:" works too. */
package/dist/twilio.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.cjs';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.cjs';
2
2
 
3
3
  /**
4
4
  * Twilio SMS. API reference: https://www.twilio.com/docs/messaging/api/message-resource
package/dist/twilio.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Alert, a as AlertChannel } from './types-Ddq1MUPL.js';
1
+ import { A as Alert, a as AlertChannel } from './types-BjBbCGeJ.js';
2
2
 
3
3
  /**
4
4
  * Twilio SMS. API reference: https://www.twilio.com/docs/messaging/api/message-resource
@@ -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. */
@@ -1,4 +1,4 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.cjs';
1
+ import { a as AlertChannel } from './types-BjBbCGeJ.cjs';
2
2
 
3
3
  interface WebhookOptions {
4
4
  url: string;
package/dist/webhook.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as AlertChannel } from './types-Ddq1MUPL.js';
1
+ import { a as AlertChannel } from './types-BjBbCGeJ.js';
2
2
 
3
3
  interface WebhookOptions {
4
4
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronwatch/sdk",
3
- "version": "0.6.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": {