primate 0.27.0 → 0.27.1

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.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "Polymorphic development platform",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
@@ -2,6 +2,6 @@ import errors from "../errors.js";
2
2
 
3
3
  export default (name, props, options) => async (app, ...rest) => {
4
4
  const extension = name.slice(name.lastIndexOf("."));
5
- return app.handlers[extension]?.(name, props, options)(app, ...rest)
5
+ return app.extensions[extension]?.handle(name, props, options)(app, ...rest)
6
6
  ?? errors.NoHandlerForExtension.throw(extension, name);
7
7
  };