Skip to content

Commit f53e819

Browse files
committed
Rename extend to install
1 parent ea4d4c3 commit f53e819

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@westacks/vortex",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"license": "MIT",
55
"description": "Server-based routing for SPAs",
66
"author": "Dmytro Morozov <puny.flash@gmail.com>",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from "./client";
22
export * from "./page";
3-
export { axios, extend, type VortexExtension, type VortexConfig } from "./router";
3+
export { axios, install, type VortexExtension, type VortexConfig } from "./router";

src/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const popstate = (event) => {
7272
* @param extensions Vortex extensions
7373
* @returns Uninstall function
7474
*/
75-
export function extend(...extensions: VortexExtension[]): () => void {
75+
export function install(...extensions: VortexExtension[]): () => void {
7676
if (!axios) throw new Error("Router not initialized!");
7777

7878
const uninstall = extensions.reduce((acc, x) => {

0 commit comments

Comments
 (0)