mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
linter fixes
This commit is contained in:
parent
5e4a33f4e2
commit
f71e7e345a
@ -15,7 +15,7 @@ export default class DID {
|
|||||||
public static parse(didString: string): DID {
|
public static parse(didString: string): DID {
|
||||||
let did: DID
|
let did: DID
|
||||||
const didMatch = didString.match(/^did:op:([a-f0-9]{64})$/i)
|
const didMatch = didString.match(/^did:op:([a-f0-9]{64})$/i)
|
||||||
|
|
||||||
if (didMatch) {
|
if (didMatch) {
|
||||||
did = new DID(didMatch[1])
|
did = new DID(didMatch[1])
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import deprecated from 'deprecated-decorator';
|
import deprecated from "deprecated-decorator"
|
||||||
|
|
||||||
import AquariusProvider from "../aquarius/AquariusProvider"
|
import AquariusProvider from "../aquarius/AquariusProvider"
|
||||||
import SearchQuery from "../aquarius/query/SearchQuery"
|
import SearchQuery from "../aquarius/query/SearchQuery"
|
||||||
@ -82,9 +82,9 @@ export default class Ocean {
|
|||||||
* @param {string} did Decentralized ID.
|
* @param {string} did Decentralized ID.
|
||||||
* @return {Promise<DDO>}
|
* @return {Promise<DDO>}
|
||||||
*/
|
*/
|
||||||
@deprecated('resolveAssetDID')
|
@deprecated("resolveAssetDID")
|
||||||
public async resolveDID(did: string): Promise<DDO> {
|
public async resolveDID(did: string): Promise<DDO> {
|
||||||
return await this.resolveAssetDID(did);
|
return await this.resolveAssetDID(did)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -201,15 +201,15 @@ export default class Ocean {
|
|||||||
* @param {string} serviceDefinitionId Service definition ID.
|
* @param {string} serviceDefinitionId Service definition ID.
|
||||||
* @param {Account} consumer Consumer account.
|
* @param {Account} consumer Consumer account.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@deprecated('purchaseAssetService')
|
@deprecated("purchaseAssetService")
|
||||||
public async signServiceAgreement(
|
public async signServiceAgreement(
|
||||||
did: string,
|
did: string,
|
||||||
serviceDefinitionId: string,
|
serviceDefinitionId: string,
|
||||||
consumer: Account,
|
consumer: Account,
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
return await this.purchaseAssetService(did, serviceDefinitionId, consumer);
|
return await this.purchaseAssetService(did, serviceDefinitionId, consumer)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -369,7 +369,6 @@ export default class Ocean {
|
|||||||
return AquariusProvider.getAquarius().queryMetadata(query)
|
return AquariusProvider.getAquarius().queryMetadata(query)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search over the assets using a keyword.
|
* Search over the assets using a keyword.
|
||||||
* @param {SearchQuery} text Text to filter the assets.
|
* @param {SearchQuery} text Text to filter the assets.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import fetch, { Response, RequestInit, BodyInit } from "node-fetch"
|
import fetch, { BodyInit, RequestInit, Response } from "node-fetch"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a common interface to web services.
|
* Provides a common interface to web services.
|
||||||
|
Loading…
Reference in New Issue
Block a user