
Security News
GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.
@autometa/datetime
Advanced tools
Utilities for creating deterministic dates and measuring time differences in Autometa tests. The package provides:
Dates – convenience shortcuts (yesterday, nextWeek, midnight, etc.), phrase
parsing ("2 days from now") and explicit time offsets.Dates.iso / Dates.fmt – ISO string or YYYY-MM-DD formatted variants of the
same API surface.Time.diff – helpers for calculating the difference between two dates in
milliseconds, seconds, minutes, hours, days, or weeks.import { Dates, Time } from "@autometa/datetime";
// Shortcut access
const tomorrow = Dates.tomorrow;
const nextFortnight = Dates.iso.nextFortnight;
// Phrase parsing & offsets
const launch = Dates.fromPhrase("3 weeks from now");
const reminder = Dates.make(-2, "days");
// Time differences
const diffInHours = Time.diff.hours(new Date(), reminder);
For deterministic scenarios (e.g. unit tests) you can inject your own clock via
createDates:
import { createDates } from "@autometa/datetime";
const fixed = new Date("2024-01-01T08:00:00Z");
const clock = { now: () => fixed };
const dates = createDates({ clock });
expect(dates.today.toISOString()).toBe("2024-01-01T08:00:00.000Z");
Dates, Time) remain for convenience but now wrap factories so
you can create isolated instances with custom clocks.AutomationError with actionable messaging.FAQs
Date and Time utilities for Autometa
The npm package @autometa/datetime receives a total of 23 weekly downloads. As such, @autometa/datetime popularity was classified as not popular.
We found that @autometa/datetime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.