
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Turns a chronological sequence of balance-adjustment events into a timeline of periods during which particular balances were held.
For example, this sequence of events ...
... is turned into this timeline::
A B C D
| | | |
|_____________|_____________| |
| | |
| $10 | |
|___________________________| |
| | |
| $8 | |
|_____________|_____________|
| |
| $2 |
|___________________________|
This lets you determine, for each balance reduction event, the events from which the balance was added. In this example, we can see that:
Code for this example:
.. code:: python
from refund_calculation import *
history_from_event_sequence([
Event(time='A', delta='10'),
Event(time='B', delta='10'),
Event(time='C', delta='-18'),
Event(time='D', delta='-2'),
])
# Result:
History(
closed=(
Closed(amount=Decimal('10'), start='A', end='C'),
Closed(amount=Decimal('8'), start='B', end='C'),
Closed(amount=Decimal('2'), start='B', end='D'),
),
open=(),
debt=Decimal('0'),
)
FAQs
Turns a chronological sequence of balance-adjustment events into a timeline of periods during which particular balances were held.
We found that refund_calculation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.