browser-git-ops 0.0.5 → 0.0.8
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 +104 -14
- package/dist/git/abstractAdapter.d.ts +60 -5
- package/dist/git/abstractAdapter.d.ts.map +1 -1
- package/dist/git/githubAdapter.d.ts +14 -9
- package/dist/git/githubAdapter.d.ts.map +1 -1
- package/dist/git/gitlabAdapter.d.ts +43 -8
- package/dist/git/gitlabAdapter.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1359 -1064
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +1356 -1061
- package/dist/index.mjs.map +3 -3
- package/dist/virtualfs/changeTracker.d.ts +1 -0
- package/dist/virtualfs/changeTracker.d.ts.map +1 -1
- package/dist/virtualfs/conflictManager.d.ts +3 -1
- package/dist/virtualfs/conflictManager.d.ts.map +1 -1
- package/dist/virtualfs/indexedDatabaseStorage.d.ts.map +1 -1
- package/dist/virtualfs/inmemoryStorage.d.ts.map +1 -1
- package/dist/virtualfs/localChangeApplier.d.ts +6 -3
- package/dist/virtualfs/localChangeApplier.d.ts.map +1 -1
- package/dist/virtualfs/localFileManager.d.ts.map +1 -1
- package/dist/virtualfs/metadataManager.d.ts.map +1 -1
- package/dist/virtualfs/opfsStorage.d.ts.map +1 -1
- package/dist/virtualfs/remoteSynchronizer.d.ts +114 -17
- package/dist/virtualfs/remoteSynchronizer.d.ts.map +1 -1
- package/dist/virtualfs/storageBackend.d.ts +16 -16
- package/dist/virtualfs/types.d.ts +24 -4
- package/dist/virtualfs/types.d.ts.map +1 -1
- package/dist/virtualfs/utils/urlParser.d.ts +19 -0
- package/dist/virtualfs/utils/urlParser.d.ts.map +1 -0
- package/dist/virtualfs/virtualfs.d.ts +114 -27
- package/dist/virtualfs/virtualfs.d.ts.map +1 -1
- package/package.json +5 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IndexFile } from './types.ts';
|
|
1
|
+
import { IndexFile, AdapterMeta } from './types.ts';
|
|
2
2
|
import { StorageBackend } from './storageBackend.ts';
|
|
3
3
|
import { Logger } from '../git/abstractAdapter.ts';
|
|
4
4
|
import type { CommitHistoryQuery, CommitHistoryPage } from '../git/adapter.ts';
|
|
5
5
|
import type { BranchListQuery, BranchListPage } from './types.ts';
|
|
6
|
-
type RemoteSnapshotDescriptor = {
|
|
6
|
+
export type RemoteSnapshotDescriptor = {
|
|
7
7
|
headSha: string;
|
|
8
8
|
shas: Record<string, string>;
|
|
9
9
|
fetchContent: (_paths: string[]) => Promise<Record<string, string>>;
|
|
@@ -22,7 +22,9 @@ export declare class VirtualFS {
|
|
|
22
22
|
private remoteSynchronizer;
|
|
23
23
|
/**
|
|
24
24
|
* VirtualFS のインスタンスを初期化します。
|
|
25
|
-
* @param options
|
|
25
|
+
* @param {Object} [options] - オプションセット
|
|
26
|
+
* @param {StorageBackend} [options.backend] - ストレージバックエンド
|
|
27
|
+
* @param {Logger} [options.logger] - ロガーインスタンス
|
|
26
28
|
* @returns {void}
|
|
27
29
|
*/
|
|
28
30
|
constructor(options?: {
|
|
@@ -63,11 +65,61 @@ export declare class VirtualFS {
|
|
|
63
65
|
private loadIndex;
|
|
64
66
|
/**
|
|
65
67
|
* Set adapter instance and persist adapter metadata into index file.
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
+
* Supports overloads:
|
|
69
|
+
* - setAdapter(meta: AdapterMeta)
|
|
70
|
+
* - setAdapter(type: string, url: string, branch?: string, token?: string)
|
|
71
|
+
* - setAdapter(url: string, branch?: string, token?: string)
|
|
72
|
+
* @param {AdapterMeta|string} metaOrTypeOrUrl
|
|
68
73
|
* @returns {Promise<void>}
|
|
69
74
|
*/
|
|
70
|
-
setAdapter(
|
|
75
|
+
setAdapter(metaOrTypeOrUrl?: AdapterMeta | string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Parse arguments for `setAdapter` and return a fully normalized AdapterMeta.
|
|
78
|
+
* The result always has {type, url, branch, token, opts} at the top level.
|
|
79
|
+
* Accepts AdapterMeta, (type, url, branch?, token?), or (url, branch?, token?).
|
|
80
|
+
* @param metaOrTypeOrUrl AdapterMeta or type or url
|
|
81
|
+
* @param argument1 url (when first is type) OR branch (when first is url) OR undefined
|
|
82
|
+
* @param argument2 branch (when first is type) OR token (when first is url) OR undefined
|
|
83
|
+
* @param argument3 token (when first is type) OR undefined
|
|
84
|
+
* @returns normalized AdapterMeta
|
|
85
|
+
*/
|
|
86
|
+
private _parseAdapterArgs;
|
|
87
|
+
/**
|
|
88
|
+
* Normalize from AdapterMeta object – generate url from opts if missing.
|
|
89
|
+
* @param meta raw AdapterMeta input
|
|
90
|
+
* @returns fully normalized AdapterMeta
|
|
91
|
+
*/
|
|
92
|
+
private _normalizeFromMeta;
|
|
93
|
+
/**
|
|
94
|
+
* Normalize from (type, url, branch?, token?) arguments.
|
|
95
|
+
* @param type adapter type
|
|
96
|
+
* @param url repository url
|
|
97
|
+
* @param branch optional branch (defaults to 'main')
|
|
98
|
+
* @param token optional token
|
|
99
|
+
* @returns fully normalized AdapterMeta
|
|
100
|
+
*/
|
|
101
|
+
private _normalizeFromTypeUrl;
|
|
102
|
+
/**
|
|
103
|
+
* Normalize from (url, branch?, token?) arguments.
|
|
104
|
+
* @param url repository url
|
|
105
|
+
* @param branch optional branch (defaults to 'main')
|
|
106
|
+
* @param token optional token
|
|
107
|
+
* @returns fully normalized AdapterMeta
|
|
108
|
+
*/
|
|
109
|
+
private _normalizeFromUrl;
|
|
110
|
+
/**
|
|
111
|
+
* Strip branch/token from options to avoid duplication (they live at the top level).
|
|
112
|
+
* Returns a new object with only host, owner, repo, projectId, etc.
|
|
113
|
+
* @param options raw adapter options
|
|
114
|
+
* @returns cleaned options without branch/token
|
|
115
|
+
*/
|
|
116
|
+
private _stripOptionsFields;
|
|
117
|
+
/**
|
|
118
|
+
* Return the persisted branch name from adapterMeta (top-level or opts fallback).
|
|
119
|
+
* Defaults to 'main' when not found.
|
|
120
|
+
* @returns {string} persisted branch name
|
|
121
|
+
*/
|
|
122
|
+
private _getPersistedBranch;
|
|
71
123
|
/**
|
|
72
124
|
* Try to inject the configured logger into the adapter instance (best-effort).
|
|
73
125
|
* @returns {Promise<void>}
|
|
@@ -97,8 +149,8 @@ export declare class VirtualFS {
|
|
|
97
149
|
private _ensureAdapterMetaLoaded;
|
|
98
150
|
/**
|
|
99
151
|
* Create adapter instance for given type and options. Returns null on failure.
|
|
100
|
-
* @param type adapter type string
|
|
101
|
-
* @param
|
|
152
|
+
* @param {string} type - adapter type string
|
|
153
|
+
* @param {any} options - adapter options
|
|
102
154
|
* @returns {any|null}
|
|
103
155
|
*/
|
|
104
156
|
private _instantiateAdapter;
|
|
@@ -195,8 +247,9 @@ export declare class VirtualFS {
|
|
|
195
247
|
private _hasExactEntry;
|
|
196
248
|
/**
|
|
197
249
|
* Consult backend.listFiles to collect immediate child names for given directory.
|
|
250
|
+
/**
|
|
198
251
|
* Best-effort: logs and returns empty set on failure.
|
|
199
|
-
* @param normalizedDirectory normalized directory string
|
|
252
|
+
* @param {string} normalizedDirectory - normalized directory string
|
|
200
253
|
* @returns {Promise<Set<string>>}
|
|
201
254
|
*/
|
|
202
255
|
private _collectNamesFromBackend;
|
|
@@ -263,15 +316,23 @@ export declare class VirtualFS {
|
|
|
263
316
|
/**
|
|
264
317
|
* fs.stat 互換: 指定ファイルのメタ情報を返す
|
|
265
318
|
* ワークスペース上の情報を優先し、未取得時は Git のメタ情報で補完する。
|
|
319
|
+
* @param {string} filepath - ファイルパス
|
|
266
320
|
* @returns {Promise<any>} stats オブジェクト
|
|
267
321
|
*/
|
|
268
322
|
stat(filepath: string): Promise<any>;
|
|
269
323
|
/**
|
|
270
324
|
* fs.unlink 互換: ファイルを削除する
|
|
325
|
+
* @param {string} filepath - ファイルパス
|
|
326
|
+
* @returns {Promise<void>}
|
|
271
327
|
*/
|
|
272
328
|
unlink(filepath: string): Promise<void>;
|
|
273
329
|
/**
|
|
274
330
|
* fs.mkdir 互換 (簡易実装): workspace 側にディレクトリ情報を書き込む
|
|
331
|
+
* @param {string} dirpath - ディレクトリパス
|
|
332
|
+
* @param {Object} [_options] - optional options
|
|
333
|
+
* @param {boolean} [_options.recursive] - recursive flag
|
|
334
|
+
* @param {number} [_options.mode] - mode flag
|
|
335
|
+
* @returns {Promise<void>}
|
|
275
336
|
*/
|
|
276
337
|
mkdir(dirpath: string, _options?: {
|
|
277
338
|
recursive?: boolean;
|
|
@@ -279,42 +340,50 @@ export declare class VirtualFS {
|
|
|
279
340
|
}): Promise<void>;
|
|
280
341
|
/**
|
|
281
342
|
* fs.rmdir 互換 (簡易実装)
|
|
343
|
+
* @param {string} dirpath - ディレクトリパス
|
|
344
|
+
* @param {Object} [options] - optional options
|
|
345
|
+
* @param {boolean} [options.recursive] - recursive delete flag
|
|
346
|
+
* @returns {Promise<void>}
|
|
282
347
|
*/
|
|
283
348
|
rmdir(dirpath: string, options?: {
|
|
284
349
|
recursive?: boolean;
|
|
285
350
|
}): Promise<void>;
|
|
286
351
|
/**
|
|
287
352
|
* Return list of child paths for given dirpath based on index entries.
|
|
288
|
-
* @param dirpath directory path
|
|
289
|
-
* @returns {Promise<string[]>}
|
|
353
|
+
* @param {string} dirpath - directory path
|
|
354
|
+
* @returns {Promise<string[]>} array of child paths
|
|
290
355
|
*/
|
|
291
356
|
private _listChildrenOfDir;
|
|
292
357
|
/**
|
|
293
358
|
* Delete array of children using localFileManager, logging failures per-child.
|
|
294
|
-
* @param children array of paths
|
|
359
|
+
* @param {string[]} children - array of paths to delete
|
|
295
360
|
* @returns {Promise<void>}
|
|
296
361
|
*/
|
|
297
362
|
private _deleteChildrenRecursive;
|
|
298
363
|
/**
|
|
299
364
|
* fs.readdir 互換 (簡易実装)
|
|
300
|
-
* @
|
|
365
|
+
* @param {string} dirpath - ディレクトリパス
|
|
366
|
+
* @param {Object} [options] - optional options
|
|
367
|
+
* @param {boolean} [options.withFileTypes] - withFileTypes flag
|
|
368
|
+
* @returns {Promise<string[]|Array<any>>} file names or Dirent array
|
|
301
369
|
*/
|
|
302
370
|
readdir(dirpath: string, options?: {
|
|
303
371
|
withFileTypes?: boolean;
|
|
304
372
|
}): Promise<any[]>;
|
|
305
373
|
/**
|
|
306
374
|
* Return an empty array when names is empty according to options, else null to continue.
|
|
307
|
-
* @param names array of names
|
|
308
|
-
* @param options readdir options
|
|
309
|
-
* @
|
|
375
|
+
* @param {string[]|null|undefined} names - array of names
|
|
376
|
+
* @param {Object} [options] - readdir options
|
|
377
|
+
* @param {boolean} [options.withFileTypes] - withFileTypes flag
|
|
378
|
+
* @returns {Array<any>|null} empty array or null
|
|
310
379
|
*/
|
|
311
380
|
private _returnIfNoNames;
|
|
312
381
|
/**
|
|
313
382
|
* Gather immediate child names for a directory using index and backend as fallback.
|
|
314
383
|
* Throws ENOTDIR when the path represents a file.
|
|
315
|
-
* @param dirpath original directory path
|
|
316
|
-
* @param entries index entries object
|
|
317
|
-
* @param keys array of index keys
|
|
384
|
+
* @param {string} dirpath - original directory path
|
|
385
|
+
* @param {any} entries - index entries object
|
|
386
|
+
* @param {string[]} keys - array of index keys
|
|
318
387
|
* @returns {Promise<string[]>} immediate child names
|
|
319
388
|
*/
|
|
320
389
|
private _gatherDirectoryNames;
|
|
@@ -334,7 +403,7 @@ export declare class VirtualFS {
|
|
|
334
403
|
private applyBaseSnapshot;
|
|
335
404
|
/**
|
|
336
405
|
* 指定エラーが non-fast-forward を示すか判定します。
|
|
337
|
-
* @param {any}
|
|
406
|
+
* @param {any} error - 例外オブジェクト
|
|
338
407
|
* @returns {boolean}
|
|
339
408
|
*/
|
|
340
409
|
private _isNonFastForwardError;
|
|
@@ -349,9 +418,9 @@ export declare class VirtualFS {
|
|
|
349
418
|
*/
|
|
350
419
|
private listPaths;
|
|
351
420
|
/**
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
421
|
+
* ワークスペースとインデックスから変更セットを生成します。
|
|
422
|
+
* @returns {Promise<Array<{type:string,path:string,content?:string,baseSha?:string}>>} 変更リスト
|
|
423
|
+
*/
|
|
355
424
|
getChangeSet(): Promise<any[]>;
|
|
356
425
|
/**
|
|
357
426
|
* ローカルに対する変更(create/update/delete)を適用するヘルパー
|
|
@@ -361,35 +430,49 @@ export declare class VirtualFS {
|
|
|
361
430
|
private _applyChangeLocally;
|
|
362
431
|
/**
|
|
363
432
|
* GitLab 風の actions ベースコミットフローで push を実行します。
|
|
433
|
+
* @param {any} adapter - adapter instance
|
|
434
|
+
* @param {any} input - push input
|
|
435
|
+
* @param {string} branch - branch name
|
|
364
436
|
* @returns {Promise<{commitSha:string}>}
|
|
365
437
|
*/
|
|
366
438
|
private _pushWithActions;
|
|
367
439
|
/**
|
|
368
440
|
* GitHub 風の blob/tree/commit フローで push を実行します。
|
|
441
|
+
* @param {any} adapter - adapter instance
|
|
442
|
+
* @param {any} input - push input
|
|
443
|
+
* @param {string} branch - branch name
|
|
369
444
|
* @returns {Promise<{commitSha:string}>}
|
|
370
445
|
*/
|
|
371
446
|
private _pushWithGitHubFlow;
|
|
372
447
|
/**
|
|
373
448
|
* Try to update remote ref and handle common non-fast-forward errors.
|
|
374
449
|
* Throws when the remote reports a non-fast-forward conflict.
|
|
450
|
+
* @param {any} adapter - adapter instance
|
|
451
|
+
* @param {string} branch - branch name
|
|
452
|
+
* @param {string} commitSha - commit SHA
|
|
453
|
+
* @returns {Promise<void>}
|
|
375
454
|
*/
|
|
376
455
|
private _tryUpdateRef;
|
|
377
456
|
/**
|
|
378
457
|
* Apply changes locally, update index head and persist index.
|
|
379
458
|
* Returns the commit result object for callers.
|
|
459
|
+
* @param {string} commitSha - commit SHA
|
|
460
|
+
* @param {any} input - push input
|
|
380
461
|
* @returns {Promise<{commitSha:string}>}
|
|
381
462
|
*/
|
|
382
463
|
private _applyChangesAndFinalize;
|
|
383
464
|
/**
|
|
384
465
|
* Handle push when an adapter is provided (delegates to _pushWithActions/_pushWithGitHubFlow).
|
|
385
466
|
* Records commitKey in index metadata and returns the push result.
|
|
467
|
+
* @param {any} input - push input
|
|
468
|
+
* @param {any} adapter - adapter instance
|
|
386
469
|
* @returns {Promise<{commitSha:string}>}
|
|
387
470
|
*/
|
|
388
471
|
private _handlePushWithAdapter;
|
|
389
472
|
/**
|
|
390
473
|
* リモートのスナップショットを取り込み、コンフリクト情報を返します。
|
|
391
|
-
* @param {string}
|
|
392
|
-
* @param {
|
|
474
|
+
* @param {RemoteSnapshotDescriptor|string|Object} remote - リモート情報
|
|
475
|
+
* @param {Record<string,string>} [baseSnapshot] - path->content マップ
|
|
393
476
|
* @returns {Promise<{conflicts:Array<import('./types').ConflictEntry>}>}
|
|
394
477
|
*/
|
|
395
478
|
pull(remote: RemoteSnapshotDescriptor | string | {
|
|
@@ -404,7 +487,7 @@ export declare class VirtualFS {
|
|
|
404
487
|
*/
|
|
405
488
|
private _pullByRef;
|
|
406
489
|
/**
|
|
407
|
-
* Pull using the persisted adapterMeta.
|
|
490
|
+
* Pull using the persisted adapterMeta.branch (or 'main').
|
|
408
491
|
* @param {Record<string,string>=} baseSnapshot optional base snapshot
|
|
409
492
|
* @returns {Promise<any>} pull result
|
|
410
493
|
*/
|
|
@@ -418,7 +501,8 @@ export declare class VirtualFS {
|
|
|
418
501
|
private _handlePullNoArgs;
|
|
419
502
|
/**
|
|
420
503
|
* Persist the requested branch into adapter metadata (best-effort).
|
|
421
|
-
* @param {string} branch branch name to persist
|
|
504
|
+
* @param {string} branch - branch name to persist
|
|
505
|
+
* @param {any} [_adapterInstance] - optional adapter instance (unused)
|
|
422
506
|
* @returns {Promise<void>}
|
|
423
507
|
*/
|
|
424
508
|
private _persistAdapterBranchMeta;
|
|
@@ -450,6 +534,7 @@ export declare class VirtualFS {
|
|
|
450
534
|
* compute simple diffs against the current index.
|
|
451
535
|
* Returns an object containing the resolved `remote` descriptor (or null),
|
|
452
536
|
* `remoteShas` map and `diffs` array (strings like `added: path` / `updated: path`).
|
|
537
|
+
* @param {RemoteSnapshotDescriptor|string|Object} [remote] - remote descriptor
|
|
453
538
|
* @returns {Promise<{remote: RemoteSnapshotDescriptor|null, remoteShas: Record<string,string>, diffs: string[]}>}
|
|
454
539
|
*/
|
|
455
540
|
getRemoteDiffs(remote?: RemoteSnapshotDescriptor | string | {
|
|
@@ -501,7 +586,9 @@ export declare class VirtualFS {
|
|
|
501
586
|
getDefaultBranch(): Promise<string | null>;
|
|
502
587
|
/**
|
|
503
588
|
* Persist repository metadata into IndexFile.adapter.opts for session persistence.
|
|
589
|
+
/**
|
|
504
590
|
* Best-effort: failures are ignored.
|
|
591
|
+
* @param {RepositoryMetadata} md - metadata to persist
|
|
505
592
|
* @returns {Promise<void>}
|
|
506
593
|
*/
|
|
507
594
|
private _persistRepositoryMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualfs.d.ts","sourceRoot":"","sources":["../../src/virtualfs/virtualfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"virtualfs.d.ts","sourceRoot":"","sources":["../../src/virtualfs/virtualfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAsC,MAAM,YAAY,CAAA;AAEvF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAIpD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAsB,MAAM,YAAY,CAAA;AASrF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM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sBhC;;;OAGG;YACW,iCAAiC;IAW/C;;;;OAIG;IACG,IAAI,CAAC,KAAK,EAAE,OAAO,YAAY,EAAE,WAAW;;;IAyBlD;;;OAGG;YACW,gBAAgB;CAY/B;AAED,eAAe,SAAS,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-git-ops",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
"pretest:e2e": "npm run build",
|
|
44
44
|
"test:e2e": "playwright test --config=playwright.config.cjs",
|
|
45
45
|
"test:ci": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage --runInBand",
|
|
46
|
-
"migrate:tests": "node ./scripts/migrate-tests.js",
|
|
47
46
|
"lint": "eslint \"src/**/*.{ts,js}\"",
|
|
48
|
-
"lint2": "eslint \"src/**/*.{ts,js}\" --config .eslintrc.cjs --rule \"unicorn/prevent-abbreviations:off\" --rule \"unicorn/filename-case:off\" --rule \"unicorn/prefer-early-return:off\" --rule \"unicorn/no-duplicated-branches:off\"",
|
|
49
47
|
"depcruise": "depcruise --config .dependency-cruiser.cjs src || exit 0",
|
|
50
48
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
51
49
|
"build:browser": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --format=iife --global-name=APIGitLib --platform=browser --sourcemap",
|
|
@@ -60,11 +58,11 @@
|
|
|
60
58
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
61
59
|
"@typescript-eslint/parser": "^7.0.0",
|
|
62
60
|
"dependency-cruiser": "^17.3.6",
|
|
63
|
-
"esbuild": "^0.
|
|
61
|
+
"esbuild": "^0.27.3",
|
|
64
62
|
"eslint": "^8.56.0",
|
|
65
|
-
"eslint-plugin-jsdoc": "^
|
|
66
|
-
"eslint-plugin-sonarjs": "^0.
|
|
67
|
-
"eslint-plugin-unicorn": "^
|
|
63
|
+
"eslint-plugin-jsdoc": "^50.8.0",
|
|
64
|
+
"eslint-plugin-sonarjs": "^0.24.0",
|
|
65
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
68
66
|
"fake-indexeddb": "^3.1.7",
|
|
69
67
|
"http-server": "^14.1.1",
|
|
70
68
|
"jest": "^29.6.1",
|