{"_id":"@putout/plugin-add-missing-new","_rev":"2-03cd03c31716963b97e500a7415d22cf","name":"@putout/plugin-add-missing-new","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@putout/plugin-add-missing-new","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-add-missing-new#readme","main":"lib/add-missing-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","new","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"fbbd6af719c25a85587db8732cef7bd6807fd7bf","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-add-missing-new@1.0.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-YzuoQPuNjs2oatvKdL+YEj6L3Qab6QmPGA82/J3SykZSPRCj+KwCJ2CzikwbKVsFwwSuf5nNSlGqeDaVi8FQkA==","shasum":"8118c8319ff9e17433f32f7c25b2e0fa11b17a3e","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-new/-/plugin-add-missing-new-1.0.0.tgz","fileCount":4,"unpackedSize":4472,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnNN0yOqBzM8ehlv25BEKfWS1JP4depMW+Q6GlAeizDwIgAyeg4T1Dw68tCysPf35YWUz+Qas/b+Ld3tYUK6erq34="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidt63ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXNw/+IttqTBOWudHaaR8mTezu6RFDcCzR5EyiDnUpCuOzcQbgkTYZ\r\naqc7r9GwpBeSeHLYI2qDhY6Z5J6k1vc8crc50/URlRJjSCcb2fYmFqM7g1gJ\r\n+BCFDeyZ6fW+DTZJw3dm+AnBrAIwO/kakkEcSVLXVcfxqY5HTORIZ8hySny6\r\n5zpoWOW8Oh0oUzRCjp4UaZSGfQRL/R+z5vQVbaQQXQKYK+xfBJYCuVIizoLK\r\nD9n79C8oGdMp5D35NPJJ6lUl7H0FwRIbdglE4m2IYVSV3lqgItZvzKOnoiZW\r\nUcsgyy4MiPHgmdlEKqzy41gUwiK2bhxJ80C301vhQuKWQ2BncBQmOJjg4OWn\r\nsFwHvmh+PxXzqD0/gq5za/ax2xh5aka4kRgoTtOUOeExQ5DjmOLiz4ObnkEr\r\naMnPlJmQPgYg74j/+dw6HQU9WMcmFIZJ2Pl1hDFiRNkSu3dNTMy13aTqhlsk\r\n8fEwOaDyXaa2Kf7+VI7bPGPJwpPrstHfinx+wFUHT2xNm6sVZBaptyI3a+On\r\nbH9QR391gY12VgCCq92+rVwnZG9+TjStMgpp2JzYrqPoeUJtHoHCKC9Q4YVk\r\nsQoIetPMzoXN4z6PlFy7/7LaefuKxisH4pqf1OWsNHm3TPoSzGsPNTYGf/1C\r\ngIEhbHn14mdOwWBMB3KzPUme2N2QZaQcWYo=\r\n=ZWaC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-add-missing-new_1.0.0_1651957430956_0.629707576492174"},"_hasShrinkwrap":false},"1.0.1":{"name":"@putout/plugin-add-missing-new","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-add-missing-new#readme","main":"lib/add-missing-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","new","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6d9d10d157d31bf13d16de1b4dbef1298f690139","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-add-missing-new@1.0.1","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-GVirs/uqKBZ8H8ZZ72PfV0yj4w2DRm5CZMmXhI52K8zkV1GvVVQBRgf2qoEMSkosTcXWnlnOw4K6rk8U6QQQHQ==","shasum":"032e618e04782d3f60924470e5a9ae150890216d","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-new/-/plugin-add-missing-new-1.0.1.tgz","fileCount":4,"unpackedSize":4763,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEiUajwm+1QkDOkgl7yJ4LP+Av1Uw8XLp4mA8e4n5KwAiB0zTggP7b7y7tW+2t98wK9OLgtByeSE5w+hD6lMt1e1Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid34NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbsRAAkNGB4NEHubvjcTtQO+zQdfhyQsugbfEVCq0o3cSkV3qnZOOw\r\nZRW2YSNGdMmX+XypTCx+WqwzIgGsP2752qToDXk/6OdFdHL6DbE0JkM7Wy/7\r\nQ70srG1toV9kthx1V4dWhr9sMKeZQgsq2M0pMHGOGcE8HraCgk38YpQk1mg0\r\nCw9aanYlK2pqbDiTkPe1y+ECpaHw1YxOcJfgRNoTM8G7lysBo6jZiuGnfwiq\r\nNUthjGDgLvAfnL/Q3eiqQUB9F1XIR+/uupzWF91v5vdmEh/EA68UPEGc000T\r\nFZ04GYNSfcoDCaLZCeRdOjOCJIOkXfCgLMd66NbXXJ0Bg9Lx1TjUGf9y4l30\r\n+LvWre0wcZ4Tufx2qHlGa0SLS+i/wl87g6Qg7f7QsCDjoYrw1l0/gTtY3JVP\r\n92x+roZ9GqUK0v9ceS5mUzgM9qHqsI9MEdAnQJdo8IBsPr0sOv9V7hXc9qT+\r\n2buiD+nDQPeV6osyBIuNSJ82fdjxkyJofto5kazkfcmGukDvkJKYsyHZKeeD\r\ngdzdIcKHM/ktSpsDocXkoTVovUbVVPTCZndM4PtQcQshl1P9R5z5VfVVUlyC\r\nHigL0HRL4cKFl2ddJORh6J4oVgVuUnm5sWeOKU1om6iJt16VePwypMbY1zQH\r\nMJcHGqaymnB+RplaVpr3I+GJj4B2n/2CyAs=\r\n=H/xj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-add-missing-new_1.0.1_1651998221199_0.6563975570991527"},"_hasShrinkwrap":false},"1.0.2":{"name":"@putout/plugin-add-missing-new","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/v25.18.0/packages/plugin-add-missing-new#readme","main":"lib/add-missing-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","new","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6a996941069b5112887775776a568a1b641c9cdb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-add-missing-new@1.0.2","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-gc3MfJK9/yYN0m5mMiDAUCi4D0BKDR5ySefmNt/eRm0yPVM05CcKnEOEN7ZJvARpYBhyIut3TeqP5oWZun/2RQ==","shasum":"94e85f00cffe1202679f41c2cae6228f2a254fb0","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-new/-/plugin-add-missing-new-1.0.2.tgz","fileCount":4,"unpackedSize":4765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/kj0V5q3qzedu+g7VMKmhnWpWVeGF0lan98s9uMWWpAiA7L63bh7hTa1/nL7934tazNsrTc0enLkSfskBmOUOTZA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid4SXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrN3A//fUufmSAxKiUdwJVUayBMeCovPsxKSKd90J0MqKdubLnqkir2\r\n4+a6gmNbFe+reZqTA7wq9RyFGQBipkX6UJAx6MVEMuBeomPcfm/bIvQjU6Jb\r\nvEvGKUgVz6CYO/ZFWuUcKmlwl9TmZ96BIkhoqBqiTWs96FvKhUiJVfJxeaRq\r\ngMcvT4OuLB5GHMYXclQLFUMTbqGO23zFUUQ6QZMtXGo3ko5gMwEmPNA76Ste\r\n0WtQZbIbcCt05BRE5W8dtRSrsR9npsCPGLlHtBvZxzhq65r02CxGdChhLHDj\r\neC5l942lCSIT1a1P+0HJeoTDcRzvui8IGm3wHZ/IGzfPFRoIxI+PX8QHgVZF\r\nnOaVmQFgyI3NXGWPDR7aFWz79mg5rv+LGHD+hGEP4s/mexYLA7HKG6AIRasH\r\nJ6N30c+dgpP6CyPqD2xfde49LdOViIBHavRI8bZ8yuN2FkOYAByaPbOYJxVB\r\nf5KBTi/4wTnrJR7GHjGge8bR5ixTP7Xfc6dAJiay+LRM64t5eZ5xxEAR89Jh\r\nKOVEOhlhoDCsofPHTXM7yuM4cceti4ZQwqdyVi0HDw+IIIyVAa4v934Fl0Zp\r\nl8L7JlYp7lNyxiIL7n0ILCXAWM9A4La0V/uxFDuwqpO8x8Fih/YF0/brfmPi\r\n+G3Df1vj+uhHT0xdIrGeXF+IfU2khOs+bHs=\r\n=H9vT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-add-missing-new_1.0.2_1651999895232_0.24161359473747646"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-07T21:03:50.893Z","1.0.0":"2022-05-07T21:03:51.125Z","modified":"2022-05-08T08:51:35.469Z","1.0.1":"2022-05-08T08:23:41.419Z","1.0.2":"2022-05-08T08:51:35.387Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"🐊Putout plugin adds ability to add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/v25.18.0/packages/plugin-add-missing-new#readme","keywords":["putout","putout-plugin","plugin","new","missing"],"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT","readme":"# @putout/plugin-add-missing-new [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-add-missing-new.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-add-missing-new \"npm\"\n\n> The `Set` constructor lets you create Set objects that store unique values of any type, whether primitive values or object references.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to add missing operator `new`, since built-in objects:\n\n- `Set`;\n- `WeakSet`;\n- `Map`;\n- `WeakMap`;\n- `Int8Array`;\n- `Uint8Array`;\n- `Uint8ClampedArray`;\n- `Int16Array`;\n- `Uint16Array`;\n- `Int32Array`;\n- `Uint32Array`;\n- `Float32Array`;\n- `Float64Array`;\n- `BigInt64Array`;\n- `BigUint64Array`;\n\nProduces [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) when called without `new` like this:\n\n```\nUncaught TypeError: Constructor Set requires 'new'\n```\n\nPart of [`@putout/plugin-new`](https://www.npmjs.com/package/@putout/plugin-new).\n\n## Install\n\n```\nnpm i @putout/plugin-add-missing-new\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"add-missing-new\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst map = Map();\n```\n\n## ✅ Example of correct code\n\n```js\nconst map = new Map();\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}