@telegram-apps/react-router-integration
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
import { useCallback as b, useState as P, useMemo as U, useEffect as x } from "react"; | ||
import { useCallback as b, useState as P, useMemo as U, useEffect as O } from "react"; | ||
class d extends Error { | ||
@@ -10,5 +10,5 @@ constructor(e, o, a) { | ||
} | ||
const O = "ERR_UNEXPECTED_TYPE", $ = "ERR_PARSE"; | ||
const R = "ERR_UNEXPECTED_TYPE", $ = "ERR_PARSE"; | ||
function h() { | ||
return y(O, "Value has unexpected type"); | ||
return y(R, "Value has unexpected type"); | ||
} | ||
@@ -54,3 +54,3 @@ class E { | ||
}, "boolean"); | ||
function R(t, e) { | ||
function S(t, e) { | ||
const o = {}; | ||
@@ -77,3 +77,3 @@ for (const a in t) { | ||
} | ||
function A(t) { | ||
function x(t) { | ||
let e = t; | ||
@@ -86,4 +86,4 @@ if (typeof e == "string" && (e = JSON.parse(e)), typeof e != "object" || e === null || Array.isArray(e)) | ||
return new E((o) => { | ||
const a = A(o); | ||
return R(t, (r) => a[r]); | ||
const a = x(o); | ||
return S(t, (r) => a[r]); | ||
}, !1, e); | ||
@@ -177,3 +177,3 @@ } | ||
} | ||
function W(t) { | ||
function A(t) { | ||
const e = b(() => ({ | ||
@@ -198,7 +198,7 @@ state: t.state, | ||
}), [t]); | ||
return x(() => t.on("change", () => a(e())), [t, e]), [o, c]; | ||
return O(() => t.on("change", () => a(e())), [t, e]), [o, c]; | ||
} | ||
export { | ||
W as useIntegration | ||
A as useIntegration | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@telegram-apps/react-router-integration", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Navigator integration for the react-router-dom package.", | ||
@@ -40,6 +40,6 @@ "author": "Vladislav Kibenko <wolfram.deus@gmail.com>", | ||
"peerDependencies": { | ||
"@telegram-apps/sdk": "^1", | ||
"@types/react": "^17.0.0 || ^18.0.0", | ||
"react": "^17.0.0 || ^18.0.0", | ||
"react-router-dom": "^6.22.3", | ||
"@telegram-apps/sdk": "^1.0.0" | ||
"react-router-dom": "^6.22.3" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependenciesMeta": { | ||
"react-router-dom": "^6.22.3", | ||
"@telegram-apps/sdk-react": "1.0.0", | ||
"@telegram-apps/sdk-react": "1.1.0", | ||
"tsconfig": "0.0.2" | ||
@@ -56,0 +56,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202146