@homebridge-plugins/homebridge-august 3.0.0 → 3.0.1-beta.0

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.
@@ -0,0 +1,85 @@
1
+ #!/bin/env node
2
+
3
+ /**
4
+ * This scripts queries the npm registry to pull out the latest version for a given tag.
5
+ */
6
+
7
+ import assert from 'node:assert'
8
+ import child_process from 'node:child_process'
9
+ import fs from 'node:fs'
10
+ import process from 'node:process'
11
+
12
+ import semver from 'semver'
13
+
14
+ const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
15
+
16
+ // Load the contents of the package.json file
17
+ const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
18
+
19
+ const refArgument = process.argv[2]
20
+ const tagArgument = process.argv[3] || 'latest'
21
+
22
+ if (refArgument === null) {
23
+ console.error('ref argument is missing')
24
+ console.error('Usage: npm-version-script-esm.js <ref> [tag]')
25
+ process.exit(1)
26
+ }
27
+
28
+ /**
29
+ * Queries the NPM registry for the latest version for the provided tag.
30
+ * @param tag The tag to query for.
31
+ * @returns {string} Returns the version.
32
+ */
33
+ function getTagVersionFromNpm(tag) {
34
+ try {
35
+ return child_process.execSync(`npm info ${packageJSON.name} version --tag="${tag}"`).toString('utf8').trim()
36
+ } catch (e) {
37
+ console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`)
38
+ // throw e;
39
+ return '0.0.0'
40
+ }
41
+ }
42
+
43
+ function desiredTargetVersion(ref) {
44
+ // ref is a GitHub action ref string
45
+ if (ref.startsWith('refs/pull/')) {
46
+ throw new Error('The version script was executed inside a PR!')
47
+ }
48
+
49
+ assert(ref.startsWith('refs/heads/'))
50
+ const branchName = ref.slice('refs/heads/'.length)
51
+
52
+ const results = branchName.match(BRANCH_VERSION_PATTERN)
53
+ if (results !== null) {
54
+ if (results[1] !== tagArgument) {
55
+ console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
56
+ }
57
+
58
+ return results[2]
59
+ }
60
+
61
+ throw new Error(`Malformed branch name for ref: ${ref}. Can't derive the base version. Use a branch name like: beta-x.x.x or alpha-x.x.x`)
62
+ }
63
+
64
+ // derive the base version from the branch ref
65
+ const baseVersion = desiredTargetVersion(refArgument)
66
+
67
+ // query the npm registry for the latest version of the provided tag name
68
+ const latestReleasedVersion = getTagVersionFromNpm(tagArgument) // e.g. 0.7.0-beta.12
69
+ const latestReleaseBase = semver.inc(latestReleasedVersion, 'patch') // will produce 0.7.0 (removing the preid, needed for the equality check below)
70
+
71
+ let publishTag
72
+ if (semver.eq(baseVersion, latestReleaseBase)) { // check if we are releasing another version for the latest beta or alpha
73
+ publishTag = latestReleasedVersion // set the current latest beta or alpha to be incremented
74
+ } else {
75
+ publishTag = baseVersion // start of with a new beta or alpha version
76
+ }
77
+
78
+ // save the package.json
79
+ packageJSON.version = publishTag
80
+ fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
81
+
82
+ // perform the same change to the package-lock.json
83
+ const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
84
+ packageLockJSON.version = publishTag
85
+ fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { describe, expect, it, vi } from 'vitest';
2
+ import registerPlatform from './index.js';
3
+ import { AugustPlatform } from './platform.js';
4
+ import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
5
+ describe('registerPlatform', () => {
6
+ it('should register the platform with homebridge', () => {
7
+ const api = {
8
+ registerPlatform: vi.fn(),
9
+ };
10
+ registerPlatform(api);
11
+ expect(api.registerPlatform).toHaveBeenCalledWith(PLUGIN_NAME, PLATFORM_NAME, AugustPlatform);
12
+ });
13
+ });
14
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAEjD,OAAO,gBAAgB,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE1D,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,GAAG,GAAG;YACV,gBAAgB,EAAE,EAAE,CAAC,EAAE,EAAE;SACR,CAAA;QAEnB,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAErB,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,WAAW,EAAE,aAAa,EAAE,cAAc,CAAC,CAAA;IAC/F,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=settings.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.test.d.ts","sourceRoot":"","sources":["../src/settings.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,125 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
3
+ describe('settings', () => {
4
+ it('should have correct PLATFORM_NAME', () => {
5
+ expect(PLATFORM_NAME).toBe('August');
6
+ });
7
+ it('should have correct PLUGIN_NAME', () => {
8
+ expect(PLUGIN_NAME).toBe('homebridge-august');
9
+ });
10
+ it('should define AugustPlatformConfig interface', () => {
11
+ const config = {
12
+ platform: 'August',
13
+ credentials: {
14
+ apiKey: 'test-api-key',
15
+ pnSubKey: 'test-pn-sub-key',
16
+ installId: 'test-install-id',
17
+ augustId: 'test-august-id',
18
+ password: 'test-password',
19
+ countryCode: 'test-country-code',
20
+ },
21
+ options: {
22
+ devices: [],
23
+ allowInvalidCharacters: true,
24
+ refreshRate: 60,
25
+ updateRate: 60,
26
+ pushRate: 60,
27
+ logging: 'debug',
28
+ },
29
+ };
30
+ expect(config.credentials?.apiKey).toBe('test-api-key');
31
+ expect(config.options?.refreshRate).toBe(60);
32
+ });
33
+ it('should define credentials interface', () => {
34
+ const creds = {
35
+ apiKey: 'test-api-key',
36
+ pnSubKey: 'test-pn-sub-key',
37
+ installId: 'test-install-id',
38
+ augustId: 'test-august-id',
39
+ password: 'test-password',
40
+ countryCode: 'test-country-code',
41
+ };
42
+ expect(creds.apiKey).toBe('test-api-key');
43
+ expect(creds.installId).toBe('test-install-id');
44
+ });
45
+ it('should define options interface', () => {
46
+ const opts = {
47
+ devices: [],
48
+ allowInvalidCharacters: true,
49
+ refreshRate: 60,
50
+ updateRate: 60,
51
+ pushRate: 60,
52
+ logging: 'debug',
53
+ };
54
+ expect(opts.refreshRate).toBe(60);
55
+ expect(opts.logging).toBe('debug');
56
+ });
57
+ it('should define device interface', () => {
58
+ const dev = {
59
+ LockName: 'Test Lock',
60
+ Type: 1,
61
+ Created: '2023-01-01',
62
+ Updated: '2023-01-02',
63
+ LockId: 'test-lock-id',
64
+ HouseID: 'test-house-id',
65
+ HouseName: 'Test House',
66
+ Calibrated: true,
67
+ timeZone: 'UTC',
68
+ battery: 100,
69
+ batteryInfo: {
70
+ level: 100,
71
+ warningState: 'none',
72
+ infoUpdatedDate: '2023-01-01',
73
+ lastChangeDate: '2023-01-01',
74
+ lastChangeVoltage: 4.2,
75
+ },
76
+ doorStateOpenTimeout: 30,
77
+ hostLockInfo: {
78
+ serialNumber: 'test-serial-number',
79
+ manufacturer: 'Test Manufacturer',
80
+ productID: 1234,
81
+ productTypeID: 5678,
82
+ },
83
+ supportsEntryCodes: true,
84
+ remoteOperateSecret: 'test-secret',
85
+ skuNumber: 'test-sku',
86
+ macAddress: '00:11:22:33:44:55',
87
+ SerialNumber: 'test-serial-number',
88
+ LockStatus: {
89
+ status: 'locked',
90
+ dateTime: '2023-01-01T00:00:00Z',
91
+ isLockStatusChanged: true,
92
+ valid: true,
93
+ doorState: 'closed',
94
+ },
95
+ currentFirmwareVersion: '1.0.0',
96
+ homeKitEnabled: true,
97
+ zWaveEnabled: true,
98
+ isGalileo: false,
99
+ Bridge: {
100
+ _id: 'test-bridge-id',
101
+ mfgBridgeID: 'test-mfg-bridge-id',
102
+ deviceModel: 'test-model',
103
+ firmwareVersion: '1.0.0',
104
+ operative: true,
105
+ status: {
106
+ current: 'online',
107
+ lastOffline: '2023-01-01T00:00:00Z',
108
+ updated: '2023-01-01T00:00:00Z',
109
+ lastOnline: '2023-01-01T00:00:00Z',
110
+ },
111
+ locks: [],
112
+ hyperBridge: false,
113
+ },
114
+ parametersToSet: {},
115
+ users: {},
116
+ pubsubChannel: 'test-channel',
117
+ ruleHash: {},
118
+ cameras: [],
119
+ lockId: 'test-lock-id',
120
+ };
121
+ expect(dev.LockName).toBe('Test Lock');
122
+ expect(dev.battery).toBe(100);
123
+ });
124
+ });
125
+ //# sourceMappingURL=settings.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.test.js","sourceRoot":"","sources":["../src/settings.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE1D,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,CAAC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AAS,EAAE,QAAQ;aACpB;YACD,sBAAsB,EAAE,OAAO;YAC/B,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,IAAI;YAClB,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE;gBACN,GAAG,EAAE,gBAAgB;gBACrB,WAAW,EAAE,oBAAoB;gBACjC,WAAW,EAAE,YAAY;gBACzB,eAAe,EAAE,OAAO;gBACxB,SAAS,EAAE,IAAI;gBACf,MAAM,EAAE;oBACN,OAAO,EAAE,QAAQ;oBACjB,WAAW,EAAE,sBAAsB;oBACnC,OAAO,EAAE,sBAAsB;oBAC/B,UAAU,EAAE,sBAAsB;iBACnC;gBACD,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,KAAK;aACnB;YACD,eAAe,EAAE,EAAE;YACnB,KAAK,EAAE,EAAE;YACT,aAAa,EAAE,cAAc;YAC7B,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,cAAc;SACvB,CAAA;QACD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACtC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/B,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
1
  <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @homebridge-plugins/homebridge-august</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-august"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../assets/style.css"><link rel="stylesheet" href="../assets/highlight.css"><script defer="" src="../assets/main.js"></script><script async="" src="../assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
2
- <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/66d313061ddf3f37313839577ed37725959a3426/src/index.ts#L11">index.ts:11</a></li></ul></aside></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-august</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
2
+ <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/1506565eed3dd42b551e69c15b852650d599a4c3/src/index.ts#L11">index.ts:11</a></li></ul></aside></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-august</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@homebridge-plugins/homebridge-august",
3
3
  "displayName": "August",
4
4
  "type": "module",
5
- "version": "3.0.0",
5
+ "version": "3.0.1-beta.0",
6
6
  "description": "The August plugin allows you to access your August & Yale device(s) from HomeKit.",
7
7
  "author": {
8
8
  "name": "donavanbecker",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "main": "dist/index.js",
40
40
  "engines": {
41
- "homebridge": "^1.8.5 || ^2.0.0 || ^2.0.0-beta.23 || ^2.0.0-alpha.37",
41
+ "homebridge": "^1.8.5 || ^2.0.0 || ^2.0.0-beta.26 || ^2.0.0-alpha.37",
42
42
  "node": "^20 || ^22"
43
43
  },
44
44
  "scripts": {
@@ -62,21 +62,21 @@
62
62
  "access": "public"
63
63
  },
64
64
  "dependencies": {
65
- "@homebridge/plugin-ui-utils": "^2.0.0",
65
+ "@homebridge/plugin-ui-utils": "^2.0.1",
66
66
  "august-yale": "^1.1.1",
67
67
  "rxjs": "^7.8.1"
68
68
  },
69
69
  "devDependencies": {
70
- "@antfu/eslint-config": "^3.14.0",
70
+ "@antfu/eslint-config": "^3.16.0",
71
71
  "@types/aes-js": "^3.1.4",
72
72
  "@types/debug": "^4.1.12",
73
73
  "@types/fs-extra": "^11.0.4",
74
74
  "@types/mdast": "^4.0.4",
75
- "@types/node": "^22.10.7",
75
+ "@types/node": "^22.10.8",
76
76
  "@types/semver": "^7.5.8",
77
77
  "@types/source-map-support": "^0.5.10",
78
78
  "@typhonjs-typedoc/typedoc-theme-dmt": "^0.3.1",
79
- "@vitest/coverage-v8": "^3.0.0",
79
+ "@vitest/coverage-v8": "^3.0.3",
80
80
  "eslint": "^9.18.0",
81
81
  "eslint-plugin-format": "^1.0.1",
82
82
  "homebridge": "^1.8.5",
@@ -86,6 +86,6 @@
86
86
  "ts-node": "^10.9.2",
87
87
  "typedoc": "^0.27.6",
88
88
  "typescript": "^5.7.3",
89
- "vitest": "^3.0.0"
89
+ "vitest": "^3.0.3"
90
90
  }
91
91
  }