{"_id":"@abcnews/dev-proxy","_rev":"13-5a69fe7b9d932079e055482cfca703cf","name":"@abcnews/dev-proxy","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@abcnews/dev-proxy","version":"1.0.0","author":{"name":"Simon Elvery"},"license":"MIT","_id":"@abcnews/dev-proxy@1.0.0","maintainers":[{"name":"phocks","email":"phocks@gmail.com"},{"name":"drzax","email":"simon@elvery.net"},{"name":"colingourlay","email":"colin@colin-gourlay.com"},{"name":"blakebutcher","email":"blake.butcher@abc.net.au"},{"name":"louisstow","email":"louisstow@gmail.com"}],"dist":{"shasum":"58ba249395424fa78182eef0351335fabaee2611","tarball":"https://registry.npmjs.org/@abcnews/dev-proxy/-/dev-proxy-1.0.0.tgz","fileCount":13,"integrity":"sha512-YNNnytZSzXnz7WgJVceEdm5IGNeNV0Yha2cFQrDqdoxoGz7aGHj4BeT9pT3X+uQVVwd8GA+w/7df/Z2WJtBrcg==","signatures":[{"sig":"MEUCIHXFReMp9P0ldyCVHwjysAOzG6AGycB3ZBYpA2xhoyWQAiEA2OLCM6ZiROlVHmyhBedUxfG9qlP96RaTHJRW2e2C8YE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvsiNCRA9TVsSAnZWagAAy3wQAIMtiOrwJuoCaV6eMhGK\n+FiwQMMUACKkhMMn3zURMcS86aNHmMcF1/UX8y4g5acKUIfXlqY+yaHW1lOt\npcURQdicOPRRic7qNaZ8Xv3PjdzSttJ9EZ5lajynxTBOPhei/AY7/IN5Z8nG\nUUznRwkV6vMd7CTAv+9Xfoeh5/2VZK3tTQaACs46ZmSdY4DDYaKnkRroI0w3\nI+rAsywdiLFYT7CcSCxU0DwY9PXeOp0d1MBLnxvM70mD6SiCzryI7w8fR/s8\nupcislC19NeuJTLfaw92uFzP/A/hBO1BPH20zbwedDlG33biMEJlbT0aEaxz\nzMIoL7rK3mcj7nJHp22do9O5jIa6Af+5LzsjaJyuq8JU29P6TCqszaeMNCUS\nEA1uil6NLFI5uva26zohdoviVBEeabYW87ygLnTxVMUg6ymOrHQLaXyz00Jd\nIOMXcFYr5I8XUv3wVq6tkYKPK8kaF+OuiTTORGlZChoptBnILCSgJ/S2luPn\nveLjJvLhWKfJcqgwRsJ+HleBQ7SzKY/9SOQchud8rbB/C06a52qowjz/hIgj\n01tlRbOXSsRWzoIARfqotmoQRrhX/IVGEjSAb3ouBUQAOa1eJOqMcQgcbn33\nkolqSm3h1eeanVBAeMmMleh1NMdQlwhKeTL8eV/X7ysumMlwCUXxDFkRfDYa\nGVf9\r\n=ZZ0w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/dev-proxy.esm.js","engines":{"node":">=14"},"gitHead":"67df2b1f1e624966fa2b907c5d89b9c3c283668e","scripts":{"lint":"tsdx lint","size":"size-limit","test":"tsdx test","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build","release":"np"},"typings":"dist/index.d.ts","_npmUser":{"name":"drzax","email":"simon@elvery.net"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"size-limit":[{"path":"dist/dev-proxy.cjs.production.min.js","limit":"10 KB"},{"path":"dist/dev-proxy.esm.js","limit":"10 KB"}],"_npmVersion":"7.13.0","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","directories":{},"_nodeVersion":"16.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.5.0","tsdx":"^0.14.1","husky":"^6.0.0","tslib":"^2.2.0","size-limit":"^4.11.0","typescript":"^4.3.2","@size-limit/preset-small-lib":"^4.11.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/dev-proxy_1.0.0_1623115917620_0.5428577933159824","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@abcnews/dev-proxy","version":"1.1.0","author":{"name":"Simon Elvery"},"license":"MIT","_id":"@abcnews/dev-proxy@1.1.0","maintainers":[{"name":"phocks","email":"phocks@gmail.com"},{"name":"drzax","email":"simon@elvery.net"},{"name":"colingourlay","email":"colin@colin-gourlay.com"},{"name":"blakebutcher","email":"blake.butcher@abc.net.au"},{"name":"louisstow","email":"louisstow@gmail.com"}],"dist":{"shasum":"82a47c32885e7c97462b06aa4532f0ed757ae478","tarball":"https://registry.npmjs.org/@abcnews/dev-proxy/-/dev-proxy-1.1.0.tgz","fileCount":13,"integrity":"sha512-YYU6fFCiJV93uSmXe55xSjF4lut/OW1UxJ5YybtmHKe0OlrwUMxWtxxoDOPk0gwdZyta7qe2XpRbCuNrDqXllw==","signatures":[{"sig":"MEYCIQD+uR/fyNDI0a/uoYcrHhsphx0//oKuZ+Wff7O+vYFawAIhAMvvs6OX30e+EEyD/IC05RuBsx0J/YDJ1CNL0XH+88Ur","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0ozfCRA9TVsSAnZWagAA0GUQAJuwz9H275nOpLua6pZf\nyQyO31NSSBLKYYz0oQYuQmUZXJDjwXDJGfxt+27aVXnCacyvswrLwzvXNxUU\n4j08kShpXpNfFjFLuN41ahw/JOhSwNZsvT3rlKJ2J+oJBpfiUWusHQLIzm8g\nIqillFoFVwCWr3xydT32NyGiwZ2Lkax7hBjMdNYtyKmzkXwno6BR32lOPrdh\nJULO/Z4dk62iS272qfngkHb7ve8KjGoL0Jp3YwcPgWkLwllrU0dcOXp2dstI\nahy9NlzkONrilpCzFZ5W3vRvECIXdMDiS22BbVpYt6ESTKhKqVw7JEN7NMFE\nu50Nzz1BQWGjXy01seXixd2ezV7Kwl0b/9jKhFvsiOUXBB5NOaulSOimt4w0\novOOyf9edIAYxhzktWozDC0kqTYJhOJwbX8cXmaFIv/iMbUZ87sjYQcbcQPN\nm1MS1Pu+Wcf1bLK7h0bcHHTQOn5kx0fUpOmzTkh/wiSxY1hBviauEuR0QQMO\n2p4DeL98/1WF8fGv46B32FqXtI28m7mbikQA2Pvugsvl1S9byxWCzoGLssqs\n/KY96af5AEYLoHDHgQjdbDNr+Ve1O21+N3iqxUdfpyaLX7TeMWxoyy/NFw2c\nkDQ6gQ++CIVJHQWJ65L/wb5/i7tiZOuJjtW5zSmwH1/MuWjeFi6Vim0IYI60\n6r2t\r\n=xLFf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/dev-proxy.esm.js","engines":{"node":">=14"},"gitHead":"c42a3fb099faef96ad7293bcc4fbaaebad8cfa27","scripts":{"lint":"tsdx lint","size":"size-limit","test":"tsdx test","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build","release":"np"},"typings":"dist/index.d.ts","_npmUser":{"name":"colingourlay","email":"colin@colin-gourlay.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"size-limit":[{"path":"dist/dev-proxy.cjs.production.min.js","limit":"10 KB"},{"path":"dist/dev-proxy.esm.js","limit":"10 KB"}],"_npmVersion":"7.18.1","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","directories":{},"_nodeVersion":"14.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.5.0","tsdx":"^0.14.1","husky":"^6.0.0","tslib":"^2.2.0","size-limit":"^4.11.0","typescript":"^4.3.2","@size-limit/preset-small-lib":"^4.11.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/dev-proxy_1.1.0_1624411359134_0.7037198048566677","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@abcnews/dev-proxy","version":"1.2.0","author":{"name":"Simon Elvery"},"license":"MIT","_id":"@abcnews/dev-proxy@1.2.0","maintainers":[{"name":"jtfell","email":"hi@jtfell.com"},{"name":"phocks","email":"phocks@gmail.com"},{"name":"andrewkesper","email":"andy@andrewkesper.com"},{"name":"drzax","email":"simon@elvery.net"}],"dist":{"shasum":"cbcf1998f6190c160bce698cdfaa908312323ac1","tarball":"https://registry.npmjs.org/@abcnews/dev-proxy/-/dev-proxy-1.2.0.tgz","fileCount":52,"integrity":"sha512-AR6meEaxTZYbNsvzyBQ530Yy9dF6y/nBFaWz8V70Au5usGZ9rsnqIg05etfMmnVhV9Rxppzt/ZxLYzJibab9hw==","signatures":[{"sig":"MEQCIDimBtUyXfu5GxKdi8tyUyo4Okv6IJ3mVW+RmRAGuv2WAiB6cGBlxLUX7EJ0XOM2VAPcPRxLtly0EPkJzrTDmCa9kQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93818},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"npm run lint"}},"module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"71e7860b0f7981316affc9e3e17c9c8d28b8ea60","scripts":{"lint":"eslint src","size":"npm run build && size-limit","test":"jest --coverage","build":"tsup src/index.ts --dts --sourcemap --format esm,cjs","start":"tsup src/index.ts --dts --sourcemap --format esm,cjs --watch","analyze":"size-limit --why","prepare":"husky install","release":"np","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"drzax","email":"simon@elvery.net"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"size-limit":[{"path":"dist/index.mjs","limit":"1 KB"},{"path":"dist/index.js","limit":"1.5 KB"}],"_npmVersion":"9.5.1","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","directories":{},"_nodeVersion":"19.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.5.0","jest":"^29.5.0","tsup":"^6.7.0","husky":"^8.0.3","tslib":"^2.2.0","eslint":"^8.39.0","ts-jest":"^29.1.0","size-limit":"^8.2.4","typescript":"^5.0.4","@types/jest":"^29.5.1","jest-environment-jsdom":"^29.5.0","@size-limit/esbuild-why":"^8.2.4","@size-limit/preset-small-lib":"^8.2.4","@typescript-eslint/eslint-plugin":"^5.59.2"},"_npmOperationalInternal":{"tmp":"tmp/dev-proxy_1.2.0_1683789271080_0.7374181704311227","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@abcnews/dev-proxy","version":"1.2.1","author":{"name":"Simon Elvery"},"license":"MIT","_id":"@abcnews/dev-proxy@1.2.1","maintainers":[{"name":"jtfell","email":"hi@jtfell.com"},{"name":"phocks","email":"phocks@gmail.com"},{"name":"andrewkesper","email":"andy@andrewkesper.com"},{"name":"drzax","email":"simon@elvery.net"}],"dist":{"shasum":"a62bbca483486396a15bb9de9f1c874504869a51","tarball":"https://registry.npmjs.org/@abcnews/dev-proxy/-/dev-proxy-1.2.1.tgz","fileCount":64,"integrity":"sha512-H011q7eoLIE4MTL7Ozxmol3jP+Y1WWh5LTxVbgzSGgJ6CJiYMH8Z1zHP3d7GGoZfiPmd6fYs6+y1QhoFuBfFgA==","signatures":[{"sig":"MEQCIHo6uKxXC+iliVWArGqfwMqjeCkNWi65cOkPE85tD4UtAiBa6YAADj39RCgxdVCpaKha6PlaXhjJ5LZS2udA9h5R4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119391},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"npm run lint"}},"module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"ac36547b953361790249b3d80a708b915b72171d","scripts":{"lint":"eslint src","size":"npm run build && size-limit","test":"jest --coverage","build":"tsup src/index.ts --dts --sourcemap --format esm,cjs","start":"tsup src/index.ts --dts --sourcemap --format esm,cjs --watch","analyze":"size-limit --why","prepare":"husky install","release":"np","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"drzax","email":"simon@elvery.net"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"size-limit":[{"path":"dist/index.mjs","limit":"1 KB"},{"path":"dist/index.js","limit":"1.5 KB"}],"_npmVersion":"9.5.1","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","directories":{},"_nodeVersion":"19.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.5.0","jest":"^29.5.0","tsup":"^6.7.0","husky":"^8.0.3","tslib":"^2.2.0","eslint":"^8.39.0","ts-jest":"^29.1.0","size-limit":"^8.2.4","typescript":"^5.0.4","@types/jest":"^29.5.1","jest-environment-jsdom":"^29.5.0","@size-limit/esbuild-why":"^8.2.4","@size-limit/preset-small-lib":"^8.2.4","@typescript-eslint/eslint-plugin":"^5.59.2"},"_npmOperationalInternal":{"tmp":"tmp/dev-proxy_1.2.1_1684223016787_0.939596406726303","host":"s3://npm-registry-packages"}},"1.3.0":{"version":"1.3.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=16"},"scripts":{"start":"tsup src/index.ts --dts --sourcemap --format esm,cjs --watch","build":"tsup src/index.ts --dts --sourcemap --format esm,cjs","test":"jest --coverage","lint":"eslint src","prepare":"husky install","prepublishOnly":"npm run build","size":"npm run build && size-limit","analyze":"size-limit --why","release":"np"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"@abcnews/dev-proxy","author":{"name":"Simon Elvery"},"module":"dist/index.mjs","size-limit":[{"path":"dist/index.mjs","limit":"1 KB"},{"path":"dist/index.js","limit":"1.5 KB"}],"devDependencies":{"@size-limit/esbuild-why":"^8.2.4","@size-limit/preset-small-lib":"^8.2.4","@types/jest":"^29.5.1","@types/node":"^25.6.0","@typescript-eslint/eslint-plugin":"^5.59.2","eslint":"^8.39.0","husky":"^8.0.3","jest":"^29.5.0","jest-environment-jsdom":"^29.5.0","np":"^11.2.0","size-limit":"^8.2.4","ts-jest":"^29.1.0","tslib":"^2.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"publishConfig":{"access":"public"},"gitHead":"05a05299474e190384946d210cc0ccfa4ba50852","_id":"@abcnews/dev-proxy@1.3.0","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-NQoLCXZSXyo9qxwQ3i1anMV8mvmnIiFxNwFMIn9YV1ql58B8Ac3eRFLMftHDSUhF+D1SaJYJOnd65UPNOiY+7w==","shasum":"69b756fd4fe258ec94eeee4f21315b9116003129","tarball":"https://registry.npmjs.org/@abcnews/dev-proxy/-/dev-proxy-1.3.0.tgz","fileCount":16,"unpackedSize":30706,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEL+QXEXbU2OmbiGJv2V+zqcvsyY1ATiy7vkzFYxqws7AiEAo04tWFawXGNl7EoykJB/hCTEAPNdI9+MDcTzWwhBQ5U="}]},"_npmUser":{"name":"phocks","email":"phocks@gmail.com"},"directories":{},"maintainers":[{"name":"drzax","email":"simon@elvery.net"},{"name":"andrewkesper","email":"andy@andrewkesper.com"},{"name":"phocks","email":"phocks@gmail.com"},{"name":"jtfell","email":"hi@jtfell.com"},{"name":"ashkyd","email":"ash@kyd.com.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dev-proxy_1.3.0_1778133837643_0.352975366957188"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-08T01:31:57.464Z","modified":"2026-05-07T06:03:57.994Z","1.0.0":"2021-06-08T01:31:57.743Z","1.1.0":"2021-06-23T01:22:39.301Z","1.2.0":"2023-05-11T07:14:31.276Z","1.2.1":"2023-05-16T07:43:36.984Z","1.3.0":"2026-05-07T06:03:57.789Z"},"author":{"name":"Simon Elvery"},"license":"MIT","description":"Provides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.","maintainers":[{"name":"drzax","email":"simon@elvery.net"},{"name":"andrewkesper","email":"andy@andrewkesper.com"},{"name":"phocks","email":"phocks@gmail.com"},{"name":"jtfell","email":"hi@jtfell.com"},{"name":"ashkyd","email":"ash@kyd.com.au"}],"readme":"# Dev script proxy\n\nProvides the capability to override an `news-projects` script with a different script with settings defined in `localStorage`.\n\nThe script being overridden needs to import and use this library:\n\n```ts\nimport { proxy } from '@abcnews/dev-proxy';\n\nfunction init() {\n  // The code that kicks off your script goes here.\n}\n\nproxy('project-name').then(init);\n```\n\nTo put the override into effect `localStorage` needs to contain an entry with key `proxy_<project-name>` that contains the URL of the script to override with.\n\n## How does it work?\n\nThe `proxy` function returns a promise that will either:\n\n- **resolve successfully**, indicating that the script initialisation should go ahead (i.e. the `.then(init)` part of the above implementation example), or\n- **be rejected**, indicating that an alternative script has been successfully identified and added to the document and the init function should not be run.\n\nFor the `proxy` function to successfully identify a script to run instead a few criteria need to be met:\n\n- The script importing the `proxy` function should not have a `NODE_ENV` of 'development' (this prevents infinite loops when this `proxy` function is used on a dev server.\n- The script should not be running on a production URL.\n- `localStorage` must contain an entry identifying a suitable replacement hosted on an ABC url (including `localhost` aliases that include `abc.net.au`).\n\n## Usage\n\nAs of version 1.2.0 pressing the key combination `Alt-M` when you're in an approprate dev or preview environment offers an easy way to set the appropriate localStorage values to proxy relevant scripts on the page.\n","readmeFilename":"README.md"}