1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Bump eslint-config-oceanprotocol from 1.5.0 to 2.0.1 (#1466)

* Bump eslint-config-oceanprotocol from 1.5.0 to 2.0.1

Bumps [eslint-config-oceanprotocol](https://github.com/oceanprotocol/eslint-config-oceanprotocol) from 1.5.0 to 2.0.1.
- [Release notes](https://github.com/oceanprotocol/eslint-config-oceanprotocol/releases)
- [Changelog](https://github.com/oceanprotocol/eslint-config-oceanprotocol/blob/main/CHANGELOG.md)
- [Commits](https://github.com/oceanprotocol/eslint-config-oceanprotocol/compare/v1.5.0...v2.0.1)

---
updated-dependencies:
- dependency-name: eslint-config-oceanprotocol
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* rewrite .find() methods

* remove unnecessary any typings

* bump all ESLint packages

* fix coverage generation

* rollback ts-node update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
This commit is contained in:
dependabot[bot] 2022-06-15 18:08:13 +01:00 committed by GitHub
parent be06f05365
commit dae5e04565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1050 additions and 2370 deletions

3384
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,10 +39,10 @@
"test:examples": "npm run mocha -- 'test/integration/CodeExamples.test.ts'",
"test:provider": "npm run mocha -- 'test/integration/Provider.test.ts'",
"test:unit": "npm run mocha -- 'test/unit/**/*.test.ts'",
"test:unit:cover": "nyc --report-dir coverage/unit npm run test:unit",
"test:unit:cover": "nyc --report-dir coverage/unit --exclude 'src/@types/**/*' npm run test:unit",
"test:integration": "npm run mocha -- 'test/integration/**/*.test.ts'",
"test:compute": "npm run mocha -- 'test/integration/ComputeFlow.test.ts'",
"test:integration:cover": "nyc --report-dir coverage/integration --no-clean npm run test:integration",
"test:integration:cover": "nyc --report-dir coverage/integration --exclude 'src/@types/**/*' --no-clean npm run test:integration",
"create:guide": "chmod +x ./scripts/createCodeExamples.sh && ./scripts/createCodeExamples.sh",
"create:guide:mac": "chmod +x ./scripts/createCodeExamples-mac.sh && ./scripts/createCodeExamples-mac.sh",
"commit:guide": "chmod +x scripts/commitChanges.sh && scripts/commitChanges.sh"
@ -79,14 +79,14 @@
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.35",
"@types/node-fetch": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"auto-changelog": "^2.4.0",
"chai": "^4.3.6",
"chai-spies": "^1.0.0",
"cross-env": "^7.0.3",
"eslint": "^7.17.0",
"eslint-config-oceanprotocol": "^1.5.0",
"eslint": "^8.17.0",
"eslint-config-oceanprotocol": "^2.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"fs": "0.0.1-security",

View File

@ -1624,10 +1624,10 @@ export class Pool {
*/
public getSwapEventSignature(): string {
const abi = this.poolAbi as AbiItem[]
const eventdata = abi.find(function (o) {
if (o.name === 'LOG_SWAP' && o.type === 'event') return o
})
const topic = this.web3.eth.abi.encodeEventSignature(eventdata as any)
const eventdata = abi.find(
({ name, type }) => type === 'event' && name === 'LOG_SWAP'
)
const topic = this.web3.eth.abi.encodeEventSignature(eventdata)
return topic
}
@ -1637,10 +1637,10 @@ export class Pool {
*/
public getJoinEventSignature(): string {
const abi = this.poolAbi as AbiItem[]
const eventdata = abi.find(function (o) {
if (o.name === 'LOG_JOIN' && o.type === 'event') return o
})
const topic = this.web3.eth.abi.encodeEventSignature(eventdata as any)
const eventdata = abi.find(
({ name, type }) => type === 'event' && name === 'LOG_JOIN'
)
const topic = this.web3.eth.abi.encodeEventSignature(eventdata)
return topic
}
@ -1650,10 +1650,10 @@ export class Pool {
*/
public getExitEventSignature(): string {
const abi = this.poolAbi as AbiItem[]
const eventdata = abi.find(function (o) {
if (o.name === 'LOG_EXIT' && o.type === 'event') return o
})
const topic = this.web3.eth.abi.encodeEventSignature(eventdata as any)
const eventdata = abi.find(
({ name, type }) => type === 'event' && name === 'LOG_EXIT'
)
const topic = this.web3.eth.abi.encodeEventSignature(eventdata)
return topic
}
}