{"_id":"polyfill-symbol-metadata","_rev":"2-bb2966ba4d4de656650b5eb3eb50ff1b","name":"polyfill-symbol-metadata","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.0-pre":{"name":"polyfill-symbol-metadata","version":"0.0.0-pre","license":"MIT","_id":"polyfill-symbol-metadata@0.0.0-pre","maintainers":[{"name":"thuandmt","email":"thuandmt@outlook.com"}],"homepage":"https://github.com/daomtthuan/polyfill-symbol-metadata#readme","bugs":{"url":"https://github.com/daomtthuan/polyfill-symbol-metadata/issues"},"dist":{"shasum":"c20ee90acd783ffce1a2ffc66b919147229e92a8","tarball":"https://registry.npmjs.org/polyfill-symbol-metadata/-/polyfill-symbol-metadata-0.0.0-pre.tgz","fileCount":5,"integrity":"sha512-/EZpU2q2v2YGsG/g6LL1pLYwCxlopfihHw+7JQljKA2QzfQf6paI73a9jZ9FxIgxsw66YP7B5GNaa3nQLMQzFQ==","signatures":[{"sig":"MEUCIBSq3zkH74+TIWCqcdjI7Cin8n6vFZ9Ge+vRszWxPLkOAiEAyxNzC0g4kKFIwkiQ8b7NiyVCeA6mc9jUTza+6NkpYIw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2351},"main":"index.js","types":"index.d.ts","gitHead":"cabb6c374ce4dc879f843e28ea9b6ca0a24a4b7a","_npmUser":{"name":"thuandmt","email":"thuandmt@outlook.com"},"repository":{"url":"git+https://github.com/daomtthuan/polyfill-symbol-metadata.git","type":"git"},"_npmVersion":"10.9.2","description":"A polyfill for Symbol.metadata to support TC39 Decorator Metadata Proposal","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/polyfill-symbol-metadata_0.0.0-pre_1739978476232_0.8005489684029758","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"polyfill-symbol-metadata","version":"0.0.1","keywords":["polyfill","symbol","metadata","tc39","decorator"],"license":"MIT","_id":"polyfill-symbol-metadata@0.0.1","maintainers":[{"name":"thuandmt","email":"thuandmt@outlook.com"}],"homepage":"https://github.com/daomtthuan/polyfill-symbol-metadata#readme","bugs":{"url":"https://github.com/daomtthuan/polyfill-symbol-metadata/issues"},"dist":{"shasum":"c0e5e3abcb1d1165141565ffe2a8c15d4effc682","tarball":"https://registry.npmjs.org/polyfill-symbol-metadata/-/polyfill-symbol-metadata-0.0.1.tgz","fileCount":5,"integrity":"sha512-Jahby5wQO3o50aZdzIkN3nj2/bwj54w9h6f5njvcqtxiFlEiWK94ynOvw4usPwMoTwCXaCMgYDupUFRaKCLknA==","signatures":[{"sig":"MEUCIQDY2Bbslpggk6Wb9897AaezEzvXb/5cHO47LWsaUSzlmQIgAtr1J9Vtgr0TrCNiPDReYnbBhhV19z5jqYFX2xJ/gKw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2519},"main":"index.js","types":"index.d.ts","gitHead":"ca011e2190d12a55bc43eddbf8c703c3eddd6ed4","_npmUser":{"name":"thuandmt","email":"thuandmt@outlook.com"},"repository":{"url":"git+https://github.com/daomtthuan/polyfill-symbol-metadata.git","type":"git"},"_npmVersion":"10.9.2","description":"A polyfill for Symbol.metadata to support TC39 Decorator Metadata Proposal","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/polyfill-symbol-metadata_0.0.1_1739978979739_0.5963973735856418","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"polyfill-symbol-metadata","version":"0.0.2","description":"A polyfill for Symbol.metadata to support TC39 Decorator Metadata Proposal","license":"MIT","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/daomtthuan/polyfill-symbol-metadata.git"},"homepage":"https://github.com/daomtthuan/polyfill-symbol-metadata#readme","bugs":{"url":"https://github.com/daomtthuan/polyfill-symbol-metadata/issues"},"keywords":["polyfill","symbol","metadata","tc39","decorator"],"_id":"polyfill-symbol-metadata@0.0.2","gitHead":"b1785ce319f587f4aacd6ddb27cf8b8fba31de13","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-0piO8cqxwS9UXCevXi93/2jrkBrdtGU+O1U76Pydqk0iOeSt8l3aO0dx44uwv3+KlKgJhmy/Q3ESrpfwpEX3bQ==","shasum":"ce441319e165ba243248820022447d78c6fa1ddc","tarball":"https://registry.npmjs.org/polyfill-symbol-metadata/-/polyfill-symbol-metadata-0.0.2.tgz","fileCount":5,"unpackedSize":2925,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID6sf8VKek+2TZn1QQ6YPsa0rW+S5ac4YaUyJLt8NtZ4AiAK6b3g83J2On7/+12kS6OPVj+SxmX2d8gdMoieYPb8lA=="}]},"_npmUser":{"name":"thuandmt","email":"thuandmt@outlook.com"},"directories":{},"maintainers":[{"name":"thuandmt","email":"thuandmt@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/polyfill-symbol-metadata_0.0.2_1739979598085_0.9031030325231697"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-19T15:21:16.231Z","modified":"2025-02-19T15:39:58.496Z","0.0.0-pre":"2025-02-19T15:21:16.417Z","0.0.1":"2025-02-19T15:29:39.924Z","0.0.2":"2025-02-19T15:39:58.289Z"},"bugs":{"url":"https://github.com/daomtthuan/polyfill-symbol-metadata/issues"},"license":"MIT","homepage":"https://github.com/daomtthuan/polyfill-symbol-metadata#readme","keywords":["polyfill","symbol","metadata","tc39","decorator"],"repository":{"type":"git","url":"git+https://github.com/daomtthuan/polyfill-symbol-metadata.git"},"description":"A polyfill for Symbol.metadata to support TC39 Decorator Metadata Proposal","maintainers":[{"name":"thuandmt","email":"thuandmt@outlook.com"}],"readme":"# polyfill-symbol-metadata\r\n\r\nA polyfill for Symbol.metadata to support [@tc39/proposal-decorator-metadata](https://github.com/tc39/proposal-decorator-metadata)\r\n\r\nThese packages are only temporary for _stage 3_ of decorators until TC39 officially supports decorators.\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport \"polyfill-symbol-metadata\";\r\n\r\nfunction meta(key, value) {\r\n  return (_, context) => {\r\n    context.metadata[key] = value;\r\n  };\r\n}\r\n\r\n@meta(\"a\", \"x\")\r\nclass C {\r\n  @meta(\"b\", \"y\")\r\n  m() {}\r\n}\r\n\r\nC[Symbol.metadata].a; // 'x'\r\nC[Symbol.metadata].b; // 'y'\r\n```\r\n\r\n## REF\r\n\r\n- <https://github.com/tc39/proposal-decorator-metadata/issues/14#issuecomment-2136289464>\r\n\r\n## Relative issues\r\n\r\n- <https://github.com/denoland/deno/issues/22111>\r\n","readmeFilename":"README.md"}