Socket
Socket
Sign inDemoInstall

valtio

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

valtio - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

index.d.ts

@@ -1,2 +0,2 @@

export * from 'valtio/vanilla';
export * from './vanilla';
export * from './react';

@@ -5,3 +5,3 @@ 'use strict';

var vanilla = require('valtio/vanilla');
var vanilla = require('./vanilla');
var react = require('react');

@@ -8,0 +8,0 @@ var proxyCompare = require('proxy-compare');

@@ -1,2 +0,2 @@

export * from 'valtio/vanilla';
export * from './vanilla';
export * from './react';

@@ -1,3 +0,3 @@

import { snapshot, subscribe, getVersion } from 'valtio/vanilla';
export * from 'valtio/vanilla';
import { snapshot, subscribe, getVersion } from './vanilla';
export * from './vanilla';
import { useRef, useState, useEffect, useReducer, useCallback, useMemo, useLayoutEffect, useDebugValue } from 'react';

@@ -4,0 +4,0 @@ import { isDeepChanged, createDeepProxy, affectedToPathList } from 'proxy-compare';

{
"name": "valtio",
"private": false,
"version": "0.8.1",
"version": "0.8.2",
"description": "💊 Valtio makes proxy-state simple for React and Vanilla",

@@ -81,4 +81,7 @@ "main": "index.js",

"optional": true
},
"react": {
"optional": true
}
}
}

@@ -1,2 +0,2 @@

export * from 'valtio/vanilla';
export * from './vanilla';
export * from './react';

@@ -1,2 +0,2 @@

export * from 'valtio/vanilla';
export * from './vanilla';
export * from './react';

@@ -6,3 +6,3 @@ 'use strict';

var react = require('react');
var vanilla = require('valtio/vanilla');
var vanilla = require('./vanilla');
var valtio = require('valtio');

@@ -9,0 +9,0 @@ var proxyCompare = require('proxy-compare');

import { useRef } from 'react';
import { proxy, subscribe, snapshot } from 'valtio/vanilla';
import { proxy, subscribe, snapshot } from './vanilla';
import { useProxy } from 'valtio';

@@ -4,0 +4,0 @@ import { createDeepProxy, isDeepChanged } from 'proxy-compare';

@@ -152,2 +152,3 @@ 'use strict';

notifyUpdate();
return v;
}).catch(function (e) {

@@ -154,0 +155,0 @@ target[prop][PROMISE_ERROR] = e;

@@ -143,2 +143,3 @@ import { getUntrackedObject, markToTrack } from 'proxy-compare';

notifyUpdate();
return v;
}).catch(e => {

@@ -145,0 +146,0 @@ target[prop][PROMISE_ERROR] = e;

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