@flighthq/power 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787

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.
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/power`. The `@flight
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/power@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/power)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/power@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/power)
17
+ - [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/power",
3
- "version": "0.5.1-next.903.f434bc2",
3
+ "version": "0.5.1-next.905.5fbf787",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/entity": "0.5.1-next.903.f434bc2",
42
- "@flighthq/signals": "0.5.1-next.903.f434bc2",
43
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/signals": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.3.0"
package/src/power.test.ts CHANGED
@@ -30,6 +30,7 @@ import {
30
30
  getPowerSystemIdleState,
31
31
  getPowerSystemIdleTime,
32
32
  getPowerThermalState,
33
+ initializePower,
33
34
  isPowerKeepAwakeActive,
34
35
  makePowerBatteryHealth,
35
36
  makePowerStatus,
@@ -429,6 +430,12 @@ describe('getPowerThermalState', () => {
429
430
  });
430
431
  });
431
432
 
433
+ describe('initializePower', () => {
434
+ it('is the construction initializer of createPower', () => {
435
+ expect(typeof initializePower).toBe('function');
436
+ });
437
+ });
438
+
432
439
  describe('isPowerKeepAwakeActive', () => {
433
440
  it('reports the provider state', () => {
434
441
  expect(isPowerKeepAwakeActive(keepAwakeHost({ isActive: () => true }))).toBe(true);
@@ -477,7 +484,6 @@ describe('releasePowerKeepAwake', () => {
477
484
  await expect(releasePowerKeepAwake(host)).resolves.toEqual({ reason: 'inactive' });
478
485
  });
479
486
  });
480
-
481
487
  describe('setPowerIdlePollingIntervalMs', () => {
482
488
  it('clamps a non-positive interval to 1ms', () => {
483
489
  setPowerIdlePollingIntervalMs(0);