@tamagui/proxy-worm
Advanced tools
Comparing version 1.0.0-alpha.64 to 1.0.0-beta.0
32
index.js
@@ -1,15 +0,21 @@ | ||
module.exports = empty() | ||
module.exports = worm(true) | ||
function empty() { | ||
return new Proxy( | ||
{}, | ||
{ | ||
get() { | ||
return empty() | ||
}, | ||
apply() { | ||
return empty() | ||
}, | ||
} | ||
) | ||
function worm(root = false) { | ||
const obj = root | ||
? { | ||
get default() { | ||
return worm() | ||
}, | ||
} | ||
: function () { | ||
return worm() | ||
} | ||
return new Proxy(obj, { | ||
get() { | ||
return worm() | ||
}, | ||
apply() { | ||
return worm() | ||
}, | ||
}) | ||
} |
{ | ||
"name": "@tamagui/proxy-worm", | ||
"version": "1.0.0-alpha.64", | ||
"version": "1.0.0-beta.0", | ||
"main": "index.js", | ||
@@ -12,3 +12,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "9363f43117f9504de9bd4949ca210cd1ebbf753b" | ||
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14" | ||
} |
Sorry, the diff of this file is not supported yet
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
20
642
3
1
274