fake-current-time 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/react.js +3 -11
  2. package/package.json +3 -3
package/dist/react.js CHANGED
@@ -43,7 +43,6 @@ var styles = {
43
43
  maxWidth: "400px"
44
44
  },
45
45
  header: {
46
- fontFamily: "system-ui, -apple-system, sans-serif",
47
46
  margin: "0 0 12px 0",
48
47
  fontSize: "16px",
49
48
  fontWeight: "600",
@@ -152,10 +151,6 @@ function formatCurrentOffset(offset) {
152
151
  parts.push(`${sign}${value} ${field}`);
153
152
  }
154
153
  }
155
- if (offset.milliseconds !== void 0 && offset.milliseconds !== 0) {
156
- const sign = offset.milliseconds > 0 ? "+" : "";
157
- parts.push(`${sign}${offset.milliseconds} milliseconds`);
158
- }
159
154
  return parts.length > 0 ? parts.join(", ") : "None";
160
155
  }
161
156
  function FakeTimeController() {
@@ -204,7 +199,8 @@ function FakeTimeController() {
204
199
  TimeDisplay,
205
200
  {
206
201
  label: "Current Time (with offset applied)",
207
- time: currentTime
202
+ time: currentTime,
203
+ variant: "current"
208
204
  }
209
205
  ),
210
206
  /* @__PURE__ */ jsx(
@@ -249,11 +245,7 @@ function FakeTimeController() {
249
245
  ] })
250
246
  ] });
251
247
  }
252
- function TimeDisplay({
253
- label,
254
- time,
255
- variant = "current"
256
- }) {
248
+ function TimeDisplay({ label, time, variant }) {
257
249
  const variantStyles = styles.timeDisplay[variant];
258
250
  return /* @__PURE__ */ jsxs("div", { style: variantStyles.container, children: [
259
251
  /* @__PURE__ */ jsx("div", { style: styles.timeDisplay.label, children: label }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fake-current-time",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Manipulate current time in your application for development and staging environments",
5
5
  "keywords": [
6
6
  "time",
@@ -50,8 +50,8 @@
50
50
  "provenance": true
51
51
  },
52
52
  "devDependencies": {
53
- "@biomejs/biome": "2.3.8",
54
- "@types/node": "^24.10.1",
53
+ "@biomejs/biome": "2.3.12",
54
+ "@types/node": "^25.0.10",
55
55
  "@types/react": "^19.2.10",
56
56
  "react": "^19.2.4",
57
57
  "react-dom": "^19.2.4",