@sera4/essentia 3.0.11 → 3.0.13-rc.1

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 (75) hide show
  1. package/dist/cache/index.d.ts +22 -0
  2. package/dist/cache/index.js +166 -0
  3. package/dist/cache/index.js.map +1 -0
  4. package/dist/constants/index.d.ts +6 -0
  5. package/dist/constants/index.js +9 -0
  6. package/dist/constants/index.js.map +1 -0
  7. package/dist/formatter/index.d.ts +37 -0
  8. package/dist/formatter/index.js +75 -0
  9. package/dist/formatter/index.js.map +1 -0
  10. package/dist/hal/index.d.ts +5 -0
  11. package/dist/hal/index.js +69 -0
  12. package/dist/hal/index.js.map +1 -0
  13. package/dist/health/health-logger.d.ts +9 -0
  14. package/dist/health/health-logger.js +34 -0
  15. package/dist/health/health-logger.js.map +1 -0
  16. package/dist/health/index.d.ts +19 -0
  17. package/dist/health/index.js +175 -0
  18. package/dist/health/index.js.map +1 -0
  19. package/dist/helpers/index.d.ts +1 -0
  20. package/dist/helpers/index.js +2 -0
  21. package/dist/helpers/index.js.map +1 -0
  22. package/dist/helpers/test-server-wrapper.d.ts +120 -0
  23. package/dist/helpers/test-server-wrapper.js +165 -0
  24. package/dist/helpers/test-server-wrapper.js.map +1 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +17 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/last-commit.d.ts +1 -0
  29. package/dist/last-commit.js.map +1 -0
  30. package/dist/last_commit/index.d.ts +7 -0
  31. package/dist/last_commit/index.js +83 -0
  32. package/dist/last_commit/index.js.map +1 -0
  33. package/dist/paginator/s4-pagination.d.ts +9 -0
  34. package/dist/paginator/s4-pagination.js +49 -0
  35. package/dist/paginator/s4-pagination.js.map +1 -0
  36. package/dist/paginator/sql-pagination.d.ts +27 -0
  37. package/dist/paginator/sql-pagination.js +166 -0
  38. package/dist/paginator/sql-pagination.js.map +1 -0
  39. package/dist/paper-trail/helpers.d.ts +11 -0
  40. package/dist/paper-trail/helpers.js +74 -0
  41. package/dist/paper-trail/helpers.js.map +1 -0
  42. package/dist/paper-trail/index.d.ts +13 -0
  43. package/dist/paper-trail/index.js +662 -0
  44. package/dist/paper-trail/index.js.map +1 -0
  45. package/dist/prompts/index.d.ts +14 -0
  46. package/dist/prompts/index.js +63 -0
  47. package/dist/prompts/index.js.map +1 -0
  48. package/dist/queue/index.d.ts +166 -0
  49. package/dist/queue/index.js +371 -0
  50. package/dist/queue/index.js.map +1 -0
  51. package/dist/queue/publisher.d.ts +31 -0
  52. package/dist/queue/publisher.js +84 -0
  53. package/dist/queue/publisher.js.map +1 -0
  54. package/dist/queue/queue-logger.d.ts +9 -0
  55. package/dist/queue/queue-logger.js +35 -0
  56. package/dist/queue/queue-logger.js.map +1 -0
  57. package/dist/queue/subscriber.d.ts +39 -0
  58. package/dist/queue/subscriber.js +97 -0
  59. package/dist/queue/subscriber.js.map +1 -0
  60. package/dist/safe_proxy/index.d.ts +13 -0
  61. package/dist/safe_proxy/index.js +54 -0
  62. package/dist/safe_proxy/index.js.map +1 -0
  63. package/dist/serializer/index.d.ts +5 -0
  64. package/dist/serializer/index.js +83 -0
  65. package/dist/serializer/index.js.map +1 -0
  66. package/dist/ts/logger/s4-logger.js +2 -0
  67. package/dist/ts/logger/s4-logger.js.map +1 -1
  68. package/dist/ts/queue/index.js +54 -65
  69. package/dist/ts/queue/index.js.map +1 -1
  70. package/dist/ts/task-scheduler/index.d.ts +130 -0
  71. package/dist/ts/task-scheduler/index.js +259 -0
  72. package/dist/ts/task-scheduler/index.js.map +1 -0
  73. package/package.json +9 -3
  74. package/scripts/publish.sh +46 -0
  75. package/package.tar.gz +0 -0
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5
+ cd "$ROOT"
6
+
7
+ # ── Version resolution ────────────────────────────────────────────────────────
8
+ VERSION="${BUILD_VERSION:-}"
9
+
10
+ if [ -z "$VERSION" ]; then
11
+ VERSION=$(node -p "require('./package.json').version")
12
+ fi
13
+
14
+ if [ -z "$VERSION" ] || [ "$VERSION" = "0.0.0" ]; then
15
+ echo "error: no version specified — set BUILD_VERSION or package.json version" >&2
16
+ exit 1
17
+ fi
18
+
19
+ PACKAGE=$(node -p "require('./package.json').name")
20
+ echo "publishing $PACKAGE@$VERSION"
21
+
22
+ # ── Stamp version, restore on exit ───────────────────────────────────────────
23
+ ORIGINAL_VERSION=$(node -p "require('./package.json').version")
24
+ restore_version() {
25
+ npm pkg set version="$ORIGINAL_VERSION" --silent
26
+ }
27
+ trap restore_version EXIT
28
+
29
+ npm pkg set version="$VERSION" --silent
30
+
31
+ # ── Build ─────────────────────────────────────────────────────────────────────
32
+ echo "building..."
33
+ npm run build
34
+
35
+ # ── Dist-tag: prerelease versions get 'next', stable versions get 'latest' ───
36
+ if [[ "$VERSION" =~ -[a-zA-Z] ]]; then
37
+ DIST_TAG="next"
38
+ else
39
+ DIST_TAG="latest"
40
+ fi
41
+
42
+ # ── Publish ───────────────────────────────────────────────────────────────────
43
+ echo "publishing with tag: $DIST_TAG"
44
+ npm publish --access public --tag "$DIST_TAG"
45
+
46
+ echo "done: $PACKAGE@$VERSION"
package/package.tar.gz DELETED
Binary file