primate 0.23.0 → 0.23.2

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": "primate",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Expressive, minimal and extensible web framework",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
@@ -18,7 +18,7 @@
18
18
  "directory": "packages/primate"
19
19
  },
20
20
  "dependencies": {
21
- "runtime-compat": "^0.27.1"
21
+ "runtime-compat": "^0.28.4"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=18"
package/src/Logger.js CHANGED
@@ -1,4 +1,4 @@
1
- import {assert, is} from "runtime-compat/dyndef";
1
+ import {assert, is} from "runtime-compat/invariant";
2
2
  import {blue, bold, green, red, yellow, dim} from "runtime-compat/colors";
3
3
  import {map} from "runtime-compat/object";
4
4
  import console from "runtime-compat/console";
package/src/app.js CHANGED
@@ -2,7 +2,7 @@ import crypto from "runtime-compat/crypto";
2
2
  import {tryreturn} from "runtime-compat/async";
3
3
  import {File, Path} from "runtime-compat/fs";
4
4
  import {bold, blue} from "runtime-compat/colors";
5
- import {is} from "runtime-compat/dyndef";
5
+ import {is} from "runtime-compat/invariant";
6
6
  import {transform, valmap, to} from "runtime-compat/object";
7
7
  import {globify} from "runtime-compat/string";
8
8
  import * as runtime from "runtime-compat/meta";
package/src/dispatch.js CHANGED
@@ -1,4 +1,4 @@
1
- import {is, maybe} from "runtime-compat/dyndef";
1
+ import {is, maybe} from "runtime-compat/invariant";
2
2
  import {tryreturn} from "runtime-compat/sync";
3
3
  import {map} from "runtime-compat/object";
4
4
  import {camelcased} from "runtime-compat/string";
@@ -10,7 +10,7 @@ const ieq = (left, right) => left.toLowerCase() === right.toLowerCase();
10
10
  export const invalid = route => /\./u.test(route);
11
11
 
12
12
  const deroot = pathname => pathname.endsWith("/") && pathname !== "/"
13
- ? pathname.slice(0, -1) : pathname;
13
+ ? pathname.slice(0, -1) : pathname;
14
14
 
15
15
  export default app => {
16
16
  const {types, routes, config: {types: {explicit}, location}} = app;
package/src/validate.js CHANGED
@@ -1,4 +1,4 @@
1
- import {is, maybe} from "runtime-compat/dyndef";
1
+ import {is, maybe} from "runtime-compat/invariant";
2
2
 
3
3
  export default (type, value, name) => {
4
4
  maybe(type.validate).function();