MCPcopy
hub / github.com/conwnet/github1s / replace

Method replace

extensions/github1s/src/router/index.ts:89–93  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

87
88 // replace the url with current history
89 public async replace(path: string) {
90 await this._barrier.wait();
91 const emptyState = { pathname: '', search: '', hash: '' };
92 return this._history!.replace({ ...emptyState, ...parsePath(encodeURI(path)) });
93 }
94
95 public async resolveParser(): Promise<RouterParser> {
96 await this._barrier.wait();

Callers 12

pFunction · 0.80
HFunction · 0.80
commandSwitchToCommitFunction · 0.80
GitLabFetcherClass · 0.80
combineGlobsToRegExpFunction · 0.80
escapeRegexpFunction · 0.80
initServicesMethod · 0.80
formatUriMethod · 0.80
adjustPathSeparatorsMethod · 0.80

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected