@notifi-network/notifi-react-hooks
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.11
@@ -13,4 +13,4 @@ import useAuthenticatedQuery from "./useAuthenticatedQuery"; | ||
import useNotifiJwt from "./useNotifiJwt"; | ||
import useUpdateTargetGroup from "./useUpdateTargetGRoup"; | ||
import useUpdateTargetGroup from "./useUpdateTargetGroup"; | ||
export { useAuthenticatedQuery, useCreateAlert, useCreateEmailTarget, useCreateSmsTarget, useCreateTargetGroup, useCreateTelegramTarget, useGetFilters, useGetSourceGroups, useGetTargetGroups, useLoginFromDao, useNotifiConfig, useNotifiJwt, useUpdateTargetGroup, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -31,4 +31,4 @@ "use strict"; | ||
exports.useNotifiJwt = useNotifiJwt_1.default; | ||
const useUpdateTargetGRoup_1 = __importDefault(require("./useUpdateTargetGRoup")); | ||
exports.useUpdateTargetGroup = useUpdateTargetGRoup_1.default; | ||
const useUpdateTargetGroup_1 = __importDefault(require("./useUpdateTargetGroup")); | ||
exports.useUpdateTargetGroup = useUpdateTargetGroup_1.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaG9va3MvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsb0ZBQTREO0FBZTFELGdDQWZLLCtCQUFxQixDQWVMO0FBZHZCLHNFQUE4QztBQWU1Qyx5QkFmSyx3QkFBYyxDQWVMO0FBZGhCLGtGQUEwRDtBQWV4RCwrQkFmSyw4QkFBb0IsQ0FlTDtBQWR0Qiw4RUFBc0Q7QUFlcEQsNkJBZkssNEJBQWtCLENBZUw7QUFkcEIsa0ZBQTBEO0FBZXhELCtCQWZLLDhCQUFvQixDQWVMO0FBZHRCLHdGQUFnRTtBQWU5RCxrQ0FmSyxpQ0FBdUIsQ0FlTDtBQWR6QixvRUFBNEM7QUFlMUMsd0JBZkssdUJBQWEsQ0FlTDtBQWRmLDhFQUFzRDtBQWVwRCw2QkFmSyw0QkFBa0IsQ0FlTDtBQWRwQiw4RUFBc0Q7QUFlcEQsNkJBZkssNEJBQWtCLENBZUw7QUFkcEIsd0VBQWdEO0FBZTlDLDBCQWZLLHlCQUFlLENBZUw7QUFkakIsd0VBQWdEO0FBZTlDLDBCQWZLLHlCQUFlLENBZUw7QUFkakIsa0VBQTBDO0FBZXhDLHVCQWZLLHNCQUFZLENBZUw7QUFkZCxrRkFBMEQ7QUFleEQsK0JBZkssOEJBQW9CLENBZUwifQ== |
@@ -0,1 +1,2 @@ | ||
export declare const LOCAL_STORAGE_KEY = "notifi:jwt"; | ||
declare const useNotifiJwt: () => Readonly<{ | ||
@@ -2,0 +3,0 @@ jwt: string | null; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const use_local_storage_state_1 = __importDefault(require("use-local-storage-state")); | ||
const LOCAL_STORAGE_KEY = "notifi:jwt"; | ||
exports.LOCAL_STORAGE_KEY = void 0; | ||
const use_local_storage_state_1 = require("use-local-storage-state"); | ||
exports.LOCAL_STORAGE_KEY = "notifi:jwt"; | ||
const useLocalStorage = (0, use_local_storage_state_1.createLocalStorageStateHook)(exports.LOCAL_STORAGE_KEY, null); | ||
const useNotifiJwt = () => { | ||
const [jwt, setJwt] = (0, use_local_storage_state_1.default)(LOCAL_STORAGE_KEY, null); | ||
const [jwt, setJwt] = useLocalStorage(); | ||
return { jwt, setJwt }; | ||
}; | ||
exports.default = useNotifiJwt; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlTm90aWZpSnd0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL2hvb2tzL3VzZU5vdGlmaUp3dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHNGQUEyRDtBQUUzRCxNQUFNLGlCQUFpQixHQUFHLFlBQVksQ0FBQztBQUV2QyxNQUFNLFlBQVksR0FBRyxHQUdsQixFQUFFO0lBQ0gsTUFBTSxDQUFDLEdBQUcsRUFBRSxNQUFNLENBQUMsR0FBRyxJQUFBLGlDQUFvQixFQUN4QyxpQkFBaUIsRUFDakIsSUFBSSxDQUNMLENBQUM7SUFDRixPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBQ3pCLENBQUMsQ0FBQztBQUVGLGtCQUFlLFlBQVksQ0FBQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlTm90aWZpSnd0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL2hvb2tzL3VzZU5vdGlmaUp3dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxRUFBc0U7QUFFekQsUUFBQSxpQkFBaUIsR0FBRyxZQUFZLENBQUM7QUFFOUMsTUFBTSxlQUFlLEdBQUcsSUFBQSxxREFBMkIsRUFDakQseUJBQWlCLEVBQ2pCLElBQUksQ0FDTCxDQUFDO0FBRUYsTUFBTSxZQUFZLEdBQUcsR0FHbEIsRUFBRTtJQUNILE1BQU0sQ0FBQyxHQUFHLEVBQUUsTUFBTSxDQUFDLEdBQUcsZUFBZSxFQUFFLENBQUM7SUFDeEMsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLEVBQUUsQ0FBQztBQUN6QixDQUFDLENBQUM7QUFFRixrQkFBZSxZQUFZLENBQUMifQ== |
{ | ||
"name": "@notifi-network/notifi-react-hooks", | ||
"version": "0.0.1-alpha.9+1bb119f", | ||
"version": "0.0.1-alpha.11+c0fbd3b", | ||
"description": "React hooks provided as a convenience wrapper around notifi.network platform functionality", | ||
@@ -38,3 +38,3 @@ "author": "Juni Kim <73hKrn@gmail.com>", | ||
}, | ||
"gitHead": "1bb119fdbf79d5a91b4137815f687e71d4c63d6d" | ||
"gitHead": "c0fbd3bc63274a722d619a536e5d1560e9332baa" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
45158