Skip to content

Commit cea92c3

Browse files
rachel2codepetermetz
authored andcommitted
style: open source day batch hyperledger-cacti#3
Fixes hyperledger-cacti#1352 Signed-off-by: rachel2code <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
1 parent 6a160bf commit cea92c3

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class BookshelfDetailPage implements OnInit {
7979
this.log.debug(`BambooHarvest IDs: %o`, this.bambooHarvestIds);
8080
}
8181

82-
onClickFormSubmit(value: any): void {
82+
onClickFormSubmit(value: Bookshelf): void {
8383
this.log.debug("form submitted", value);
8484
this.bookshelf = value;
8585
this.modalController.dismiss(this.bookshelf);

examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class ShipmentDetailPage implements OnInit {
7777
this.log.debug(`BambooHarvest IDs: %o`, this.bookshelfIds);
7878
}
7979

80-
onClickFormSubmit(value: any): void {
80+
onClickFormSubmit(value: Shipment): void {
8181
this.log.debug("form submitted", value);
8282
this.shipment = value;
8383
this.modalController.dismiss(this.shipment);

examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ShipmentListPage implements OnInit {
5353
this.log.debug(`Fetched Shipment data: %o`, shipments);
5454
}
5555

56-
async clickShowDetail(shipment: Shipment) {
56+
async clickShowDetail(shipment: Shipment): Promise<void> {
5757
this.log.debug("clickShowDetail()", shipment);
5858

5959
const modal = await this.modalController.create({
@@ -73,7 +73,7 @@ export class ShipmentListPage implements OnInit {
7373
}
7474
}
7575

76-
async clickAddNew() {
76+
async clickAddNew(): Promise<void> {
7777
this.log.debug(`clickAddNew()`);
7878
const modal = await this.modalController.create({
7979
component: ShipmentDetailPage,

examples/cactus-example-supply-chain-frontend/src/zone-flags.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
* Prevents Angular change detection from
33
* running with certain Web Component callbacks
44
*/
5-
(window as any).__Zone_disable_customElements = true;
5+
type WindowWithZone = Window &
6+
typeof globalThis & { __Zone_disable_customElements: boolean };
7+
(window as WindowWithZone).__Zone_disable_customElements = true;

extensions/cactus-plugin-object-store-ipfs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@
8383
"@types/express": "4.17.13",
8484
"express": "4.17.1",
8585
"ipfs-core-types": "0.6.1",
86-
"multiformats": "9.4.6"
86+
"multiformats": "9.4.9"
8787
}
8888
}

extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
// Needed to disable the no-unused-vars check here because the file is full
2+
// of unused method parameters given how this is a mock which doesn't do
3+
// anything for the most part and that's by design.
14
/* eslint-disable @typescript-eslint/no-unused-vars */
5+
import { CID } from "multiformats/cid";
26
import {
37
API as FilesAPI,
48
ChmodOptions,
@@ -140,7 +144,7 @@ export class FilesApiMock implements FilesAPI {
140144
public async flush(
141145
ipfsPath: string,
142146
options?: AbortOptions | undefined,
143-
): Promise<any> {
147+
): Promise<CID> {
144148
throw new RuntimeError("Method flush() not implemented");
145149
}
146150

extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export class IpfsHttpClientMock implements IIpfsHttpClient {
119119
this.dag = {} as DAGAPI;
120120
this.dht = {} as DHTAPI;
121121
this.diag = {} as DiagAPI;
122-
this.files = new FilesApiMock({ logLevel: this.options.logLevel }) as any;
122+
this.files = new FilesApiMock({
123+
logLevel: this.options.logLevel,
124+
}) as FilesAPI;
123125
this.key = {} as KeyAPI;
124126
this.log = {} as LogAPI;
125127
this.name = {} as NameAPI;

yarn.lock

+1-6
Original file line numberDiff line numberDiff line change
@@ -17183,12 +17183,7 @@ multicodec@^1.0.0:
1718317183
buffer "^5.6.0"
1718417184
varint "^5.0.0"
1718517185

17186-
17187-
version "9.4.6"
17188-
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.4.6.tgz#d24b2e313ff3a3f8f48eef771d44fb329a354e56"
17189-
integrity sha512-ngZRO82P7mPvw/3gu5NQ2QiUJGYTS0LAxvQnEAlWCJakvn7YpK2VAd9JWM5oosYUeqoVbkylH/FsqRc4fc2+ag==
17190-
17191-
multiformats@^9.0.0, multiformats@^9.4.1, multiformats@^9.4.2, multiformats@^9.4.5:
17186+
[email protected], multiformats@^9.0.0, multiformats@^9.4.1, multiformats@^9.4.2, multiformats@^9.4.5:
1719217187
version "9.4.9"
1719317188
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.4.9.tgz#5d3c7cf8dfeef6bda2535d37fd0ac99b10a15046"
1719417189
integrity sha512-zA84TTJcRfRMpjvYqy63piBbSEdqlIGqNNSpP6kspqtougqjo60PRhIFo+oAxrjkof14WMCImvr7acK6rPpXLw==

0 commit comments

Comments
 (0)