Skip to content

Commit

Permalink
Fix lastDownloaded typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TakayasuKoura committed Aug 17, 2022
1 parent f340acb commit 8aff953
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ manager.

### Install the dim from binary files

Donwload the dim from binary files.
Download the dim from binary files.

[aarch64-apple-darwin](https://github.com/c-3lab/dim/raw/main/bin/aarch64-apple-darwin/dim)

Expand Down
14 changes: 7 additions & 7 deletions libs/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const installFromDimFile = async (isUpdate = false) => {
catalogResourceId: null,
lastModified: lastModified,
eTag: headers.get("etag"),
lastDonwloaded: new Date(),
lastDownloaded: new Date(),
integrity: "",
postProcesses: content.postProcesses,
headers: {},
Expand Down Expand Up @@ -211,7 +211,7 @@ export class InstallAction {
catalogResourceId: null,
lastModified: null,
eTag: null,
lastDonwloaded: new Date(),
lastDownloaded: new Date(),
integrity: "",
postProcesses: options.postProcesses || [],
headers: parsedHeaders,
Expand Down Expand Up @@ -311,7 +311,7 @@ export class ListAction {
content.catalogResourceId,
content.lastModified,
content.eTag,
content.lastDonwloaded,
content.lastDownloaded,
content.integrity,
content.postProcesses.join(","),
content.headers,
Expand Down Expand Up @@ -351,16 +351,16 @@ export class ListAction {
Colors.green(
content.lastModified === null
? "null"
: content.lastDonwloaded.toString(),
: content.lastDownloaded.toString(),
),
);
console.log(
" - ETag :",
Colors.green(content.eTag === null ? "null" : content.eTag),
);
console.log(
" - Last donwloaded :",
Colors.green(content.lastDonwloaded.toString()),
" - Last downloaded :",
Colors.green(content.lastDownloaded.toString()),
);
console.log(
" - Integrity :",
Expand Down Expand Up @@ -423,7 +423,7 @@ export class UpdateAction {
catalogResourceId: null,
lastModified: null,
eTag: null,
lastDonwloaded: new Date(),
lastDownloaded: new Date(),
integrity: "",
postProcesses: options.postProcesses || [],
headers: {},
Expand Down
2 changes: 1 addition & 1 deletion libs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface LockContent {
catalogResourceId: string | null;
lastModified: Date | null;
eTag: string | null;
lastDonwloaded: Date;
lastDownloaded: Date;
integrity: string;
postProcesses: string[];
headers: { [key: string]: string };
Expand Down

0 comments on commit 8aff953

Please sign in to comment.