@porulle/core 0.68.0 → 0.68.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/modules/webhooks/worker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAoFlE,UAAU,UAAU;IAClB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,qBAAa,qBAAqB;IAGpB,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,SAAS,CAAe;gBAEZ,IAAI,EAAE,UAAU;IAI9B,OAAO,CAAC,IAAI,EAAE;QAClB,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,mGAAmG;QACnG,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,6GAA6G;QAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,wFAAwF;QACxF,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;KAC3C,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/modules/webhooks/worker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAoFlE,UAAU,UAAU;IAClB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,qBAAa,qBAAqB;IAGpB,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,SAAS,CAAe;gBAEZ,IAAI,EAAE,UAAU;IAI9B,OAAO,CAAC,IAAI,EAAE;QAClB,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,mGAAmG;QACnG,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,6GAA6G;QAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,wFAAwF;QACxF,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;KAC3C,GAAG,OAAO,CAAC,IAAI,CAAC;CA+DlB"}
|
|
@@ -83,8 +83,10 @@ export class WebhookDeliveryWorker {
|
|
|
83
83
|
validateWebhookUrl(args.endpoint.url);
|
|
84
84
|
await validateResolvedIp(args.endpoint.url);
|
|
85
85
|
const signature = signWebhookPayload(args.endpoint.secret, args.payload);
|
|
86
|
+
// Unbound: workerd's global `fetch` throws "Illegal invocation" when called as a method.
|
|
87
|
+
const fetchImpl = this.fetchImpl;
|
|
86
88
|
try {
|
|
87
|
-
const response = await
|
|
89
|
+
const response = await fetchImpl(args.endpoint.url, {
|
|
88
90
|
method: "POST",
|
|
89
91
|
headers: {
|
|
90
92
|
"content-type": "application/json",
|
package/package.json
CHANGED
|
@@ -116,8 +116,10 @@ export class WebhookDeliveryWorker {
|
|
|
116
116
|
|
|
117
117
|
const signature = signWebhookPayload(args.endpoint.secret, args.payload);
|
|
118
118
|
|
|
119
|
+
// Unbound: workerd's global `fetch` throws "Illegal invocation" when called as a method.
|
|
120
|
+
const fetchImpl = this.fetchImpl;
|
|
119
121
|
try {
|
|
120
|
-
const response = await
|
|
122
|
+
const response = await fetchImpl(args.endpoint.url, {
|
|
121
123
|
method: "POST",
|
|
122
124
|
headers: {
|
|
123
125
|
"content-type": "application/json",
|