{"name":"@emotion/weak-memoize","version":"10.0.0-really-unsafe-please-do-not-use.2","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":"0da0de50f6f2c19e46bca7662d1a954d48db1264","_resolved":"","_integrity":"","_from":"file:emotion-weak-memoize-10.0.0-really-unsafe-please-do-not-use.2.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.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-E2/raMllWVc0Nd4RC/4cd1FldSi6ZZr0W3SXkBJbTVe0SvOZGZ5E6/zDsDgD0UZ2kyYkG41Y0ZqJd51AZwqYXw==","shasum":"2534902de4680f65aebdaf3d54ce3a653aa20c39","tarball":"http://registry-npm.ywwl.com/@emotion/weak-memoize/download/@emotion/weak-memoize-10.0.0-really-unsafe-please-do-not-use.2.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\nwsFcBAEBCAAQBQJbra/5CRA9TVsSAnZWagAA9BYP/RnlBZYco6t1v3Oj0DlH\nVV/vz/NadAVKR17tIwtZKW6DhJ9gJvVLzllym6QJi6xaPOABnVSp8x1RLwn4\niwYHKcFN+dDRvx4mAN7Bd+ajyJGUozX8w1r92xYV8dG6ES7BbtdB1DdwNRv2\ncHihA/ZS6C982bG+R9344nLEjh6iPCI/6o/RzLqBVwNhBsvDrlIfycUSPOXJ\nCk0eo0XHnfQhMdFzsXqlpD06c5IPki1h+EvSeihGPHzTzNYsNisF2KBEg4/h\ndiPm0Dfoajq1hKokIYhOI9VgywDzRlo9dyGOIpfy6xUpPAF1Ymw09DDxhqdf\n9WhA0o9J7+I+mQhNozYdeh7C9EfvKZifXfCDVsNzgeOgsDt/MCwRwbLkPm1W\nl7jNBQVMvQ0ZIE1M8iX2uEBar0EHMTrat67eAmBPyeoj5ftz8VctE/RP/C+A\n3UPmvc6dwkrch1zbHt3yKYUXbWIcVclsWFvF0JaMj9yaFxf1VPKvIpWtC3cs\nB2A1DhlZQ2J/U58ojqF7GM/yfIyov0giTQOzDwaHbSq/wfzv7FeY+QSvwYgt\nKyEFn2woTvu//8A5m9lxopPY12NYr+ccqD3oYn8LNYWYFVagj47v8dpmSrPM\nSieFukm6yegv95i089kFTkUpuBYLwMIYWZMaEnZhopt92B1BpVtvolGd5AW4\nuHrL\r\n=EjMh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDod8YlHqIYdrGKAmMW8KrDK996Ch8jGx+7UPEE0pFO4gIgeju+cWKFKTWXy5UMu60fdXDq1xScgDLr+i5ebjz6Ak4="}],"size":2462,"noattachment":false,"key":"/@emotion/weak-memoize/-/@emotion/weak-memoize-10.0.0-really-unsafe-please-do-not-use.2.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.2_1538109433361_0.6612577044748347"},"_hasShrinkwrap":false,"publish_time":1538109433483,"_cnpm_publish_time":1538109433483,"dist-tags":{"latest":"0.4.0","really-unsafe-please-do-not-use":"10.0.0-really-unsafe-please-do-not-use.2"}}