npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aiao/rxdb-test

v0.0.25

Published

RxDB 测试资源包,集中放测试实体、跨 adapter 契约套件、跨框架行为夹具和可复用的测试辅助函数。

Downloads

778

Readme

@aiao/rxdb-test

RxDB 测试资源包,集中放测试实体、跨 adapter 契约套件、跨框架行为夹具和可复用的测试辅助函数。

发布入口

  • @aiao/rxdb-test:通用测试辅助函数
  • @aiao/rxdb-test/entities:通用测试实体
  • @aiao/rxdb-test/shop:电商关系模型测试实体
  • @aiao/rxdb-test/encrypted:加密字段的 CRUD、生命周期、篡改保护与查询限制契约套件
import { cleanupSqliteTestAdapter, expectObservableSequence, generateTestDbName } from '@aiao/rxdb-test';
import { runCrudSuite, runLifecycleSuite, runTamperSuite } from '@aiao/rxdb-test/encrypted';

cross-framework-fixtures/*.json 是仓库内测试夹具,只允许通过源码相对路径读取,不属于 npm package exports。

加密持久化扫描的可信度边界

runCrudSuite 要求 adapter 提供 readDatabaseFile,并扫描它返回的字节是否包含明文 sentinel。这个断言只证明该 adapter 暴露的 persisted-state byte view 未发现 sentinel。

若 reader 只是逻辑表 dump,它不能证明原始数据库文件、WAL、free pages、change patch、查询缓存或历史快照不存在明文残留。只有 reader 明确覆盖这些物理介质后,消费方才能把结论提升为完整的 at-rest 无明文保证。

复杂的分支、触发器和 adapter 专属清理仍保留在对应 adapter 包内,避免把强耦合逻辑误抽成公共 API。