Skip to content

Commit

Permalink
Merge branch 'main' into fix/rule-description
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Mar 15, 2024
2 parents 2b2578a + 8527171 commit 2d49599
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/early-tables-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@rsdoctor/types': patch
'@rsdoctor/sdk': patch
---

fix(inner-doctor): support getHash for inner rsdoctor
4 changes: 4 additions & 0 deletions packages/sdk/src/sdk/sdk/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export abstract class SDKCore<T extends RsdoctorSDKOptions>
this.hash = hash;
}

public getHash() {
return this.hash;
}

public getClientRoutes() {
return [...this._clientRoutes];
}
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/sdk/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface Hooks {
{
manifestWithShardingFiles: RsdoctorManifestWithShardingFiles;
manifestDiskPath: string;
manifestCloudPath?: string;
},
]
>;
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/sdk/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface RsdoctorSDKInstance {
/** Change build name */
setName(name: string): void;
setHash(hash: string): void;
getHash(): string;

/**
* write the manifest to a folder
Expand Down

0 comments on commit 2d49599

Please sign in to comment.