Skip to content

Commit

Permalink
feat: export helper functions and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlyall committed Oct 21, 2024
1 parent dd0a12d commit e782459
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e782459

Please sign in to comment.