Socket
Socket
Sign inDemoInstall

recoil-nexus

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recoil-nexus - npm Package Compare versions

Comparing version 0.3.14 to 0.3.15

28

build/RecoilNexus.js

@@ -1,5 +0,8 @@

import { useRecoilCallback } from 'recoil';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetRecoil = exports.setRecoil = exports.getRecoilPromise = exports.getRecoil = void 0;
var recoil_1 = require("recoil");
var nexus = {};
export default function RecoilNexus() {
nexus.get = useRecoilCallback(function (_a) {
function RecoilNexus() {
nexus.get = (0, recoil_1.useRecoilCallback)(function (_a) {
var snapshot = _a.snapshot;

@@ -10,3 +13,3 @@ return function (atom) {

}, []);
nexus.getPromise = useRecoilCallback(function (_a) {
nexus.getPromise = (0, recoil_1.useRecoilCallback)(function (_a) {
var snapshot = _a.snapshot;

@@ -17,7 +20,7 @@ return function (atom) {

}, []);
nexus.set = useRecoilCallback(function (_a) {
nexus.set = (0, recoil_1.useRecoilCallback)(function (_a) {
var set = _a.set;
return set;
}, []);
nexus.reset = useRecoilCallback(function (_a) {
nexus.reset = (0, recoil_1.useRecoilCallback)(function (_a) {
var reset = _a.reset;

@@ -28,14 +31,19 @@ return reset;

}
export function getRecoil(atom) {
exports.default = RecoilNexus;
function getRecoil(atom) {
return nexus.get(atom);
}
export function getRecoilPromise(atom) {
exports.getRecoil = getRecoil;
function getRecoilPromise(atom) {
return nexus.getPromise(atom);
}
export function setRecoil(atom, valOrUpdater) {
exports.getRecoilPromise = getRecoilPromise;
function setRecoil(atom, valOrUpdater) {
nexus.set(atom, valOrUpdater);
}
export function resetRecoil(atom) {
exports.setRecoil = setRecoil;
function resetRecoil(atom) {
nexus.reset(atom);
}
exports.resetRecoil = resetRecoil;
//# sourceMappingURL=RecoilNexus.js.map
{
"name": "recoil-nexus",
"version": "0.3.14",
"version": "0.3.15",
"description": "A small Typescript package to access your Recoil atoms outside of React components.",

@@ -5,0 +5,0 @@ "main": "build/RecoilNexus.js",

{
"compilerOptions": {
"outDir": "build",
"module": "esnext",
"module": "commonjs",
"target": "es5",

@@ -6,0 +6,0 @@ "lib": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc