{"_id":"umd-free-zone","_rev":"67-dad03c78ef0e0c7e3418666e3651a367","name":"umd-free-zone","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"umd-free-zone","version":"0.1.0","license":"MIT","_id":"umd-free-zone@0.1.0","maintainers":[{"name":"vtexlab","email":"breno+npm@vtex.com.br"}],"homepage":"https://github.com/vtex/umd-free-zone#readme","bugs":{"url":"https://github.com/vtex/umd-free-zone/issues"},"dist":{"shasum":"4546f571487b8aefef5fe5b9017f69cae7b5f2df","tarball":"https://registry.npmjs.org/umd-free-zone/-/umd-free-zone-0.1.0.tgz","integrity":"sha512-P3u3LlaKYXL5xPynJwsDqtQ+Cg3d4gK6X5oqTr80ECY1A6ohYBoHm+US8Mr2wZqszxLWsaox4YdlG5EHW9r4jA==","signatures":[{"sig":"MEUCIQD4OaJ07b6bnRkOjlTV0Y5KaxCE6ora99bCxbM8lLL5GAIgA35s7X1wuUEohLo8csuAhqokBeFo7XIENRQ5PjRZXX4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"start.js","gitHead":"25a4ac10b418408521219abb9ec258b6f124a38b","_npmUser":{"name":"vtexlab","email":"breno+npm@vtex.com.br"},"repository":{"url":"git+https://github.com/vtex/umd-free-zone.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a define and exports free zone for your UMD scripts to safely register globally","directories":{},"_nodeVersion":"9.3.0","_npmOperationalInternal":{"tmp":"tmp/umd-free-zone-0.1.0.tgz_1516123482326_0.9396188105456531","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"umd-free-zone","version":"0.1.1","license":"MIT","_id":"umd-free-zone@0.1.1","maintainers":[{"name":"vtexlab","email":"breno+npm@vtex.com.br"}],"homepage":"https://github.com/vtex/umd-free-zone#readme","bugs":{"url":"https://github.com/vtex/umd-free-zone/issues"},"dist":{"shasum":"97dba31edc6832a48fee5c951df68f9b58d8e6ee","tarball":"https://registry.npmjs.org/umd-free-zone/-/umd-free-zone-0.1.1.tgz","integrity":"sha512-ag96jkFrx80ap3W+nPGAlDQIleZGnBHtrv0Up05pOty9oEh3T3PLvSU34QPVuH/aKhHSa3GgRbgIZF5PG3ibPQ==","signatures":[{"sig":"MEYCIQDAhAc3spDo+vxxwaicI8Y1t9s/uZJbPaBj74qykCNhYwIhAPp6FQAyM8gaUXnOVslECUBX95A1RuX9EzitzU2zUzXu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"start.js","gitHead":"89bfbf12e84114f9aa40eedad2bc4cde88ee6d06","_npmUser":{"name":"vtexlab","email":"breno+npm@vtex.com.br"},"repository":{"url":"git+https://github.com/vtex/umd-free-zone.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a define and exports free zone for your UMD scripts to safely register globally","directories":{},"_nodeVersion":"9.3.0","_npmOperationalInternal":{"tmp":"tmp/umd-free-zone-0.1.1.tgz_1516124010343_0.3336526774801314","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"umd-free-zone","version":"0.1.2","license":"MIT","_id":"umd-free-zone@0.1.2","maintainers":[{"name":"vtexlab","email":"breno+npm@vtex.com.br"}],"homepage":"https://github.com/vtex/umd-free-zone#readme","bugs":{"url":"https://github.com/vtex/umd-free-zone/issues"},"dist":{"shasum":"322a9b996dc140a9cca68745f340abb842224cd3","tarball":"https://registry.npmjs.org/umd-free-zone/-/umd-free-zone-0.1.2.tgz","integrity":"sha512-1rtP+kfVCBGE+sGN5UOQZ4TK4Kf0JeCcI2NVEjhgPpcZxaRqkn6M8q1P3XbEgW4sqHqFw0Nb1TnkoHeEkgRMyg==","signatures":[{"sig":"MEUCIC9cT8w81et9S9frmD6R5m1Ot7urK7HxUKJfRwcwzo3SAiEAoN1BZN8rP0+/j/9UWhQVnLoY0SkVIxJamg06zZWwy+4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"files":["start.js","end.js"],"gitHead":"af2d9ab87dacc7ebb4fa466e23d034df90b7cdd9","_npmUser":{"name":"vtexlab","email":"breno+npm@vtex.com.br"},"repository":{"url":"git+https://github.com/vtex/umd-free-zone.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a define and exports free zone for your UMD scripts to safely register globally","directories":{},"_nodeVersion":"9.3.0","_npmOperationalInternal":{"tmp":"tmp/umd-free-zone-0.1.2.tgz_1516124225760_0.08560090651735663","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"umd-free-zone","version":"0.1.3","license":"MIT","_id":"umd-free-zone@0.1.3","maintainers":[{"name":"vtexlab","email":"breno+npm@vtex.com.br"}],"homepage":"https://github.com/vtex/umd-free-zone#readme","bugs":{"url":"https://github.com/vtex/umd-free-zone/issues"},"dist":{"shasum":"80f7c5964b3fce87409b11a89e531306422e1554","tarball":"https://registry.npmjs.org/umd-free-zone/-/umd-free-zone-0.1.3.tgz","integrity":"sha512-pZ4nxnj0i2OxlHSl4TCZ6sJiKMXZ6+rnV7+Q+yKgA0bi/s7e9vGowyaRtuD+V1P0+93j5KQSKz7GfqSFafdA7g==","signatures":[{"sig":"MEUCIAY9znSPm9cmg3Fy5JPATBFdnJTBT2TFRmALz0xRC3EHAiEAiEsQkkeFjZMRHI1L0rwBUENdvog8wBypjZ5aYkJc274=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"files":["start.js","end.js"],"gitHead":"2bc8cc21bec1e0638fae62a714675da2d77165b7","_npmUser":{"name":"vtexlab","email":"breno+npm@vtex.com.br"},"repository":{"url":"git+https://github.com/vtex/umd-free-zone.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a define and exports free zone for your UMD scripts to safely register globally","directories":{},"_nodeVersion":"9.3.0","_npmOperationalInternal":{"tmp":"tmp/umd-free-zone-0.1.3.tgz_1516124775327_0.19261869974434376","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-01-16T17:24:44.005Z","modified":"2026-09-25T15:59:20.382Z","0.1.0":"2018-01-16T17:24:44.005Z","0.1.1":"2018-01-16T17:33:30.407Z","0.1.2":"2018-01-16T17:37:06.370Z","0.1.3":"2018-01-16T17:46:15.404Z"},"bugs":{"url":"https://github.com/vtex/umd-free-zone/issues"},"license":"MIT","homepage":"https://github.com/vtex/umd-free-zone#readme","repository":{"url":"git+https://github.com/vtex/umd-free-zone.git","type":"git"},"description":"Creates a define and exports free zone for your UMD scripts to safely register globally","maintainers":[{"email":"lucas.portela@vtex.com","name":"lucasfp13-vtex"},{"email":"everton.ataide@vtex.com.br","name":"evertonataide"},{"email":"artur.santana@vtex.com","name":"artursantanavtex"},{"email":"luan.souto@vtex.com","name":"luan.souto"},{"email":"luan.santos@vtex.com","name":"luand3v"},{"email":"geraldo.fernandes@vtex.com.br","name":"geraldo.fernandes"},{"email":"jardely.santos@vtex.com","name":"jardelymaris"},{"email":"vitorlgomes@hotmail.com","name":"vitorlgomes"},{"email":"mateuspo10@gmail.com","name":"mateuspontes"},{"email":"it@vtex.com","name":"vtex-licenses"},{"email":"lucas.vysk@vtex.com","name":"lucasvysk.vtex"},{"email":"julio.guedes@vtex.com","name":"juliobguedes"},{"email":"fernando.daciuk@vtex.com","name":"fdaciuk_vtex"},{"email":"huandrey.pontes@vtex.com","name":"huandrey.pontes"},{"email":"kevinchevallier@gmail.com","name":"kevinchevallier"},{"email":"instorevendedor@gmail.com","name":"vtexlab-user"},{"email":"arthur.henrique@vtex.com.br","name":"arthurhenrique-vtex"},{"email":"gabpaladino@gmail.com","name":"gabpaladino"},{"email":"thaynan.nunes@vtex.com","name":"thaynannunes"},{"email":"ernestos.barbosa@vtex.com","name":"ernestosbarbosa"},{"email":"victor.miranda@vtex.com","name":"victorhmp"},{"email":"guilherme.carvalho@vtex.com","name":"guieevc-vtex"},{"email":"guilherme.dias@vtex.com","name":"vtex.guilherme.dias"},{"email":"lais.ribeiro@vtex.com","name":"laisribeiro"},{"email":"martinezgiraldoleidy@gmail.com","name":"leidymgdev"},{"email":"joangelbepu16@hotmail.com","name":"odin16"},{"email":"gabriela.martins@vtex.com","name":"gabriela.martins"},{"email":"arthur.andrade@vtex.com","name":"arthurtriis1vtex"}],"readme":"# umd-free-zone\n\numd-free-zone is meant to prevent your UMD-compatible scripts from falling for unwanted global AMD and CommonJS shims.\n\nJust add umd-free-zone/start.js before your scripts and umd-free-zone/end.js after them.\n\nThis will ensure your scripts register globally.\n\n## Example\n\nImagine you want to load the UMD compatible React from `unpkg` and intend for it to become a global (`window.React`).\n\nYet, you have an evil Mailchimp script that brutally exports a global `define` function, and you can't guarantee your React will load before the nasty AMD leak.\n\n`umd-free-zone` to the rescue! Just add it before and after the scripts you want to become global.\n\n\n### Bad:\n\nReact will fall for the alien global `define`.\n\n```\n// Nasty script that globally defines a `define` function\n<script src=\"https://downloads.mailchimp.com/js/signup-forms/popup/embed.js\"></script>\n\n<script src=\"https://unpkg.com/react@16.1.1/umd/react.production.min.js\"></script>\n<script> window.React // undefined! Ouch. </script>\n```\n\n### Good: \n\nWrap your scripts in `umd-free-zone` start and end:\n\n```\n// Nasty script that globally defines a `define` function\n<script src=\"https://downloads.mailchimp.com/js/signup-forms/popup/embed.js\"></script>\n\n<script src=\"https://unpkg.com/umd-free-zone@0.1.3/start.js\"></script>\n<script src=\"https://unpkg.com/react@16.1.1/umd/react.production.min.js\"></script>\n<script> window.React // undefined! Ouch. </script>\n<script src=\"https://unpkg.com/umd-free-zone@0.1.3/end.js\"></script>\n\n// The leaky AMD works as usual from here onwards, if you want it to.\n```\n","readmeFilename":"README.md"}