@ledgerhq/domain-service 1.1.13 → 1.1.14-next.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ledgerhq/domain-service",
3
3
  "description": "Ledger service responsible for domain handling",
4
- "version": "1.1.13",
4
+ "version": "1.1.14-next.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -56,12 +56,11 @@
56
56
  "dependencies": {
57
57
  "axios": "^1.3.4",
58
58
  "eip55": "^2.1.1",
59
- "react": "^17.0.2",
60
- "react-dom": "^17.0.2",
61
- "@ledgerhq/cryptoassets": "^11.0.1",
62
- "@ledgerhq/errors": "^6.14.0",
63
- "@ledgerhq/logs": "^6.10.1",
64
- "@ledgerhq/types-live": "^6.41.1"
59
+ "react": "^18.2.0",
60
+ "react-dom": "^18.2.0",
61
+ "@ledgerhq/errors": "^6.15.0-next.0",
62
+ "@ledgerhq/logs": "^6.11.0-next.0",
63
+ "@ledgerhq/types-live": "^6.42.0-next.0"
65
64
  },
66
65
  "devDependencies": {
67
66
  "@testing-library/jest-dom": "^6.0.0",
@@ -71,12 +70,12 @@
71
70
  "@types/node": "^18.15.7",
72
71
  "@types/testing-library__jest-dom": "^5.14.5",
73
72
  "cross-env": "^7.0.3",
74
- "eslint-plugin-jest": "^27.2.1",
73
+ "eslint-plugin-jest": "^27.4.2",
75
74
  "jest": "^28.1.3",
76
75
  "jest-environment-jsdom": "^28.1.3",
77
- "react-test-renderer": "^17.0.2",
76
+ "react-test-renderer": "^18.2.0",
78
77
  "ts-jest": "^28.0.8",
79
- "@ledgerhq/types-cryptoassets": "^7.6.0"
78
+ "@ledgerhq/types-cryptoassets": "^7.7.0-next.0"
80
79
  },
81
80
  "scripts": {
82
81
  "clean": "rm -rf lib lib-es",
@@ -85,6 +84,7 @@
85
84
  "watch": "tsc --watch",
86
85
  "lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache",
87
86
  "lint:fix": "pnpm lint --fix",
88
- "test": "cross-env TZ=America/New_York jest"
87
+ "test": "cross-env TZ=America/New_York jest",
88
+ "unimported": "unimported"
89
89
  }
90
90
  }
@@ -39,7 +39,7 @@ const CustomTest = ({ str }: { str: string }) => {
39
39
  );
40
40
  };
41
41
 
42
- const wrapper: React.ComponentType<string> = ({ children }) => (
42
+ const wrapper: React.ComponentType<{ children?: React.ReactNode }> = ({ children }) => (
43
43
  <DomainServiceProvider>{children}</DomainServiceProvider>
44
44
  );
45
45
 
@@ -65,6 +65,7 @@ describe("useDomain", () => {
65
65
  it("should return an error when no resolution is found", async () => {
66
66
  const { result } = renderHook(useDomain, {
67
67
  initialProps: "",
68
+ // @ts-expect-error weird ts error
68
69
  wrapper,
69
70
  });
70
71
 
@@ -76,6 +77,7 @@ describe("useDomain", () => {
76
77
  it("should return an error when no resolution is found", async () => {
77
78
  const { result, waitForValueToChange } = renderHook(useDomain, {
78
79
  initialProps: "404-Not-Found.eth",
80
+ // @ts-expect-error weird ts error
79
81
  wrapper,
80
82
  });
81
83
 
@@ -87,6 +89,7 @@ describe("useDomain", () => {
87
89
  it("should return an error when the input has a forward registry but content is invalid", async () => {
88
90
  const { result, waitForValueToChange } = renderHook(useDomain, {
89
91
  initialProps: "not|valid|👋.eth",
92
+ // @ts-expect-error weird ts error
90
93
  wrapper,
91
94
  });
92
95