@jsenv/server 15.2.2 → 15.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/server",
3
- "version": "15.2.2",
3
+ "version": "15.2.4",
4
4
  "description": "Write your Node.js server using pure functions",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@jsenv/abort": "4.3.0",
38
- "@jsenv/humanize": "1.0.0",
38
+ "@jsenv/humanize": "1.1.1",
39
39
  "@jsenv/url-meta": "8.4.0",
40
40
  "@jsenv/utils": "2.1.1",
41
- "ws": "8.16.0"
41
+ "ws": "8.17.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jsenv/fetch": "../fetch/",
@@ -4,7 +4,7 @@ const ETAG_FOR_EMPTY_CONTENT = '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';
4
4
 
5
5
  export const bufferToEtag = (buffer) => {
6
6
  if (!Buffer.isBuffer(buffer)) {
7
- throw new TypeError(`buffer expected, got ${buffer}`);
7
+ throw new TypeError(`buffer expect,got ${buffer}`);
8
8
  }
9
9
 
10
10
  if (buffer.length === 0) {
@@ -113,7 +113,7 @@ export function parse(str, { prefixes = "./", delimiter = "/#?" } = {}) {
113
113
  throw new TypeError(
114
114
  "Unexpected "
115
115
  .concat(nextType, " at ")
116
- .concat(index, ", expected ")
116
+ .concat(index, ", expect ")
117
117
  .concat(type),
118
118
  );
119
119
  };