@standardserver/peer 0.0.20 → 0.0.21

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/dist/index.mjs +3 -3
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AsyncIteratorClass, isTypescriptObject, isAsyncIteratorObject, Queue, SequentialIdGenerator, omit, emitUnhandledRejection, AbortError, stringifyJSON } from '@standardserver/shared';
2
- import { withEventMeta, EventIteratorErrorEvent, unwrapEvent, generateContentDisposition, flattenStandardHeader, getFilenameFromContentDisposition, isStandardRequest, isStandardResponse } from '@standardserver/core';
2
+ import { withEventMeta, ErrorEvent, unwrapEvent, generateContentDisposition, flattenStandardHeader, getFilenameFromContentDisposition, isStandardRequest, isStandardResponse } from '@standardserver/core';
3
3
 
4
4
  function toEventIterator(queue, cleanup) {
5
5
  return new AsyncIteratorClass(async () => {
@@ -15,7 +15,7 @@ function toEventIterator(queue, cleanup) {
15
15
  }
16
16
  case "error": {
17
17
  throw withEventMeta(
18
- new EventIteratorErrorEvent(json.data),
18
+ new ErrorEvent(json.data),
19
19
  json
20
20
  );
21
21
  }
@@ -71,7 +71,7 @@ class EventStreamTransmitter {
71
71
  if (this.isCompleted) {
72
72
  throw error;
73
73
  }
74
- if (error instanceof EventIteratorErrorEvent) {
74
+ if (error instanceof ErrorEvent) {
75
75
  const [resolvedError, meta] = unwrapEvent(error);
76
76
  await this.send({
77
77
  kind: "event-stream",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@standardserver/peer",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.21",
5
5
  "license": "MIT",
6
6
  "homepage": "https://standardserver.dev",
7
7
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@standardserver/shared": "0.0.20",
26
- "@standardserver/core": "0.0.20"
25
+ "@standardserver/core": "0.0.21",
26
+ "@standardserver/shared": "0.0.21"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "unbuild",