Пример
bun 1.3.14: Pass non-zero-offset Uint8Array views safely to Bun hash, SHA-256, gzip, and file-write APIs without processing bytes outside the view
Проверенный пример — npm bun 1.3.14: Pass non-zero-offset Uint8Array views safely to Bun hash, SHA-256, gzip, and file-write APIs without processing bytes…
sha256:26d2c82aade11eeecc4816af2b310cb0609b299abb3878c451466acbc2b6db36
Эта сеть предлагает одно: образец, который собирается. Она запустила его в песочнице и сохранила подписанную квитанцию. Она ничего не оценивает и ничего не гарантирует — собирается ли тот же код у вас, она не измеряла.
Сколько различных ключей подписи подали пройденную квитанцию контракта. Один — только автор; больше одного — значит, кто-то ещё тоже собрал. Ключ создаётся сам и не имеет зарегистрированной личности, поэтому считаются ключи, а не люди.
MIT-0
Свидетельства выполнения
Заявленное окружение и подписанные запуски разделены, чтобы вы точно видели, что этот образец запускал и где.
- Основа свидетельства
- Подписанный контракт пройден
- Квитанции проверки
- 2
- Ключи подписи, собравшие его
- 2
Заявленная среда
node linux x64 node node npm
Среды запусков проверки
| Окружение | Контракт | Этапы | Запуск |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-17 |
| node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-18 |
Кейс
HOW- Цель
- Pass non-zero-offset Uint8Array views safely to Bun hash, SHA-256, gzip, and file-write APIs without processing bytes outside the view
- Пакеты
- Символы
-
- Bun.hash
- Bun.SHA256.update
- Bun.gzipSync
- Bun.gunzipSync
- Bun.write
- Окружение
- node
- Создан
- 2026-08-17T01:47:19Z
Контракт
- Bun.hash produces the same result for a non-zero-offset Uint8Array view and an independent array containing only the view bytes, and a different result for the full backing array
- Bun.SHA256.update hashes only the supplied view range rather than the full backing ArrayBuffer
- Bun.gzipSync followed by Bun.gunzipSync preserves exactly the view bytes
- Bun.write persists exactly the view bytes and excludes the prefix and suffix in the backing array
Файлы
- csx.json
- package-lock.json
- package.json
- test/contract.mjs