UNPKG

1.2 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jotai-valtio')) :
3 typeof define === 'function' && define.amd ? define(['exports', 'jotai-valtio'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jotaiValtio = {}, global.JotaiValtio));
5})(this, (function (exports, JotaiValtio) { 'use strict';
6
7 function _interopNamespaceDefault(e) {
8 var n = Object.create(null);
9 if (e) {
10 Object.keys(e).forEach(function (k) {
11 if (k !== 'default') {
12 var d = Object.getOwnPropertyDescriptor(e, k);
13 Object.defineProperty(n, k, d.get ? d : {
14 enumerable: true,
15 get: function () { return e[k]; }
16 });
17 }
18 });
19 }
20 n.default = e;
21 return Object.freeze(n);
22 }
23
24 var JotaiValtio__namespace = /*#__PURE__*/_interopNamespaceDefault(JotaiValtio);
25
26 var atomWithProxy = function atomWithProxy() {
27 console.warn('[DEPRECATED] use `jotai-valtio` instead.');
28 return JotaiValtio__namespace.atomWithProxy.apply(JotaiValtio__namespace, arguments);
29 };
30
31 exports.atomWithProxy = atomWithProxy;
32
33}));