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); } }