Skip to content

Commit

Permalink
Merge pull request #1832 from oceanprotocol/issue-1831-fileinfo-case
Browse files Browse the repository at this point in the history
make service endpoint / service name check case insensitive
  • Loading branch information
paulo-ocean authored Jul 2, 2024
2 parents b5b301b + 9c88abd commit 1ef08f6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v3.3.3-next.1](https://github.com/oceanprotocol/ocean.js/compare/v3.3.3-next.0...v3.3.3-next.1)

- wip: update compute status/stop to support `agreementId`, not `documentId`, sig fix [`#1822`](https://github.com/oceanprotocol/ocean.js/pull/1822)
- put timeout back and test order,mut be ipfs side temporary [`557289e`](https://github.com/oceanprotocol/ocean.js/commit/557289e5f2c3a667abb6645a07c8342be881c186)
- try swap tests order , debug [`fb50bee`](https://github.com/oceanprotocol/ocean.js/commit/fb50bee3804d943949da33cfdfb615449d6c39c1)
- remove console.logs [`4e0536a`](https://github.com/oceanprotocol/ocean.js/commit/4e0536a1f8a812e4002b437665ce5357fddccd22)

#### [v3.3.3-next.0](https://github.com/oceanprotocol/ocean.js/compare/v3.3.2...v3.3.3-next.0)

> 27 June 2024
- Release 3.3.3-next.0 [`6f13fe7`](https://github.com/oceanprotocol/ocean.js/commit/6f13fe796feb9f168f234c8edf5ed27bcc47ce82)
- wip: update to support agreementId [`9d58208`](https://github.com/oceanprotocol/ocean.js/commit/9d582082f05cab961915aef04e74f8e32fd7ba9c)
- update compute stop, document id is not needed, neither for operator service, neither used on signature check [`5105a4f`](https://github.com/oceanprotocol/ocean.js/commit/5105a4fdadbf5590ebf2954a1d6f3a12f77b235c)
- wip: debug agreemenet id [`1dcafcf`](https://github.com/oceanprotocol/ocean.js/commit/1dcafcff6cd51b1d3f0ec4a7ce882ad727a2267b)

#### [v3.3.2](https://github.com/oceanprotocol/ocean.js/compare/v3.3.1...v3.3.2)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oceanprotocol/lib",
"source": "./src/index.ts",
"version": "3.3.3-next.0",
"version": "3.3.3-next.1",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/lib.js",
"umd:main": "dist/lib.umd.js",
Expand Down
4 changes: 3 additions & 1 deletion src/services/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export class Provider {
serviceName: string
): ServiceEndpoint {
if (!servicesEndpoints) return null
return servicesEndpoints.find((s) => s.serviceName === serviceName) as ServiceEndpoint
return servicesEndpoints.find(
(s) => s.serviceName.toLowerCase() === serviceName.toLowerCase()
) as ServiceEndpoint
}

/**
Expand Down

0 comments on commit 1ef08f6

Please sign in to comment.