browser-git-ops 0.0.2 → 0.0.4
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 +71 -97
- package/dist/git/abstractAdapter.d.ts +183 -0
- package/dist/git/abstractAdapter.d.ts.map +1 -0
- package/dist/git/adapter.d.ts +23 -1
- package/dist/git/adapter.d.ts.map +1 -1
- package/dist/git/githubAdapter.d.ts +354 -35
- package/dist/git/githubAdapter.d.ts.map +1 -1
- package/dist/git/gitlabAdapter.d.ts +297 -20
- package/dist/git/gitlabAdapter.d.ts.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6012 -843
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +6012 -843
- package/dist/index.mjs.map +4 -4
- package/dist/virtualfs/changeTracker.d.ts +66 -0
- package/dist/virtualfs/changeTracker.d.ts.map +1 -0
- package/dist/virtualfs/conflictManager.d.ts +69 -0
- package/dist/virtualfs/conflictManager.d.ts.map +1 -0
- package/dist/virtualfs/hashUtils.d.ts +13 -0
- package/dist/virtualfs/hashUtils.d.ts.map +1 -0
- package/dist/virtualfs/indexManager.d.ts +57 -0
- package/dist/virtualfs/indexManager.d.ts.map +1 -0
- package/dist/virtualfs/indexedDatabaseStorage.d.ts +7 -0
- package/dist/virtualfs/indexedDatabaseStorage.d.ts.map +1 -0
- package/dist/virtualfs/inmemoryStorage.d.ts +8 -0
- package/dist/virtualfs/inmemoryStorage.d.ts.map +1 -0
- package/dist/virtualfs/localChangeApplier.d.ts +21 -0
- package/dist/virtualfs/localChangeApplier.d.ts.map +1 -0
- package/dist/virtualfs/localFileManager.d.ts +58 -0
- package/dist/virtualfs/localFileManager.d.ts.map +1 -0
- package/dist/virtualfs/metadataManager.d.ts +18 -0
- package/dist/virtualfs/metadataManager.d.ts.map +1 -0
- package/dist/virtualfs/opfsStorage.d.ts +2 -63
- package/dist/virtualfs/opfsStorage.d.ts.map +1 -1
- package/dist/virtualfs/remoteSynchronizer.d.ts +192 -0
- package/dist/virtualfs/remoteSynchronizer.d.ts.map +1 -0
- package/dist/virtualfs/storageBackend.d.ts +57 -4
- package/dist/virtualfs/storageBackend.d.ts.map +1 -1
- package/dist/virtualfs/types.d.ts +37 -0
- package/dist/virtualfs/types.d.ts.map +1 -1
- package/dist/virtualfs/virtualfs.d.ts +290 -86
- package/dist/virtualfs/virtualfs.d.ts.map +1 -1
- package/package.json +29 -13
- package/dist/virtualfs/indexedDbStorage.d.ts +0 -62
- package/dist/virtualfs/indexedDbStorage.d.ts.map +0 -1
|
@@ -1,30 +1,65 @@
|
|
|
1
|
-
import { GitAdapter } from './adapter';
|
|
2
|
-
|
|
1
|
+
import { GitAdapter } from './adapter.ts';
|
|
2
|
+
import AbstractGitAdapter from './abstractAdapter.ts';
|
|
3
|
+
type GLOptions = {
|
|
3
4
|
projectId: string;
|
|
4
5
|
token: string;
|
|
5
6
|
host?: string;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* GitLab 向けの GitAdapter 実装です。
|
|
10
|
+
* GitLab の API をラップして、リポジトリスナップショットの取得や
|
|
11
|
+
* commits API の呼び出しをサポートします。
|
|
9
12
|
*/
|
|
10
|
-
export declare class GitLabAdapter implements GitAdapter {
|
|
11
|
-
private opts;
|
|
12
|
-
private baseUrl;
|
|
13
|
-
private headers;
|
|
13
|
+
export declare class GitLabAdapter extends AbstractGitAdapter implements GitAdapter {
|
|
14
14
|
private pendingActions;
|
|
15
|
-
private
|
|
16
|
-
private baseBackoff;
|
|
15
|
+
private projectMetadata;
|
|
17
16
|
/**
|
|
18
17
|
* GitLabAdapter を初期化します。
|
|
19
18
|
* @param {GLOpts} opts 設定オブジェクト
|
|
20
19
|
*/
|
|
21
|
-
constructor(
|
|
20
|
+
constructor(options: GLOptions);
|
|
21
|
+
/**
|
|
22
|
+
* List commits for a ref (GitLab commits API)
|
|
23
|
+
* @param {{ref:string,perPage?:number,page?:number}} query
|
|
24
|
+
* @returns {Promise<import('./adapter').CommitHistoryPage>} ページ情報を返します
|
|
25
|
+
*/
|
|
26
|
+
listCommits(query: {
|
|
27
|
+
ref: string;
|
|
28
|
+
perPage?: number;
|
|
29
|
+
page?: number;
|
|
30
|
+
}): Promise<{
|
|
31
|
+
items: {
|
|
32
|
+
sha: any;
|
|
33
|
+
message: any;
|
|
34
|
+
author: any;
|
|
35
|
+
date: any;
|
|
36
|
+
parents: any;
|
|
37
|
+
}[];
|
|
38
|
+
nextPage: number | undefined;
|
|
39
|
+
lastPage: number | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* 応答テキストを JSON 配列として解析します(失敗時は空配列を返す)。
|
|
43
|
+
* @param {string} text 応答テキスト
|
|
44
|
+
* @returns {any[]}
|
|
45
|
+
*/
|
|
46
|
+
private _parseJsonArray;
|
|
47
|
+
/**
|
|
48
|
+
* GitLab のページングヘッダを解析します(x-next-page / x-total-pages)。
|
|
49
|
+
* @returns {{nextPage?: number, lastPage?: number}} ページ番号情報
|
|
50
|
+
*/
|
|
51
|
+
private _parsePagingHeaders;
|
|
52
|
+
/**
|
|
53
|
+
* Map a raw GitLab commit object to CommitSummary.
|
|
54
|
+
* @param {any} c Raw commit object
|
|
55
|
+
* @returns {import('./adapter').CommitSummary}
|
|
56
|
+
*/
|
|
57
|
+
private _mapGitLabCommitToSummary;
|
|
22
58
|
/**
|
|
23
59
|
* コンテンツから sha1 を算出します。
|
|
24
60
|
* @param {string} content コンテンツ
|
|
25
61
|
* @returns {string} sha1 ハッシュ
|
|
26
62
|
*/
|
|
27
|
-
private shaOf;
|
|
28
63
|
/**
|
|
29
64
|
* 変更一覧から blob sha のマップを作成します(疑似実装)。
|
|
30
65
|
* @param {any[]} changes 変更一覧
|
|
@@ -46,6 +81,14 @@ export declare class GitLabAdapter implements GitAdapter {
|
|
|
46
81
|
* @returns {Promise<string>} 新規コミット SHA または parentSha
|
|
47
82
|
*/
|
|
48
83
|
createCommit(message: string, parentSha: string, _treeSha: string): Promise<any>;
|
|
84
|
+
/**
|
|
85
|
+
* リファレンス更新は不要なため noop 実装です。
|
|
86
|
+
* @param {string} _ref ref 名
|
|
87
|
+
* @param {string} _commitSha コミット SHA
|
|
88
|
+
* @param {boolean} [_force]
|
|
89
|
+
* @returns {Promise<void>}
|
|
90
|
+
*/
|
|
91
|
+
updateRef(_reference: string, _commitSha: string, _force?: boolean): Promise<void>;
|
|
49
92
|
/**
|
|
50
93
|
* actions を用いて GitLab のコミット API を呼び出します。
|
|
51
94
|
* @param {string} branch ブランチ名
|
|
@@ -57,7 +100,94 @@ export declare class GitLabAdapter implements GitAdapter {
|
|
|
57
100
|
type: string;
|
|
58
101
|
path: string;
|
|
59
102
|
content?: string;
|
|
60
|
-
}
|
|
103
|
+
}>, expectedParentSha?: string): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* Retrieve project metadata (default branch, name, id) and cache it.
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* Retrieve project metadata (default branch, name, id) and cache it.
|
|
109
|
+
* @returns {Promise<import('../virtualfs/types.ts').RepositoryMetadata>} repository metadata
|
|
110
|
+
*/
|
|
111
|
+
getRepositoryMetadata(): Promise<import('../virtualfs/types.ts').RepositoryMetadata>;
|
|
112
|
+
/**
|
|
113
|
+
* Build project metadata from API response.
|
|
114
|
+
* @param data API response body
|
|
115
|
+
* @returns {import('../virtualfs/types.ts').RepositoryMetadata}
|
|
116
|
+
*/
|
|
117
|
+
private _makeProjectMetadata;
|
|
118
|
+
/**
|
|
119
|
+
* List branches via GitLab API and map to BranchListPage.
|
|
120
|
+
* @returns {Promise<{items:any[],nextPage?:number,lastPage?:number}>}
|
|
121
|
+
*/
|
|
122
|
+
listBranches(query?: import('../virtualfs/types.ts').BranchListQuery): Promise<{
|
|
123
|
+
items: {
|
|
124
|
+
name: any;
|
|
125
|
+
commit: {
|
|
126
|
+
sha: any;
|
|
127
|
+
url: any;
|
|
128
|
+
};
|
|
129
|
+
protected: boolean;
|
|
130
|
+
isDefault: boolean;
|
|
131
|
+
}[];
|
|
132
|
+
nextPage: number | undefined;
|
|
133
|
+
lastPage: number | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
/**
|
|
136
|
+
* Create a branch in GitLab: POST /projects/{projectId}/repository/branches
|
|
137
|
+
* @param branchName name of branch to create
|
|
138
|
+
* @param fromSha branch/tag name or SHA to base the new branch on
|
|
139
|
+
* @returns {Promise<import('../virtualfs/types.ts').CreateBranchResult>} created branch info
|
|
140
|
+
*/
|
|
141
|
+
createBranch(branchName: string, fromSha: string): Promise<import('../virtualfs/types.ts').CreateBranchResult>;
|
|
142
|
+
/**
|
|
143
|
+
* Normalize common createBranch error messages into thrown Errors.
|
|
144
|
+
* @param {string} message error message text
|
|
145
|
+
* @param {string} branchName branch name attempted
|
|
146
|
+
* @returns {never}
|
|
147
|
+
*/
|
|
148
|
+
private _handleCreateBranchError;
|
|
149
|
+
/**
|
|
150
|
+
* Map raw GitLab branch objects to adapter Branch item shape.
|
|
151
|
+
* @param {any[]} parsed raw branch array
|
|
152
|
+
* @param {any} repoMeta repository metadata
|
|
153
|
+
* @returns {any[]}
|
|
154
|
+
*/
|
|
155
|
+
private _mapBranchItems;
|
|
156
|
+
/**
|
|
157
|
+
* Convert change descriptors to GitLab API actions
|
|
158
|
+
* @returns {Array<any>} API-compatible actions array
|
|
159
|
+
*/
|
|
160
|
+
private createActions;
|
|
161
|
+
/**
|
|
162
|
+
* Verify remote branch head matches expected parent SHA.
|
|
163
|
+
* @throws Error if non-fast-forward
|
|
164
|
+
* @returns {Promise<void>}
|
|
165
|
+
*/
|
|
166
|
+
/**
|
|
167
|
+
* Verify that remote branch head matches expected parent SHA.
|
|
168
|
+
* Throws when non-fast-forward detected.
|
|
169
|
+
* @param {string} expectedParentSha expected parent SHA
|
|
170
|
+
* @param {string} branch branch name
|
|
171
|
+
* @returns {Promise<void>}
|
|
172
|
+
*/
|
|
173
|
+
private verifyParent;
|
|
174
|
+
/**
|
|
175
|
+
* Parse and validate commit API response text
|
|
176
|
+
* @param {string} text 応答テキスト
|
|
177
|
+
* @returns {any} parsed commit id/object
|
|
178
|
+
*/
|
|
179
|
+
private parseCommitResponse;
|
|
180
|
+
/**
|
|
181
|
+
* Post commit request and parse response
|
|
182
|
+
* @returns {Promise<any>}
|
|
183
|
+
*/
|
|
184
|
+
/**
|
|
185
|
+
* Post commit request and return parsed commit response.
|
|
186
|
+
* @param {string} url endpoint URL
|
|
187
|
+
* @param {string} body request body
|
|
188
|
+
* @returns {Promise<any>} parsed commit response
|
|
189
|
+
*/
|
|
190
|
+
private postCommit;
|
|
61
191
|
/**
|
|
62
192
|
* fetch をリトライ付きで実行します。
|
|
63
193
|
* @param {string} url リクエスト URL
|
|
@@ -65,27 +195,174 @@ export declare class GitLabAdapter implements GitAdapter {
|
|
|
65
195
|
* @param {number} [retries] 最大リトライ回数
|
|
66
196
|
* @returns {Promise<Response>} レスポンス
|
|
67
197
|
*/
|
|
68
|
-
|
|
198
|
+
/**
|
|
199
|
+
* Wait helper for fetch retry backoff.
|
|
200
|
+
* @param attempt Attempt number
|
|
201
|
+
* @returns {Promise<void>} resolves after backoff
|
|
202
|
+
*/
|
|
203
|
+
/**
|
|
204
|
+
* Wait helper for retry backoff.
|
|
205
|
+
* @param {number} attempt attempt number
|
|
206
|
+
* @returns {Promise<void>}
|
|
207
|
+
*/
|
|
208
|
+
private _waitAttempt;
|
|
69
209
|
/**
|
|
70
210
|
* ステータスが再試行対象か判定します。
|
|
71
211
|
* @param {number} status ステータスコード
|
|
72
212
|
* @returns {boolean}
|
|
73
213
|
*/
|
|
74
|
-
private isRetryableStatus;
|
|
75
214
|
/**
|
|
76
215
|
* バックオフ時間を計算します。
|
|
77
216
|
* @param {number} attempt 試行回数(1..)
|
|
78
217
|
* @returns {number} ミリ秒
|
|
79
218
|
*/
|
|
80
|
-
private backoffMs;
|
|
81
219
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
220
|
+
* 並列マッピングユーティリティ
|
|
221
|
+
* @template T, R
|
|
222
|
+
* @param {T[]} items 入力配列
|
|
223
|
+
* @param {(t:T)=>Promise<R>} mapper マッピング関数
|
|
224
|
+
* @param {number} concurrency 同時実行数
|
|
225
|
+
* @returns {Promise<R[]>}
|
|
226
|
+
*/
|
|
227
|
+
/**
|
|
228
|
+
* Prepare JSON body for commit API call.
|
|
229
|
+
* @returns {string} JSON body
|
|
230
|
+
*/
|
|
231
|
+
private _prepareCommitBody;
|
|
232
|
+
/**
|
|
233
|
+
* Optionally verify parent SHA; swallow non-422 errors.
|
|
234
|
+
*/
|
|
235
|
+
/**
|
|
236
|
+
* Optionally verify parent SHA; rethrow errors after logging.
|
|
237
|
+
* @param {string} expectedParentSha expected SHA
|
|
238
|
+
* @param {string} branch branch name
|
|
86
239
|
* @returns {Promise<void>}
|
|
87
240
|
*/
|
|
88
|
-
|
|
241
|
+
private _maybeVerifyParent;
|
|
242
|
+
/**
|
|
243
|
+
* リポジトリのスナップショットを取得します。
|
|
244
|
+
* @param {string} branch ブランチ名 (default: 'main')
|
|
245
|
+
* @returns {Promise<{headSha:string,shas:Record<string,string>,fetchContent:(paths:string[])=>Promise<Record<string,string>>}>}
|
|
246
|
+
*/
|
|
247
|
+
fetchSnapshot(branch?: string, concurrency?: number): Promise<any>;
|
|
248
|
+
/**
|
|
249
|
+
* Determine the remote head SHA for a branch. Falls back to branch name on error.
|
|
250
|
+
* @param {string} branch Branch name
|
|
251
|
+
* @returns {Promise<string>} head SHA or branch
|
|
252
|
+
*/
|
|
253
|
+
/**
|
|
254
|
+
* Determine the head SHA for a branch; fallback to branch name if unavailable.
|
|
255
|
+
* @param {string} branch branch name
|
|
256
|
+
* @returns {Promise<string>} head SHA or branch
|
|
257
|
+
*/
|
|
258
|
+
private _determineHeadSha;
|
|
259
|
+
/**
|
|
260
|
+
* Fetch repository tree and build shas/fileSet.
|
|
261
|
+
* @param {string} branch Branch name
|
|
262
|
+
* @returns {Promise<{shas:Record<string,string>,fileSet:Set<string>}>}
|
|
263
|
+
*/
|
|
264
|
+
/**
|
|
265
|
+
* Fetch repository tree and build shas map and fileSet.
|
|
266
|
+
* @param {string} branch branch name
|
|
267
|
+
* @returns {Promise<{shas:Record<string,string>,fileSet:Set<string>}>}
|
|
268
|
+
*/
|
|
269
|
+
private _fetchTreeAndBuildShas;
|
|
270
|
+
/**
|
|
271
|
+
* Helper to fetch files from the repository tree with caching and concurrency.
|
|
272
|
+
* @returns {Promise<Record<string,string>>}
|
|
273
|
+
*/
|
|
274
|
+
/**
|
|
275
|
+
* Fetch contents for requested paths from a FileSet with caching.
|
|
276
|
+
* @param {Set<string>} fileSet set of available files
|
|
277
|
+
* @param {Map<string,string>} cache content cache
|
|
278
|
+
* @param {Record<string,string>} snapshot snapshot output
|
|
279
|
+
* @param {string[]} paths requested paths
|
|
280
|
+
* @param {string} branch branch name
|
|
281
|
+
* @param {number} concurrency concurrency level
|
|
282
|
+
* @returns {Promise<Record<string,string>>}
|
|
283
|
+
*/
|
|
284
|
+
private _fetchContentFromFileSet;
|
|
285
|
+
/**
|
|
286
|
+
* 指定パスのファイル内容を取得し、キャッシュと snapshot を更新します。
|
|
287
|
+
* @param {Map<string,string>} cache キャッシュマップ
|
|
288
|
+
* @param {Record<string,string>} snapshot スナップショットマップ
|
|
289
|
+
* @param {string} p ファイルパス
|
|
290
|
+
* @param {string} branch ブランチ名
|
|
291
|
+
* @returns {Promise<string|null>} ファイル内容または null
|
|
292
|
+
*/
|
|
293
|
+
/**
|
|
294
|
+
* Fetch the content for a single file path, updating cache and snapshot.
|
|
295
|
+
* @param {Map<string,string>} cache cache map
|
|
296
|
+
* @param {Record<string,string>} snapshot snapshot map
|
|
297
|
+
* @param {string} p file path
|
|
298
|
+
* @param {string} branch branch
|
|
299
|
+
* @returns {Promise<string|null>} file content or null
|
|
300
|
+
*/
|
|
301
|
+
private _fetchFileContentForPath;
|
|
302
|
+
/**
|
|
303
|
+
* ファイルの raw コンテンツを取得して返します。失敗時は null を返します。
|
|
304
|
+
* @param {string} path ファイルパス
|
|
305
|
+
* @param {string} branch ブランチ名
|
|
306
|
+
* @returns {Promise<string|null>} ファイル内容または null
|
|
307
|
+
*/
|
|
308
|
+
/**
|
|
309
|
+
* Fetch raw file content from GitLab; return null on failure.
|
|
310
|
+
* @param {string} path file path
|
|
311
|
+
* @param {string} branch branch name
|
|
312
|
+
* @returns {Promise<string|null>} file content or null
|
|
313
|
+
*/
|
|
314
|
+
private _fetchFileRaw;
|
|
315
|
+
/** Build shas map and fileSet from tree entries */
|
|
316
|
+
/**
|
|
317
|
+
* Build shas map and fileSet from tree entries
|
|
318
|
+
* @returns {{shas:Record<string,string>,fileSet:Set<string>}}
|
|
319
|
+
*/
|
|
320
|
+
private _buildShasAndFileSet;
|
|
321
|
+
/**
|
|
322
|
+
* Resolve a commit-ish (branch name, tag name, or SHA) to a commit SHA.
|
|
323
|
+
* Resolution order: branch -> tag -> commits endpoint -> treat as SHA
|
|
324
|
+
* Throws if not resolvable.
|
|
325
|
+
*/
|
|
326
|
+
/**
|
|
327
|
+
* Resolve a commit-ish (branch, tag, or SHA) to a commit SHA.
|
|
328
|
+
* Resolution order: branch -> tag -> commits endpoint -> treat as SHA
|
|
329
|
+
* Throws if not resolvable.
|
|
330
|
+
* @param {string} reference commit-ish to resolve
|
|
331
|
+
* @returns {Promise<string>} resolved commit SHA
|
|
332
|
+
*/
|
|
333
|
+
/**
|
|
334
|
+
* Resolve a commit-ish (branch, tag, or SHA) to a commit SHA.
|
|
335
|
+
* Resolution order: branch -> tag -> commits endpoint -> treat as SHA
|
|
336
|
+
* Throws if not resolvable.
|
|
337
|
+
* @param {string} reference commit-ish to resolve
|
|
338
|
+
* @returns {Promise<string>} resolved commit SHA
|
|
339
|
+
*/
|
|
340
|
+
resolveRef(reference: string): Promise<string>;
|
|
341
|
+
/**
|
|
342
|
+
* Run resolver functions in order and return the first non-null result.
|
|
343
|
+
* @param {string} reference commit-ish to resolve
|
|
344
|
+
* @param {Array<(_reference: string) => Promise<string | null>>} resolvers resolver functions
|
|
345
|
+
* @returns {Promise<string|null>} resolved sha or null
|
|
346
|
+
*/
|
|
347
|
+
private _runResolvers;
|
|
348
|
+
/**
|
|
349
|
+
* Try to resolve a branch name to its commit SHA.
|
|
350
|
+
* @param {string} reference branch name
|
|
351
|
+
* @returns {Promise<string|null>} resolved sha or null
|
|
352
|
+
*/
|
|
353
|
+
private _tryResolveBranch;
|
|
354
|
+
/**
|
|
355
|
+
* Try to resolve a tag name to a commit SHA.
|
|
356
|
+
* @param {string} reference tag name
|
|
357
|
+
* @returns {Promise<string|null>} resolved SHA or null
|
|
358
|
+
*/
|
|
359
|
+
private _tryResolveTag;
|
|
360
|
+
/**
|
|
361
|
+
* Try to resolve a commit via commits endpoint.
|
|
362
|
+
* @param {string} reference commit-ish
|
|
363
|
+
* @returns {Promise<string|null>} resolved SHA or null
|
|
364
|
+
*/
|
|
365
|
+
private _tryResolveCommit;
|
|
89
366
|
}
|
|
90
367
|
export default GitLabAdapter;
|
|
91
368
|
//# sourceMappingURL=gitlabAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitlabAdapter.d.ts","sourceRoot":"","sources":["../../src/git/gitlabAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"gitlabAdapter.d.ts","sourceRoot":"","sources":["../../src/git/gitlabAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,kBAA0C,MAAM,sBAAsB,CAAA;AAG7E,KAAK,SAAS,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpE;;;;GAIG;AACH,qBAAa,aAAc,SAA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,aAAa,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { default as VirtualFS } from './virtualfs/virtualfs';
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as OpfsStorage } from './virtualfs/opfsStorage';
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default } from './
|
|
1
|
+
export { default as VirtualFS } from './virtualfs/virtualfs.ts';
|
|
2
|
+
export { default as IndexedDatabaseStorage } from './virtualfs/indexedDatabaseStorage.ts';
|
|
3
|
+
export { default as OpfsStorage } from './virtualfs/opfsStorage.ts';
|
|
4
|
+
export { default as InMemoryStorage } from './virtualfs/inmemoryStorage.ts';
|
|
5
|
+
export { default as GitHubAdapter } from './git/githubAdapter.ts';
|
|
6
|
+
export { default as GitLabAdapter } from './git/gitlabAdapter.ts';
|
|
7
|
+
export { default } from './virtualfs/virtualfs.ts';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uCAAuC,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA"}
|