Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Bump prettier from 2.2.1 to 2.3.0 (#307)
Browse files Browse the repository at this point in the history
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.2.1...2.3.0)

Signed-off-by: dependabot[bot] <[email protected]>

* prettier updates

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <[email protected]>
  • Loading branch information
dependabot[bot] and kremalicious authored May 25, 2021
1 parent 94527e9 commit 9d2c0f3
Show file tree
Hide file tree
Showing 7 changed files with 22,120 additions and 4,055 deletions.
3 changes: 1 addition & 2 deletions example/src/Publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export function Publish() {
license: 'MIT',
files: [
{
url:
'https://raw.githubusercontent.com/tbertinmahieux/MSongsDB/master/Tasks_Demos/CoverSongs/shs_dataset_test.txt',
url: 'https://raw.githubusercontent.com/tbertinmahieux/MSongsDB/master/Tasks_Demos/CoverSongs/shs_dataset_test.txt',
checksum: 'efb2c764274b745f5fc37f97c6b0e761',
contentLength: '4535431',
contentType: 'text/csv',
Expand Down
26,110 changes: 22,091 additions & 4,019 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,29 @@
"dist/"
],
"dependencies": {
"@oceanprotocol/lib": "^0.14.3",
"@oceanprotocol/lib": "^0.14.9",
"axios": "^0.21.1",
"decimal.js": "^10.2.1",
"web3": "^1.3.4",
"web3": "^1.3.6",
"web3modal": "^1.9.3"
},
"devDependencies": {
"@release-it/bumper": "^2.0.0",
"@types/node-fetch": "^2.5.7",
"@types/react": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"auto-changelog": "^2.2.1",
"eslint": "^7.21.0",
"eslint": "^7.27.0",
"eslint-config-oceanprotocol": "^1.5.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react-hooks": "^4.2.0",
"microbundle": "^0.13.0",
"prettier": "^2.2.1",
"release-it": "^14.4.1",
"prettier": "^2.3.0",
"release-it": "^14.7.0",
"serialize-javascript": "^5.0.1",
"typescript": "^4.2.2"
"typescript": "^4.2.4"
},
"peerDependencies": {
"react": ">=16.8.0"
Expand Down
9 changes: 2 additions & 7 deletions src/hooks/usePricing/usePricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,8 @@ function usePricing(ddo: DDO): UsePricing {
): Promise<TransactionReceipt | void> {
if (!ocean || !accountId || !dtSymbol) return

const {
type,
oceanAmount,
price,
weightOnDataToken,
swapFee
} = priceOptions
const { type, oceanAmount, price, weightOnDataToken, swapFee } =
priceOptions

let { dtAmount } = priceOptions
const isPool = type === 'dynamic'
Expand Down
15 changes: 8 additions & 7 deletions src/hooks/usePublish/usePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ function usePublish(): UsePublish {
switch (serviceType) {
case 'access': {
if (!timeout) timeout = 0
const accessService = await ocean.assets.createAccessServiceAttributes(
account,
price,
publishedDate,
timeout,
providerUri
)
const accessService =
await ocean.assets.createAccessServiceAttributes(
account,
price,
publishedDate,
timeout,
providerUri
)
Logger.log('access service created', accessService)
services.push(accessService)
break
Expand Down
5 changes: 2 additions & 3 deletions src/providers/OceanProvider/OceanProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ function OceanProvider({
const [accountId, setAccountId] = useState<string | undefined>()
const [isInPurgatory, setIsInPurgatory] = useState(false)
const [purgatoryData, setPurgatoryData] = useState<AccountPurgatoryData>()
const [config, setConfig] = useState<Config | ConfigHelperConfig>(
initialConfig
)
const [config, setConfig] =
useState<Config | ConfigHelperConfig>(initialConfig)
const [balance, setBalance] = useState<Balance | undefined>({
eth: undefined,
ocean: undefined
Expand Down
12 changes: 6 additions & 6 deletions src/utils/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export const computeFeedback: { [key in number]: string } = {
2: '3/3 Access granted. Starting job...'
}

export function getCreatePricingPoolFeedback(
dtSymbol: string
): { [key: number]: string } {
export function getCreatePricingPoolFeedback(dtSymbol: string): {
[key: number]: string
} {
return {
99: `Minting ${dtSymbol} ...`,
0: 'Creating pool ...',
Expand All @@ -41,9 +41,9 @@ export function getCreatePricingPoolFeedback(
}
}

export function getCreatePricingExchangeFeedback(
dtSymbol: string
): { [key: number]: string } {
export function getCreatePricingExchangeFeedback(dtSymbol: string): {
[key: number]: string
} {
return {
99: `Minting ${dtSymbol} ...`,
0: 'Creating exchange ...',
Expand Down

0 comments on commit 9d2c0f3

Please sign in to comment.