Skip to content

Commit

Permalink
feat(manifest): pass index file (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgracki authored Jan 24, 2024
1 parent 90abbb7 commit 4f41e98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ManifestService extends NodeService<Stack> {
* @param {JSON} manifest manifest JSON
* @returns Promise with corresponding transaction id
*/
public async generate(vaultId: string, manifest?: JSON | Object): Promise<{ transactionId: string, object: Stack }> {
public async generate(vaultId: string, manifest?: JSON | Object, indexName?: string): Promise<{ transactionId: string, object: Stack }> {
this.stackService.fileService.contentType = CONTENT_TYPE;

const vault = await this.api.getVault(vaultId);
Expand All @@ -56,7 +56,7 @@ class ManifestService extends NodeService<Stack> {
}

if (!manifest) {
manifest = await this.renderManifestJSON(vaultId);
manifest = await this.renderManifestJSON(vaultId, indexName);
}
const manifestNode = await this.get(vaultId);
if (manifestNode) {
Expand Down
3 changes: 0 additions & 3 deletions src/types/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ export namespace NodeJs {
if (!name) {
throw new BadRequest("File name is required, please provide it in the file options.");
}
if (!mimeType) {
console.warn("Missing file mime type. If this is unintentional, please provide it in the file options.");
}
this.name = name;
this.lastModified = lastModified;
}
Expand Down

0 comments on commit 4f41e98

Please sign in to comment.