respondable-event 0.1.1-main.4363705 → 0.1.1-main.d5ae540

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 (2) hide show
  1. package/README.md +1 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -30,8 +30,6 @@ element.dispatchEvent(event);
30
30
  // If `respondWith()` is not called, `checkResponse()`
31
31
  // function will callback with `undefined`.
32
32
  event.checkResponse();
33
-
34
- const token = await authenticate.promise;
35
33
  ```
36
34
 
37
35
  In the hosting page, the following code snippet responds with a token.
@@ -53,6 +51,7 @@ To reduce code complexity, the `checkResponse()` function guarantees the `callba
53
51
 
54
52
  - If `respondWith()` was called, `checkResponse()` will return `true`.
55
53
  - If `respondWith()` was never called, `checkResponse()` will call the `callback` function with `undefined`, and return `false`.
54
+ - Subsequent calls to `checkResponse()` will return `true`.
56
55
 
57
56
  It is recommended to put `checkResponse()` immediately after `dispatchEvent()`.
58
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "respondable-event",
3
- "version": "0.1.1-main.4363705",
3
+ "version": "0.1.1-main.d5ae540",
4
4
  "description": "Enables event listeners to send zero-or-one response back to the event dispatcher.",
5
5
  "files": [
6
6
  "./dist/"
@@ -68,6 +68,6 @@
68
68
  "typescript": "^5.6.3"
69
69
  },
70
70
  "dependencies": {
71
- "respondable-event": "^0.1.1-main.4363705"
71
+ "respondable-event": "^0.1.1-main.d5ae540"
72
72
  }
73
73
  }