@reef-knot/wallet-adapter-safe 2.0.1 → 3.0.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.
@@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
+ /* global Reflect, Promise, SuppressedError, Symbol */
16
+
15
17
 
16
18
  function __awaiter(thisArg, _arguments, P, generator) {
17
19
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,EAAE,SAAS,CAAC;AACzB,eAAO,MAAM,IAAI,SAAS,CAAC;AAgB3B,eAAO,MAAM,IAAI,EAAE,iBA8DjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,EAAE,SAAS,CAAC;AACzB,eAAO,MAAM,IAAI,SAAS,CAAC;AAgB3B,eAAO,MAAM,IAAI,EAAE,iBAmEjB,CAAC"}
package/dist/index.js CHANGED
@@ -35,6 +35,8 @@ const Safe = ({
35
35
  const isIframe = globalThis.window && ((_a = globalThis.window) === null || _a === void 0 ? void 0 : _a.parent) !== globalThis.window;
36
36
  if (!isIframe) return false;
37
37
  try {
38
+ // It is a dependency of @wagmi/connectors
39
+ // eslint-disable-next-line import/no-extraneous-dependencies
38
40
  const {
39
41
  default: SafeAppsSDK
40
42
  } = yield import('@safe-global/safe-apps-sdk');
@@ -54,6 +56,8 @@ const Safe = ({
54
56
  timeout: 200
55
57
  });
56
58
  if (!safeSdk) return false;
59
+ // It is a dependency of @wagmi/connectors
60
+ // eslint-disable-next-line import/no-extraneous-dependencies
57
61
  const {
58
62
  SafeAppProvider
59
63
  } = yield import('@safe-global/safe-apps-provider');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-safe",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -32,14 +32,14 @@
32
32
  "lint": "eslint --ext ts,tsx,js,mjs ."
33
33
  },
34
34
  "devDependencies": {
35
- "@reef-knot/types": "^2.0.1",
35
+ "@reef-knot/types": "^3.0.0",
36
36
  "@svgr/rollup": "^6.5.1",
37
37
  "eslint-config-custom": "*"
38
38
  },
39
39
  "peerDependencies": {
40
- "viem": "2.13.3",
41
- "wagmi": "2.11.2",
42
- "@reef-knot/types": "^2.0.0",
40
+ "viem": ">=2.21",
41
+ "wagmi": ">=2.12",
42
+ "@reef-knot/types": "^3.0.0",
43
43
  "@tanstack/react-query": "^5.29.0"
44
44
  }
45
45
  }