@human-protocol/sdk 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/operator.js CHANGED
@@ -102,7 +102,7 @@ class OperatorUtils {
102
102
  }
103
103
  try {
104
104
  const { reputationNetwork } = await (0, graphql_request_1.default)(networkData.subgraphUrl, (0, operator_1.GET_REPUTATION_NETWORK_QUERY)(role), {
105
- address: address,
105
+ address: address.toLowerCase(),
106
106
  role: role,
107
107
  });
108
108
  return reputationNetwork.operators;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@human-protocol/sdk",
3
3
  "description": "Human Protocol SDK",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "files": [
6
6
  "src",
7
7
  "dist"
@@ -12,9 +12,9 @@
12
12
  "clean": "rm -rf ./dist",
13
13
  "clean:doc": "rm -rf ../../../../docs/sdk/typescript/",
14
14
  "prebuild": "yarn workspace @human-protocol/core build",
15
- "build": "npm run clean && tsc",
16
- "build:doc": "npm run clean:doc && npx typedoc --plugin typedoc-plugin-markdown --out ../../../../docs/sdk/typescript/",
17
- "prepublish": "npm run build",
15
+ "build": "yarn clean && tsc",
16
+ "build:doc": "yarn clean:doc && npx typedoc --plugin typedoc-plugin-markdown --out ../../../../docs/sdk/typescript/",
17
+ "prepublish": "yarn build",
18
18
  "test": "vitest -u",
19
19
  "lint": "eslint .",
20
20
  "lint:fix": "eslint . --fix",
@@ -42,7 +42,6 @@
42
42
  "@human-protocol/core": "*",
43
43
  "aws-sdk": "^2.1528.0",
44
44
  "axios": "^1.4.0",
45
- "crypto": "^1.0.1",
46
45
  "graphql": "^16.8.1",
47
46
  "graphql-request": "^6.1.0",
48
47
  "graphql-tag": "^2.12.6",
@@ -50,7 +49,7 @@
50
49
  "openpgp": "^5.10.2",
51
50
  "secp256k1": "^4.0.3",
52
51
  "vitest": "^0.30.1",
53
- "winston": "^3.8.2"
52
+ "winston": "^3.13.0"
54
53
  },
55
54
  "devDependencies": {
56
55
  "typedoc": "^0.25.1",
package/src/operator.ts CHANGED
@@ -134,7 +134,7 @@ export class OperatorUtils {
134
134
  const { reputationNetwork } = await gqlFetch<{
135
135
  reputationNetwork: IReputationNetwork;
136
136
  }>(networkData.subgraphUrl, GET_REPUTATION_NETWORK_QUERY(role), {
137
- address: address,
137
+ address: address.toLowerCase(),
138
138
  role: role,
139
139
  });
140
140