| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-08 20:02:40 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-08 20:02:40 UTC |
| parent | 2fd67ac86baf15c90cc6a542c258ecd7e6370d5f |
| borogove/persistence/Sqlite.hx | +3 | -1 |
| optional-sqlite.awk | +16 | -0 |
diff --git a/borogove/persistence/Sqlite.hx b/borogove/persistence/Sqlite.hx index a9bfe4e..b786a94 100644 --- a/borogove/persistence/Sqlite.hx +++ b/borogove/persistence/Sqlite.hx @@ -602,7 +602,9 @@ class Sqlite implements Persistence implements KeyValueStore { @HaxeCBridge.noemit public function storeCaps(caps:Caps) { - storeCapsSet([ caps.verRaw().hash => caps ]); + final map: Map<BytesData, Caps> = []; + map[caps.verRaw().hash] = caps; + storeCapsSet(map); } private function storeCapsSet(capsSet:Map<BytesData, Caps>) { diff --git a/optional-sqlite.awk b/optional-sqlite.awk index bf8d286..c59f117 100644 --- a/optional-sqlite.awk +++ b/optional-sqlite.awk @@ -35,6 +35,21 @@ skipping { gsub(/borogove_/, "borogove.borogove_", line) gsub("__TEMP_KEEP__", "borogove_persistence_Sqlite", line) gsub("__TEMP_KEEP2__", "borogove_persistence_Worker1", line) + gsub(/thenshim_Promise/, "borogove.thenshim_Promise", line) + gsub(/haxe_Timer/, "borogove.haxe_Timer", line) + gsub(/haxe_Exception/, "borogove.haxe_Exception", line) + gsub(/haxe_iterators/, "borogove.haxe_iterators", line) + gsub(/haxe_crypto/, "borogove.haxe_crypto", line) + gsub(/haxe_io/, "borogove.haxe_io", line) + gsub(/js_lib_/, "borogove.js_lib_", line) + gsub(/js_Boot/, "borogove.js_Boot", line) + gsub(/Std/, "borogove.Std", line) + gsub(/EReg/, "borogove.EReg", line) + gsub(/Type/, "borogove.Type", line) + gsub(/Reflect/, "borogove.Reflect", line) + gsub(/Lambda/, "borogove.Lambda", line) + gsub(/\$bind/, "borogove.$bind", line) + gsub(/\$getIterator/, "borogove.$getIterator", line) print line >> "npm/sqlite-wasm.js" if (extra > 0) { @@ -50,4 +65,5 @@ skipping { END { print "export { borogove_Map }" >> "npm/browser-no-sqlite.js" + print "export { $bind, $getIterator, Std, EReg, Type, Reflect, Lambda, haxe_io_Bytes, haxe_Timer, haxe_Exception, haxe_crypto_Base64, haxe_iterators_ArrayIterator, js_Boot, js_lib_HaxeIterator, thenshim_Promise, thenshim_PromiseTools }" >> "npm/browser-no-sqlite.js" }