@hostwebhook/node 1.4.1 → 1.4.2
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -3
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -408,4 +408,4 @@ declare class PipelineStream {
|
|
|
408
408
|
*/
|
|
409
409
|
declare function send(config: HostWebhookConfig, payload: Record<string, unknown>, options?: SendOptions): Promise<SendResult>;
|
|
410
410
|
|
|
411
|
-
export { HostWebhook, type HostWebhookConfig, type PipelineStep,
|
|
411
|
+
export { HostWebhook, type HostWebhookConfig, type PipelineStep, SendError, type SendOptions, type SendResult, type StaticSignature, VerificationError, type VerifyOptions, type WebhookHeaders, createNestGuard, expressMiddleware, fastifyHook, parseHeaders, send, verify };
|
package/dist/index.d.ts
CHANGED
|
@@ -408,4 +408,4 @@ declare class PipelineStream {
|
|
|
408
408
|
*/
|
|
409
409
|
declare function send(config: HostWebhookConfig, payload: Record<string, unknown>, options?: SendOptions): Promise<SendResult>;
|
|
410
410
|
|
|
411
|
-
export { HostWebhook, type HostWebhookConfig, type PipelineStep,
|
|
411
|
+
export { HostWebhook, type HostWebhookConfig, type PipelineStep, SendError, type SendOptions, type SendResult, type StaticSignature, VerificationError, type VerifyOptions, type WebhookHeaders, createNestGuard, expressMiddleware, fastifyHook, parseHeaders, send, verify };
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
29
29
|
var index_exports = {};
|
|
30
30
|
__export(index_exports, {
|
|
31
31
|
HostWebhook: () => HostWebhook,
|
|
32
|
-
PipelineStream: () => PipelineStream,
|
|
33
32
|
SendError: () => SendError,
|
|
34
33
|
VerificationError: () => VerificationError,
|
|
35
34
|
createNestGuard: () => createNestGuard,
|
|
@@ -397,7 +396,7 @@ doSend_fn = async function(token, payload, options) {
|
|
|
397
396
|
}
|
|
398
397
|
const headers = {
|
|
399
398
|
"Content-Type": options?.contentType ?? "application/json",
|
|
400
|
-
"User-Agent": `HostWebhook-SDK/${"1.4.
|
|
399
|
+
"User-Agent": `HostWebhook-SDK/${"1.4.2"}`,
|
|
401
400
|
"X-HostWebhook-Sent-At": (/* @__PURE__ */ new Date()).toISOString(),
|
|
402
401
|
...tz ? { "X-HostWebhook-Timezone": tz } : {},
|
|
403
402
|
...__privateGet(this, _defaultHeaders),
|
|
@@ -649,7 +648,6 @@ async function send(config, payload, options) {
|
|
|
649
648
|
// Annotate the CommonJS export names for ESM import in node:
|
|
650
649
|
0 && (module.exports = {
|
|
651
650
|
HostWebhook,
|
|
652
|
-
PipelineStream,
|
|
653
651
|
SendError,
|
|
654
652
|
VerificationError,
|
|
655
653
|
createNestGuard,
|
package/dist/index.mjs
CHANGED
|
@@ -363,7 +363,7 @@ doSend_fn = async function(token, payload, options) {
|
|
|
363
363
|
}
|
|
364
364
|
const headers = {
|
|
365
365
|
"Content-Type": options?.contentType ?? "application/json",
|
|
366
|
-
"User-Agent": `HostWebhook-SDK/${"1.4.
|
|
366
|
+
"User-Agent": `HostWebhook-SDK/${"1.4.2"}`,
|
|
367
367
|
"X-HostWebhook-Sent-At": (/* @__PURE__ */ new Date()).toISOString(),
|
|
368
368
|
...tz ? { "X-HostWebhook-Timezone": tz } : {},
|
|
369
369
|
...__privateGet(this, _defaultHeaders),
|
|
@@ -614,7 +614,6 @@ async function send(config, payload, options) {
|
|
|
614
614
|
}
|
|
615
615
|
export {
|
|
616
616
|
HostWebhook,
|
|
617
|
-
PipelineStream,
|
|
618
617
|
SendError,
|
|
619
618
|
VerificationError,
|
|
620
619
|
createNestGuard,
|