{"name":"@emotion/weak-memoize","version":"10.0.0-really-unsafe-please-do-not-use.0","description":"A memoization function that uses a WeakMap","main":"dist/weak-memoize.cjs.js","module":"dist/weak-memoize.esm.js","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/emotion/tree/master/next-packages/weak-memoize"},"publishConfig":{"access":"public"},"umd:main":"./dist/index.min.js","browser":{"./dist/weak-memoize.cjs.js":"./dist/weak-memoize.browser.cjs.js"},"gitHead":"a5f3825603dffd69fddb44bf5f29afd7c49eabd5","_resolved":"","_integrity":"","_from":"file:emotion-weak-memoize-10.0.0-really-unsafe-please-do-not-use.0.tgz","readme":"# @emotion/weak-memoize\n\n> A memoization function that uses a WeakMap\n\n## Install\n\n```bash\nyarn add @emotion/weak-memoize\n```\n\n## Usage\n\nBecause @emotion/weak-memoize uses a WeakMap the argument must be a non primitive type, e.g. objects, functions, arrays and etc. The function passed to `weakMemoize` must also only accept a single argument.\n\n```jsx\nimport weakMemoize from '@emotion/weak-memoize'\n\nlet doThing = weakMemoize(({ someProperty }) => {\n  return { newName: someProperty }\n})\n\nlet obj = { someProperty: true }\n\nlet firstResult = doThing(obj)\n\nlet secondResult = doThing(obj)\n\nfirstResult === secondResult // true\n\nlet newObj = { someProperty: true }\n\nlet thirdResult = doThing(newObj)\n\nthirdResult === firstResult // false\n```\n","readmeFilename":"README.md","_id":"@emotion/weak-memoize@10.0.0-really-unsafe-please-do-not-use.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-2yX3YcZ9o8IAMkaHUcmDMCSe9LPWiJMWYfeLGRaUcveMPKd750bC1KVE+OVG3CGyge3bZkwM4EbkZRSlJYWpzQ==","shasum":"ebb8b0ddb82654c7b7aaa4e60e36a493b4158466","tarball":"http://registry-npm.ywwl.com/@emotion/weak-memoize/download/@emotion/weak-memoize-10.0.0-really-unsafe-please-do-not-use.0.tgz","fileCount":12,"unpackedSize":5375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrWj8CRA9TVsSAnZWagAACzIP/jCAKeEf+uDGH0YBLVUo\nQbqu3gw9ZiJOiGAJvJdxfjhdKB5zsbojrV4qVzIJKCDmJlJ+ANTAuT8VU51C\n/mbdorIlqzKx5aKiAirQv5qiDoZ8LCnxIMYcQ9wmrIEvry8UejY0VIiXA2/u\noaHJyDWCzMoBmRKbdJUXKzEXk0ySyng6U3BabLhmkiNnfaGFrr7EBf0oQpnG\nERMfo+CbZZcAhY9V77FVydDeCX2utDJVNR+bHCiHyRxWUUx6d9uIUztF/1e8\nWVjLrYsGu8T+A7mhWWvHfDVT0O5dYPVpbTNQxMdJoWH31Ki97OCPfki8hip7\nT6W/xSI10OODSr3xZKROb8z3agrNK/nm0VRUAOySlvEMxldpUkvCnGWOsdvf\nPh6EPDU0abjRnENwh9cMDXDLdnpiRXsxM1frbxSuT12pwklLlB85R/EcFQxh\n1tZvu265WH82Bz9M72uqAZwKE24KdgaBRYQQnBsBNHklR/WZrqcL0OZK1VQB\nHlIxdJI/0INQtlvPdnr0aNQpfP9il0DGfn7B4W105Y/bGcFGySadrlg+UvEr\nnIDK5l0VQ5lyqX0ViD+3T60fIDMd6pSQPHQhxB2gHwJ5R5asa2h2EAZtw70m\n2DIMzvLVbjuxWObwdTTlauBAhFkWokO790pdRG5kbcH/mj1Lhkk0hfvwxx1d\nYzWq\r\n=LdDL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhd+D6RIDS8hW58B9Kynl+EjuM/sKhNFuERC3MNIuPdAiBnFf691uDaLEs6tI1t3nyuvOM8mKpLlwfiZJ2zy41iGA=="}],"size":2462,"noattachment":false,"key":"/@emotion/weak-memoize/-/@emotion/weak-memoize-10.0.0-really-unsafe-please-do-not-use.0.tgz"},"maintainers":[{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},{"name":"tkh44","email":"kye.hohenberger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/weak-memoize_10.0.0-really-unsafe-please-do-not-use.0_1538091259697_0.3385137481296874"},"_hasShrinkwrap":false,"publish_time":1538091259836,"_cnpm_publish_time":1538091259836,"dist-tags":{"latest":"0.4.0","really-unsafe-please-do-not-use":"10.0.0-really-unsafe-please-do-not-use.2"}}