{"name":"@ice/sandbox","version":"1.1.4-0","description":"sandbox for execute scripts","main":"lib/index.js","scripts":{"build":"rm -rf lib && tsc","watch":"tsc -w","test":"NODE_ENV=unittest pnpm jest","lint":"pnpm eslint --ext .js,.jsx,.ts,.tsx ./","prepublishOnly":"pnpm run-s lint test build"},"repository":{"type":"git","url":"git+https://github.com/ice-lab/icestark.git"},"keywords":["sandbox","icestark"],"license":"MIT","bugs":{"url":"https://github.com/ice-lab/icestark/issues"},"homepage":"https://github.com/ice-lab/icestark#readme","devDependencies":{"typescript":"^3.8.3"},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true,"preset":"ts-jest","automock":false,"testMatch":["**/__tests__/**/*.ts?(x)","**/?(*.)+(spec|test).ts?(x)"],"setupFiles":["../../setupJest.ts"]},"readme":"# @ice/sandbox\n\n> icestark sandbox solution. [icestark docs](https://ice-lab.github.io/icestark/).\n\n[![NPM version](https://img.shields.io/npm/v/@ice/sandbox.svg?style=flat)](https://npmjs.org/package/@ice/sandbox) [![Package Quality](https://npm.packagequality.com/shield/@ice%2Fsandbox.svg)](https://packagequality.com/#?package=@ice%2Fsandbox) [![build status](https://img.shields.io/travis/ice-lab/icestark.svg?style=flat-square)](https://travis-ci.org/ice-lab/icestark) [![Test coverage](https://img.shields.io/codecov/c/github/ice-lab/icestark.svg?style=flat-square)](https://codecov.io/gh/ice-lab/icestark) [![NPM downloads](http://img.shields.io/npm/dm/@ice/sandbox.svg?style=flat)](https://npmjs.org/package/@ice/sandbox) [![David deps](https://img.shields.io/david/ice-lab/icestark.svg?style=flat-square)](https://david-dm.org/ice-lab/icestark)\n\n## Installation\n\n```bash\n$ npm install @ice/sandbox --save\n```\n\n## Usage\n\n```js\nimport Sandbox from '@ice/sandbox';\n\nconst sandbox = new Sandbox();\n\n// execute scripts in sandbox\nsandbox.execScriptInSandbox('window.a = 1;console.log(window.a);');\n\n// clear side effects added by sandbox, such as addEventListener, setInterval\nsandbox.clear();\n```\n\n## Inspiration\n\n`@ice/sandbox` is inspired by [tc39/proposal-realms](https://github.com/tc39/proposal-realms), [realms-shim](https://github.com/Agoric/realms-shim) and [qiankun sandbox](https://github.com/umijs/qiankun).\n\n## Contributors\n\nFeel free to report any questions as an [issue](https://github.com/ice-lab/icestark/issues/new), we'd love to have your helping hand on `icestark`.\n\nIf you're interested in `icestark`, see [CONTRIBUTING.md](https://github.com/alibaba/ice/blob/master/.github/CONTRIBUTING.md) for more information to learn how to get started.\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","_id":"@ice/sandbox@1.1.4-0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-xa+Zpf38vsulfslWsT4QiJjnPS6rfKizTl0JgEuzzYX56p0Tn9csZegpac6ud2Z+wZOXRWNYIGxye7ETDCX++Q==","shasum":"523490ce591e22e20676b6ef87bae6b1a4eba40d","tarball":"http://registry-npm.ywwl.com/@ice/sandbox/download/@ice/sandbox-1.1.4-0.tgz","fileCount":5,"unpackedSize":13880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQSh6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowYg//VcrtE6jGt0xEzh6Yod7Cu76vR3/t8LXIxykqEx+mpxzLmg64\r\nIoSJ1jYvU501PxIjN4JUwX93Vpn0wy+s0KT7tujgDfEzu5qqHvMXL1Up/Az5\r\nA/SquRmg/+pvxUNIlzTYA4EIqn1DGSTEPiIkDOaQzQjUxZX0S/kiNKiahPlZ\r\nnW7/wr9bgHTx++nzIv4Xz2vn/jqP88ke4ovxB0IkJM1N18RZLJhlClDkgzvx\r\nDfuJxEOEXpzH9FFOUq7WOLeOnOeeeY2Ji+2KMRuhJcNDj8dMLz/guaOglpWJ\r\nl8mIimYQjBm+bThibqLS9Nx8YlqRFHs19xXnh9BWy2TTr9ZIOAmvXMa1ks16\r\nCcQD++PJKNOJw4iGPmmGEmkoV79ttg9RH70n0qjNlYbi559dRogoZ7/4TCpg\r\nxDtb1mfFGMp1AARTPBEcvOEbdnwU8HEQpL/A8fS7NzE1QJfqSkG61GD/ILec\r\nKvI0GmCZRdOkFbfxz6LmQNL+w1qqXH5ILnEAS1BMlGY5BYHglk2AEcfgxCwJ\r\n7aeCltH9P/45R/00GJPQdvhodxBwOLoZy02yHZX8/Zj0qK8sxNmL7c0vVxCF\r\nDUlyP8EaYs8MJcAVGEXEkoo1u/zeO9DBPjgj3MX3UoEkpKAUhYdwHIwpvy7Q\r\nNAC3t+oGLBhxTg61JSUOXk63N3y1ooBN4Ic=\r\n=UyC4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWp7ADiq3Skg6wwqrXbuMSUQ8y2uEkkTUseg5n50BR2AiB5av4xEipFi8XVB4MX7zhiBkQ0um0Vi2G7hkohSAi2VA=="}],"size":4380,"noattachment":false,"key":"/@ice/sandbox/-/@ice/sandbox-1.1.4-0.tgz"},"_npmUser":{"name":"maoxiaoke","email":"thebigyellowbee@qq.com"},"directories":{},"maintainers":[{"name":"luhengchang228","email":"luhengchang228@126.com"},{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"clarkxia","email":"xiawenwu41@gmail.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"chenbin93","email":"chenbinad@gmail.com"},{"name":"maoxiaoke","email":"thebigyellowbee@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sandbox_1.1.4-0_1648437370725_0.12277421334579963"},"_hasShrinkwrap":false,"publish_time":1648437370901,"_cnpm_publish_time":1648437370901,"dist-tags":{"beta":"1.1.5-0","latest":"1.1.4"}}