Comparing version 0.8.1 to 0.8.2
@@ -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; |
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
69189
1656