{"_id":"@chtibizoux/sveltekit-adapter-bun","_rev":"6-4c0354ba70c480846ff1a381e48a44e7","name":"@chtibizoux/sveltekit-adapter-bun","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.1","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.1","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"03175d6c033756cf13a0cc9270db9d8f7f2cf00c","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.1.tgz","fileCount":10,"integrity":"sha512-HZfJENiNfiLABNejeXsb8DcGLFs0SHXp+fdyBYMQYLaBwO402DEglx5rLUyqZ4XGddENLB8Sli0CmqIDR3ZOjQ==","signatures":[{"sig":"MEYCIQDbLidG51F//737AB6XLWiI/zoKbhovc3CehNK1LIUywgIhAPeq85/dzk7S2jD+XQW4CBIr5/LlbrW0xx4ac79xUCD9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86091},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"556050215b5628c74d111eeb9e62b1f986149e45","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.8.2","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"rollup":"^4.22.5","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.0","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.2","@sveltejs/kit":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.1_1727534955921_0.08405324417089122","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.2","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.2","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"544b4e18ffa4a7991b04e8e954ff041637bfc021","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.2.tgz","fileCount":10,"integrity":"sha512-fhCLJ2i2mEb9uoMrXnVZ1j77w4o+hI23FWqR0RJ+1yvJQDVKBz2Ro4oVya9/D/SwwKvi3GXakPLLGN7k2RdZXA==","signatures":[{"sig":"MEUCICTr7f3zWowYh5iOtRttzKpcCrtsjjrcC8Bgs3GdwDZKAiEAqro6KNLIkfsIicytdsTzGXvtLPNKfQyAyx1tZVYl64w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100968},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"1645c4f16c743178c7afa228cb197e22a83396c6","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.8.2","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"sirv":"^2.0.4","rollup":"^4.22.5","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.0","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.2","@sveltejs/kit":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.2_1727784129862_0.0668452010382945","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.3","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.3","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"7e86e1b7a1d9236e3f2e38ecf5fcfda269f5f1c4","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.3.tgz","fileCount":10,"integrity":"sha512-56AKrUsvWzapUEENuf2JygKGJw42Z1JI4Ajgha0dqnbXdwiMtxvM20YYVLvdF0XKOE1FZDAUSZfSZ2XXZ+adGQ==","signatures":[{"sig":"MEQCIG5CrrfwC5OyBtbFxya14ILZjj+/HtTnoLdzNumt9ZBnAiAV7byrVoqUiNBj9c7hjOsEGxrV+M84vojGBXemv9Se2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100789},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"1645c4f16c743178c7afa228cb197e22a83396c6","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.8.2","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"sirv":"^2.0.4","rollup":"^4.22.5","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.0","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.2","@sveltejs/kit":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.3_1727785817829_0.7378090485043354","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.4","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.4","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"6093ca9b9a74b8be66ff7d0c4640c27236598607","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.4.tgz","fileCount":10,"integrity":"sha512-HS/ZaRAhbRtflJz1wd3ySmTmd5kj7TkyGEjD9YB33+o3bLZfxIcVJrPy3RoxIh11RglhqfCV5+xqnanRVFvU2w==","signatures":[{"sig":"MEYCIQCAqjq4GxUBxQG99DvPO52p+Z7u0y2nnXiuULhZbMjiQgIhANrhP9zLGbJXc5EDRSHyJGY6b58U4/IguYUcglvyYD8H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100094},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"66d6ddf14fcfd488a6f496efdb2a5c6c65f6c1df","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.8.2","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"rollup":"^4.22.5","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.0","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.2","@sveltejs/kit":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.4_1727895343934_0.5819214241600839","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.5","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.5","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"ee3f49e12dc5ed4d0f6e9c85105571f4f55216ad","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.5.tgz","fileCount":10,"integrity":"sha512-hjmgbH/58opE7wOe4hkEaOWgMpdiVg/OJhYWahr3geNj0M0w5jfDT+6CbKekuplNuNI7qoDgAv2JUeV8lYZCqA==","signatures":[{"sig":"MEUCIQDVVqG7ltP794DRJCq3d1x4M1V3LSHKD1k41i00UyDwNgIgISlw5c0jYq3j3I8dibKzS2yXEUnef45TAkaWONNIslE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100094},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"d61f51fe44d262521cffe604f6adb67702a58c75","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.8.2","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"rollup":"^4.22.5","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.0","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.2","@sveltejs/kit":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.5_1729629317415_0.7947966528365458","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@chtibizoux/sveltekit-adapter-bun","version":"0.0.6","keywords":["sveltekit","adapter","bun"],"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.6","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"bin":{"sveltekit-bun":"dist/bin.js"},"dist":{"shasum":"f0bd9f9c69c9a355ad5f713c136dc28681dfa929","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.6.tgz","fileCount":10,"integrity":"sha512-RwyfgVcnqomaak7SqQRd8sMVRkRpJS8jr8ATj0/+euVXfmFRcio08LKe3JidvTSA250MmI9sZIoMoLmH5jrnjg==","signatures":[{"sig":"MEUCIExfHn4XgrH2DkM221CzbznNeRjN6RqXgHot9rpawPgUAiEArA6+of2wLJuj3N91Pp8DXtT4ercyfnuz40nKLPoU0F8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100094},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"4ce7050bf146dd57d78f339d94677e1dddb06635","scripts":{"build":"bun ./build.ts"},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"repository":{"url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git","type":"git"},"_npmVersion":"10.9.0","description":"Another sveltekit adapter for bun.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"rollup":"^4.24.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-node-resolve":"^15.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","@types/bun":"latest","typescript":"^5.6.3","@sveltejs/kit":"^2.7.2"},"_npmOperationalInternal":{"tmp":"tmp/sveltekit-adapter-bun_0.0.6_1729630230870_0.3332861352191916","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@chtibizoux/sveltekit-adapter-bun","description":"Another sveltekit adapter for bun.","keywords":["sveltekit","adapter","bun"],"version":"0.0.7","type":"module","repository":{"type":"git","url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git"},"publishConfig":{"access":"public"},"scripts":{"build":"bun ./build.ts"},"bin":{"sveltekit-bun":"dist/bin.js"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"devDependencies":{"@sveltejs/kit":"^2.7.2","@types/bun":"latest","cac":"^6.7.14","devalue":"^5.1.1","prettier":"^3.3.3","typescript":"^5.6.3"},"dependencies":{"@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.0","rollup":"^4.24.0"},"_id":"@chtibizoux/sveltekit-adapter-bun@0.0.7","gitHead":"4ce7050bf146dd57d78f339d94677e1dddb06635","bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","_nodeVersion":"20.17.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-4RgfSMQLz1juN3ALDQGPWJYo2ToQzngkmnCZhGU274DYw+7eMpobmMdlLTI5WausCAGX5QUYMpeMZOkNx2dLwA==","shasum":"b808fcaa94650e81754b32bbcb6ac90af798c738","tarball":"https://registry.npmjs.org/@chtibizoux/sveltekit-adapter-bun/-/sveltekit-adapter-bun-0.0.7.tgz","fileCount":10,"unpackedSize":101699,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUV3oWFx6Ra6Y/L405sgcdmddQK83Z8M0adAiMo51O9gIhAOBvmggWdrro0+8u+JtEE/qx4kY+5O2exH6Z2AgaMsA5"}]},"_npmUser":{"name":"chtibizoux","email":"5clemans585@gmail.com"},"directories":{},"maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-adapter-bun_0.0.7_1729631283739_0.7938053539117786"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-28T14:49:15.801Z","modified":"2024-10-22T21:08:04.107Z","0.0.1":"2024-09-28T14:49:16.131Z","0.0.2":"2024-10-01T12:02:10.062Z","0.0.3":"2024-10-01T12:30:18.029Z","0.0.4":"2024-10-02T18:55:44.136Z","0.0.5":"2024-10-22T20:35:17.673Z","0.0.6":"2024-10-22T20:50:31.245Z","0.0.7":"2024-10-22T21:08:03.952Z"},"bugs":{"url":"https://github.com/chtibizoux/svelte-adapter-bun/issues"},"homepage":"https://github.com/chtibizoux/svelte-adapter-bun#readme","keywords":["sveltekit","adapter","bun"],"repository":{"type":"git","url":"git+https://github.com/chtibizoux/svelte-adapter-bun.git"},"description":"Another sveltekit adapter for bun.","maintainers":[{"name":"chtibizoux","email":"5clemans585@gmail.com"}],"readme":"# @chtibizoux/sveltekit-adapter-bun\n\nAnother sveltekit adapter for bun, an alternative to [svelte-adapter-bun](https://github.com/gornostay25/svelte-adapter-bun). This package support websocket in dev mode with few steps of setup.\n\n## Installation\n\n```shell\nbun add -d @chtibizoux/sveltekit-adapter-bun\n```\n\n## Start dev server\n\n> [!NOTE]  \n> You do not need to do this if you are not using websocket.\n\nrun `bun sveltekit-bun` to start a dev server\n\n> [!IMPORTANT]\n> This dev server uses bun's internal stuff, so it might break in the future bun version, but the\n> production build will not be affected.\n\n## Use the websocket\n\n```typescript\n// ./src/app.d.ts\n// for the type checking\n\nimport type { AdapterPlatform } from '@chtibizoux/sveltekit-adapter-bun';\n\n// See https://kit.svelte.dev/docs/types#app\n// for information about these interfaces\ndeclare global {\n    namespace App {\n        // interface Error {}\n        // interface Locals {}\n        // interface PageData {}\n        // interface PageState {}\n        interface Platform extends AdapterPlatform {}\n    }\n}\n```\n\n```typescript\n// ./src/routes/echo/+server.ts\n\nexport async function GET({ platform }) {\n    // can mark any response for upgrade, if the upgrade failed, the response will be sent as is\n    return platform!.markForUpgrade(\n        new Response('Websocket Requried', {\n            status: 400\n        }),\n        {\n            message(ws, message) {\n                ws.send(message);\n            }\n        }\n    );\n}\n```\n","readmeFilename":"README.md"}