@unifold/connect-solid 0.1.68-beta.0 → 0.1.68-beta.2

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/index.js CHANGED
@@ -6,9 +6,7 @@ var UnifoldContext = createContext();
6
6
  function useUnifold() {
7
7
  const ctx = useContext(UnifoldContext);
8
8
  if (!ctx) {
9
- throw new Error(
10
- "useUnifold() must be called inside a component wrapped by <UnifoldProvider>"
11
- );
9
+ throw new Error("useUnifold() must be called inside a component wrapped by <UnifoldProvider>");
12
10
  }
13
11
  return ctx;
14
12
  }
package/dist/index.jsx CHANGED
@@ -7,9 +7,7 @@ var UnifoldContext = createContext();
7
7
  function useUnifold() {
8
8
  const ctx = useContext(UnifoldContext);
9
9
  if (!ctx) {
10
- throw new Error(
11
- "useUnifold() must be called inside a component wrapped by <UnifoldProvider>"
12
- );
10
+ throw new Error("useUnifold() must be called inside a component wrapped by <UnifoldProvider>");
13
11
  }
14
12
  return ctx;
15
13
  }
@@ -77,9 +75,7 @@ function UnifoldProvider(props) {
77
75
  rejectReady(destroyedBeforeInitError);
78
76
  }
79
77
  });
80
- return <UnifoldContext.Provider value={ctx}>
81
- {props.children}
82
- </UnifoldContext.Provider>;
78
+ return <UnifoldContext.Provider value={ctx}>{props.children}</UnifoldContext.Provider>;
83
79
  }
84
80
  export {
85
81
  UnifoldContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/connect-solid",
3
- "version": "0.1.68-beta.0",
3
+ "version": "0.1.68-beta.2",
4
4
  "type": "module",
5
5
  "description": "Unifold Connect for Solid - Native Solid JS SDK for the Unifold deposit widget",
6
6
  "exports": {
@@ -22,13 +22,21 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@unifold/ui-web": "0.1.68-beta.0"
25
+ "@stripe/crypto": "^1.1.0",
26
+ "@stripe/stripe-js": "^1.54.2",
27
+ "@unifold/ui-web": "0.1.68-beta.2"
26
28
  },
27
29
  "peerDependencies": {
28
30
  "solid-js": "^1.6.0"
29
31
  },
30
32
  "devDependencies": {
33
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
34
+ "@typescript-eslint/parser": "^6.21.0",
31
35
  "esbuild-plugin-solid": "^0.6.0",
36
+ "eslint": "^8.57.0",
37
+ "eslint-config-prettier": "^9.1.0",
38
+ "eslint-plugin-prettier": "^5.1.3",
39
+ "prettier": "^3.2.5",
32
40
  "solid-js": "^1.8.0",
33
41
  "tsup": "^8.0.0",
34
42
  "tsup-preset-solid": "^2.2.0",
@@ -47,6 +55,10 @@
47
55
  "scripts": {
48
56
  "build": "tsup",
49
57
  "dev": "tsup --watch",
58
+ "lint": "eslint \"src/**/*.{ts,tsx}\"",
59
+ "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
60
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
61
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
50
62
  "type-check": "tsc --noEmit",
51
63
  "clean": "rm -rf dist"
52
64
  }