Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

durationToSeconds and secondsToDuration are no longer exported #55

Open
rianadon opened this issue Jan 21, 2022 · 0 comments
Open

durationToSeconds and secondsToDuration are no longer exported #55

rianadon opened this issue Jan 21, 2022 · 0 comments

Comments

@rianadon
Copy link

Absolutely love the library and I'm glad it got a new release recently!

However, after pulling the latest version I noticed that the functions secondsToDuration and durationToSeconds no longer import.

(!) Plugin typescript: @rollup/plugin-typescript TS2305: Module '"custom-card-helpers"' has no exported member 'durationToSeconds'.
src/helpers.ts: (2:10)

2 import { durationToSeconds, formatTime, HomeAssistant } from "custom-card-helpers";
           ~~~~~~~~~~~~~~~~~

test/util.ts: (1:10)

1 import { durationToSeconds } from "custom-card-helpers";
           ~~~~~~~~~~~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2305: Module '"custom-card-helpers"' has no exported member 'secondsToDuration'.
src/timer-bar-entity-row.ts: (6:51)

6 import { HomeAssistant, hasConfigOrEntityChanged, secondsToDuration, computeStateDisplay } from 'custom-card-helpers';
                                                    ~~~~~~~~~~~~~~~~~

I was poking around and it seems that e754e75 might have something to do with the issue.

It looks like secondsToDuration has been removed from index.m.js even though it is still in the source code:
image

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant