{"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":"http://registry-npm.ywwl.com/@putout/plugin-add-missing-new/download/@putout/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","size":2137,"noattachment":false,"key":"/@putout/plugin-add-missing-new/-/@putout/plugin-add-missing-new-1.0.1.tgz"},"_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,"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","publish_time":1651998221419,"_cnpm_publish_time":1651998221419,"dist-tags":{"latest":"1.0.2"}}