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 1.2.3 to 1.2.4

20

index.js

@@ -150,30 +150,20 @@ 'use strict';

enumerable: true,
get: function () {
return vanilla.getVersion;
}
get: function () { return vanilla.getVersion; }
});
Object.defineProperty(exports, 'proxy', {
enumerable: true,
get: function () {
return vanilla.proxy;
}
get: function () { return vanilla.proxy; }
});
Object.defineProperty(exports, 'ref', {
enumerable: true,
get: function () {
return vanilla.ref;
}
get: function () { return vanilla.ref; }
});
Object.defineProperty(exports, 'snapshot', {
enumerable: true,
get: function () {
return vanilla.snapshot;
}
get: function () { return vanilla.snapshot; }
});
Object.defineProperty(exports, 'subscribe', {
enumerable: true,
get: function () {
return vanilla.subscribe;
}
get: function () { return vanilla.subscribe; }
});
exports.useSnapshot = useSnapshot;

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

enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});

@@ -26,3 +24,3 @@ }

}
n['default'] = e;
n["default"] = e;
return Object.freeze(n);

@@ -68,2 +66,2 @@ }

exports['default'] = macro$1;
exports["default"] = macro$1;
{
"name": "valtio",
"private": false,
"version": "1.2.3",
"version": "1.2.4",
"description": "💊 Valtio makes proxy-state simple for React and Vanilla",

@@ -26,7 +26,19 @@ "main": "./index.js",

},
"./*": {
"types": "./*.d.ts",
"module": "./esm/*.js",
"import": "./esm/*.mjs",
"default": "./*.js"
"./vanilla": {
"types": "./vanilla.d.ts",
"module": "./esm/vanilla.js",
"import": "./esm/vanilla.mjs",
"default": "./vanilla.js"
},
"./utils": {
"types": "./utils.d.ts",
"module": "./esm/utils.js",
"import": "./esm/utils.mjs",
"default": "./utils.js"
},
"./macro": {
"types": "./macro.d.ts",
"module": "./esm/macro.js",
"import": "./esm/macro.mjs",
"default": "./macro.js"
}

@@ -39,3 +51,3 @@ },

"engines": {
"node": ">=12"
"node": ">=12.7.0"
},

@@ -42,0 +54,0 @@ "repository": {

@@ -84,2 +84,5 @@ <img src="logo.svg" alt="valtio">

If you are new to this, it's highly recommended to use
[eslint-plugin-valtio](https://github.com/pmndrs/eslint-plugin-valtio).
#### Subscribe from anywhere

@@ -272,3 +275,3 @@

#### `proxyWithComputed`
#### `proxyWithComputed` util

@@ -329,2 +332,6 @@ You can have computed values with dependency tracking with property access.

#### Plugins
- [eslint-plugin-valtio](https://github.com/pmndrs/eslint-plugin-valtio)
#### Recipes

@@ -331,0 +338,0 @@

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