From e78245997288800a43a1967be4190670f96d48a8 Mon Sep 17 00:00:00 2001 From: Robert Lyall Date: Mon, 21 Oct 2024 11:37:56 +0100 Subject: [PATCH] feat: export helper functions and constants --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index a7a9d45..43e9935 100644 --- a/lib/index.js +++ b/lib/index.js @@ -50,6 +50,8 @@ const parseAccepted = (value) => { return parts.length === 1 ? [] : parts.slice(1); }; +export { TYPES, defaultTypes, parseAccepted }; + export default class Crumbs extends EventEmitter { constructor({ banner, @@ -125,7 +127,7 @@ export default class Crumbs extends EventEmitter { } else { // There is a know migration path // Run the migration function and return the result - return migration(this.cookie.value); + return migration.call(this.cookie.value); } }