Comparing version 0.10.7 to 0.10.8
{ | ||
"name": "queue-run", | ||
"description": "👋 Backends for JAMstack apps: APIs, job queues, scheduled jobs, WebSocket notifications, and more …", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"exports": { | ||
@@ -15,6 +15,6 @@ ".": "./dist/index.js", | ||
"scripts": { | ||
"build": "rm -rf dist && yarn esbuild src/index.ts src/jsx-runtime.ts --bundle --platform=node --target=node14 --outdir=dist --format=esm --inject:./src/require_shim.js --sourcemap", | ||
"build": "rm -rf dist && yarn esbuild src/index.ts src/jsx-runtime.ts --bundle --platform=node --target=node14 --outdir=dist --format=esm --inject:./src/require_shim.js --sourcemap", | ||
"lint": "yarn eslint src/**/*.ts", | ||
"prepare": "yarn build", | ||
"watch": "rm -rf dist && yarn build --watch" | ||
"watch": "yarn build --watch" | ||
}, | ||
@@ -29,2 +29,3 @@ "files": [ | ||
"@peculiar/webcrypto": "^1.2.3", | ||
"@types/jsonwebtoken": "^8.5.8", | ||
"@types/source-map-support": "^0.5.4", | ||
@@ -36,2 +37,3 @@ "@types/uuid": "^8.3.4", | ||
"filesize": "^8.0.7", | ||
"jsonwebtoken": "^8.5.1", | ||
"node-abort-controller": "^3.0.1", | ||
@@ -62,3 +64,3 @@ "node-fetch": "3.2.0", | ||
], | ||
"gitHead": "45b5481c56d1370860d0ad51be75eef0a0e4ebf3" | ||
"gitHead": "0d6bc99d52c4044215bcbde4aed6763373a232d7" | ||
} |
@@ -5,3 +5,3 @@ /* eslint-disable no-unused-vars */ | ||
import { AuthenticatedUser } from "../shared/authenticated.js"; | ||
import { OnError } from "../shared/logError.js"; | ||
import { OnError } from "../shared/onError.js"; | ||
@@ -8,0 +8,0 @@ /** |
import { URL } from "node:url"; | ||
import invariant from "tiny-invariant"; | ||
import { loadModule } from "../shared/loadModule.js"; | ||
import { logError } from "../shared/logError.js"; | ||
import { logError, logResponse } from "../shared/logging.js"; | ||
import { HTTPRoute, loadManifest } from "../shared/manifest.js"; | ||
import { RouteExports, RouteMiddleware } from "./exports.js"; | ||
import { logResponse } from "./middleware.js"; | ||
@@ -9,0 +8,0 @@ /** |
@@ -13,3 +13,3 @@ import { AbortController } from "node-abort-controller"; | ||
} from "../shared/localStorage"; | ||
import { logError } from "../shared/logError.js"; | ||
import { logError } from "../shared/logging.js"; | ||
import { HTTPRoute } from "../shared/manifest"; | ||
@@ -16,0 +16,0 @@ import TimeoutError from "../shared/TimeoutError.js"; |
@@ -10,3 +10,2 @@ import { install } from "source-map-support"; | ||
export { Blob, fetch, File, Headers, Request, Response } from "./http/fetch.js"; | ||
export * from "./http/middleware.js"; | ||
export { default as url } from "./http/url.js"; | ||
@@ -16,15 +15,14 @@ export * from "./integration.js"; | ||
export * from "./queue/exports.js"; | ||
export * from "./queue/middleware.js"; | ||
export { default as queues } from "./queue/queues.js"; | ||
export * from "./shared/authenticated.js"; | ||
export * from "./shared/exports.js"; | ||
export * as jwt from "./shared/jwt.js"; | ||
export { loadModule } from "./shared/loadModule.js"; | ||
export * from "./shared/logError.js"; | ||
export { logError, OnError } from "./shared/logError.js"; | ||
export { default as logger } from "./shared/logger.js"; | ||
export * as logging from "./shared/logging"; | ||
export type { Manifest } from "./shared/manifest.js"; | ||
export * from "./shared/onError.js"; | ||
export { OnError } from "./shared/onError.js"; | ||
export { default as TimeoutError } from "./shared/TimeoutError.js"; | ||
export { default as warmup } from "./shared/warmup.js"; | ||
export * from "./ws/exports.js"; | ||
export * from "./ws/middleware.js"; | ||
export { default as socket } from "./ws/socket.js"; |
/* eslint-disable no-unused-vars */ | ||
import type { AbortSignal } from "node-abort-controller"; | ||
import type { JSONObject, JSONValue } from "../json"; | ||
import type { OnError } from "../shared/logError.js"; | ||
import type { OnError } from "../shared/onError.js"; | ||
@@ -6,0 +6,0 @@ /** |
@@ -10,7 +10,6 @@ import { AbortController } from "node-abort-controller"; | ||
} from "../shared/localStorage.js"; | ||
import { logError } from "../shared/logError.js"; | ||
import { logError, logJobFinished, logJobStarted } from "../shared/logging.js"; | ||
import { loadManifest } from "../shared/manifest.js"; | ||
import TimeoutError from "../shared/TimeoutError.js"; | ||
import { JobMetadata, QueueExports, QueueMiddleware } from "./exports.js"; | ||
import { logJobFinished, logJobStarted } from "./middleware.js"; | ||
@@ -17,0 +16,0 @@ export default async function handleQueuedJob({ |
import { loadModule } from "./loadModule.js"; | ||
import { LocalStorage, withLocalStorage } from "./localStorage.js"; | ||
import { logError, OnError } from "./logError.js"; | ||
import { logError } from "./logging.js"; | ||
import { OnError } from "./onError.js"; | ||
@@ -5,0 +6,0 @@ type WarmupFunction = () => Promise<void>; |
@@ -5,3 +5,3 @@ /* eslint-disable no-unused-vars */ | ||
import { AuthenticatedUser } from "../shared/authenticated"; | ||
import type { OnError } from "../shared/logError.js"; | ||
import type { OnError } from "../shared/onError.js"; | ||
@@ -8,0 +8,0 @@ /** |
import invariant from "tiny-invariant"; | ||
import { loadMiddleware, loadModule } from "../shared/loadModule.js"; | ||
import { logError } from "../shared/logError.js"; | ||
import { logError, logMessageReceived } from "../shared/logging.js"; | ||
import { loadManifest, WebSocketRoute } from "../shared/manifest.js"; | ||
import { WebSocketExports, WebSocketMiddleware } from "./exports.js"; | ||
import { logMessageReceived } from "./middleware.js"; | ||
@@ -8,0 +7,0 @@ const defaultMiddleware = { |
@@ -5,3 +5,3 @@ import { AbortController } from "node-abort-controller"; | ||
import { LocalStorage, withLocalStorage } from "../shared/localStorage.js"; | ||
import { logError } from "../shared/logError.js"; | ||
import { logError, logMessageReceived } from "../shared/logging.js"; | ||
import TimeoutError from "../shared/TimeoutError.js"; | ||
@@ -16,3 +16,2 @@ import type { JSONValue } from "./../json"; | ||
import findRoute from "./findRoute.js"; | ||
import { logMessageReceived } from "./middleware.js"; | ||
@@ -19,0 +18,0 @@ // eslint-disable-next-line sonarjs/cognitive-complexity |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3868930
39363
16
39