@terreno/api 0.0.16 → 0.0.18

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 (46) hide show
  1. package/.windsurfrules +107 -0
  2. package/AGENTS.md +313 -0
  3. package/README.md +3 -4
  4. package/biome.jsonc +1 -1
  5. package/dist/api.js +1 -1
  6. package/dist/api.query.test.js +1 -1
  7. package/dist/api.test.js +36 -1202
  8. package/dist/errors.js +1 -1
  9. package/dist/expressServer.d.ts +8 -2
  10. package/dist/expressServer.js +8 -1
  11. package/dist/githubAuth.d.ts +64 -0
  12. package/dist/githubAuth.js +293 -0
  13. package/dist/githubAuth.test.d.ts +1 -0
  14. package/dist/githubAuth.test.js +351 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +1 -0
  17. package/dist/logger.js +1 -1
  18. package/dist/middleware.js +1 -1
  19. package/dist/notifiers/googleChatNotifier.js +1 -1
  20. package/dist/notifiers/googleChatNotifier.test.js +1 -1
  21. package/dist/notifiers/slackNotifier.js +1 -1
  22. package/dist/notifiers/slackNotifier.test.js +1 -1
  23. package/dist/notifiers/zoomNotifier.js +1 -1
  24. package/dist/notifiers/zoomNotifier.test.js +1 -1
  25. package/dist/permissions.js +1 -1
  26. package/dist/tests/bunSetup.js +2 -2
  27. package/package.json +4 -2
  28. package/src/api.query.test.ts +1 -1
  29. package/src/api.test.ts +30 -984
  30. package/src/api.ts +1 -1
  31. package/src/errors.ts +1 -1
  32. package/src/expressServer.ts +18 -2
  33. package/src/githubAuth.test.ts +223 -0
  34. package/src/githubAuth.ts +335 -0
  35. package/src/index.ts +1 -0
  36. package/src/logger.ts +1 -1
  37. package/src/middleware.ts +1 -1
  38. package/src/notifiers/googleChatNotifier.test.ts +1 -1
  39. package/src/notifiers/googleChatNotifier.ts +1 -1
  40. package/src/notifiers/slackNotifier.test.ts +1 -1
  41. package/src/notifiers/slackNotifier.ts +1 -1
  42. package/src/notifiers/zoomNotifier.test.ts +1 -1
  43. package/src/notifiers/zoomNotifier.ts +1 -1
  44. package/src/permissions.ts +1 -1
  45. package/src/tests/bunSetup.ts +2 -2
  46. /package/{CLAUDE.md → .cursorrules} +0 -0
@@ -1,5 +1,5 @@
1
1
  import {afterAll, afterEach, beforeEach, describe, expect, it, type Mock, spyOn} from "bun:test";
2
- import * as Sentry from "@sentry/node";
2
+ import * as Sentry from "@sentry/bun";
3
3
  import axios from "axios";
4
4
 
5
5
  import {sendToZoom} from "./zoomNotifier";
@@ -1,4 +1,4 @@
1
- import * as Sentry from "@sentry/node";
1
+ import * as Sentry from "@sentry/bun";
2
2
  import axios from "axios";
3
3
 
4
4
  import {APIError} from "../errors";
@@ -1,5 +1,5 @@
1
1
  // Defaults closed
2
- import * as Sentry from "@sentry/node";
2
+ import * as Sentry from "@sentry/bun";
3
3
  import type express from "express";
4
4
  import type {NextFunction} from "express";
5
5
  import mongoose, {type Model} from "mongoose";
@@ -93,8 +93,8 @@ afterEach(() => {
93
93
  logs = [];
94
94
  });
95
95
 
96
- // Mock @sentry/node module
97
- mock.module("@sentry/node", () => {
96
+ // Mock @sentry/bun module
97
+ mock.module("@sentry/bun", () => {
98
98
  const mockFn = (): ReturnType<typeof mock> => mock(() => {});
99
99
 
100
100
  // Mock Scope
File without changes