@tryghost/webhook-mock-receiver 1.2.0 → 2.0.0
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,8 +1,6 @@
|
|
|
1
1
|
const {AssertionError} = require('assert');
|
|
2
2
|
const {URL} = require('url');
|
|
3
3
|
const nock = require('nock');
|
|
4
|
-
const pWaitFor = require('p-wait-for');
|
|
5
|
-
|
|
6
4
|
class WebhookMockReceiver {
|
|
7
5
|
constructor({snapshotManager}) {
|
|
8
6
|
this.body;
|
|
@@ -19,6 +17,7 @@ class WebhookMockReceiver {
|
|
|
19
17
|
|
|
20
18
|
async receivedRequest() {
|
|
21
19
|
// @NOTE: figure out a better waiting mechanism here, don't allow it to hang forever
|
|
20
|
+
const {default: pWaitFor} = await import('p-wait-for');
|
|
22
21
|
await pWaitFor(() => this._receiver.isDone());
|
|
23
22
|
}
|
|
24
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/webhook-mock-receiver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/framework.git",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"c8": "
|
|
29
|
-
"got": "
|
|
28
|
+
"c8": "11.0.0",
|
|
29
|
+
"got": "14.6.6",
|
|
30
30
|
"mocha": "11.7.5",
|
|
31
31
|
"sinon": "21.0.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"p-wait-for": "
|
|
34
|
+
"p-wait-for": "6.0.0"
|
|
35
35
|
}
|
|
36
36
|
}
|