@effectionx/worker 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{script/deps/jsr.io/@std/assert/1.0.14 → esm/deps/jsr.io/@std/assert/1.0.16}/almost_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +6 -5
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.js +7 -6
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.d.ts +3 -5
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.js +13 -7
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/esm/message-channel.d.ts +3 -0
- package/esm/message-channel.d.ts.map +1 -0
- package/esm/message-channel.js +13 -0
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/types.d.ts +33 -0
- package/esm/types.d.ts.map +1 -0
- package/esm/types.js +1 -0
- package/esm/worker-main.d.ts +84 -0
- package/esm/worker-main.d.ts.map +1 -0
- package/esm/worker-main.js +186 -0
- package/esm/worker.d.ts +2 -74
- package/esm/worker.d.ts.map +1 -1
- package/esm/worker.js +4 -120
- package/package.json +3 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.14 → script/deps/jsr.io/@std/assert/1.0.16}/almost_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +6 -5
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.js +7 -6
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.d.ts +3 -5
- package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.js +13 -7
- package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/script/message-channel.d.ts +3 -0
- package/script/message-channel.d.ts.map +1 -0
- package/script/message-channel.js +16 -0
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/types.d.ts +33 -0
- package/script/types.d.ts.map +1 -0
- package/script/types.js +2 -0
- package/script/worker-main.d.ts +84 -0
- package/script/worker-main.d.ts.map +1 -0
- package/script/worker-main.js +190 -0
- package/script/worker.d.ts +2 -74
- package/script/worker.d.ts.map +1 -1
- package/script/worker.js +4 -121
- package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.10/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/types.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/types.js +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.workerMain = workerMain;
|
|
4
|
+
exports.createWorkerStatesSignal = createWorkerStatesSignal;
|
|
5
|
+
const effection_1 = require("effection");
|
|
6
|
+
/**
|
|
7
|
+
* Entrypoint used in the worker that estaliblishes communication
|
|
8
|
+
* with the main thread. It can be used to return a value,
|
|
9
|
+
* respond to messages or both.
|
|
10
|
+
*
|
|
11
|
+
* @example Returning a value
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { workerMain } from "../worker.ts";
|
|
14
|
+
*
|
|
15
|
+
* await workerMain(function* ({ data }) {
|
|
16
|
+
* return data;
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example Responding to messages
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { workerMain } from "../worker.ts";
|
|
23
|
+
*
|
|
24
|
+
* await workerMain(function* ({ messages }) {
|
|
25
|
+
* yield* messages.forEach(function* (message) {
|
|
26
|
+
* return message;
|
|
27
|
+
* });
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example Responding to messages and return a value
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { workerMain } from "../worker.ts";
|
|
34
|
+
*
|
|
35
|
+
* await workerMain<number, number, number, number>(
|
|
36
|
+
* function* ({ messages, data: initial }) {
|
|
37
|
+
* let counter = initial;
|
|
38
|
+
*
|
|
39
|
+
* yield* messages.forEach(function* (message) {
|
|
40
|
+
* counter += message;
|
|
41
|
+
* return counter; // returns a value after each message
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* return counter; // returns the final value
|
|
45
|
+
* },
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @template TSend - value main thread will send to the worker
|
|
50
|
+
* @template TRecv - value main thread will receive from the worker
|
|
51
|
+
* @template TReturn - worker operation return value
|
|
52
|
+
* @template TData - data passed from the main thread to the worker during initialization
|
|
53
|
+
* @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
|
|
54
|
+
* @returns {Promise<void>}
|
|
55
|
+
*/
|
|
56
|
+
async function workerMain(body) {
|
|
57
|
+
await (0, effection_1.main)(function* () {
|
|
58
|
+
let sent = (0, effection_1.createSignal)();
|
|
59
|
+
let worker = yield* createWorkerStatesSignal();
|
|
60
|
+
yield* (0, effection_1.spawn)(function* () {
|
|
61
|
+
for (const message of yield* (0, effection_1.each)((0, effection_1.on)(self, "message"))) {
|
|
62
|
+
const control = message.data;
|
|
63
|
+
switch (control.type) {
|
|
64
|
+
case "init": {
|
|
65
|
+
worker.start(yield* (0, effection_1.spawn)(function* () {
|
|
66
|
+
try {
|
|
67
|
+
let value = yield* body({
|
|
68
|
+
data: control.data,
|
|
69
|
+
messages: {
|
|
70
|
+
*forEach(fn) {
|
|
71
|
+
for (let { value, response } of yield* (0, effection_1.each)(sent)) {
|
|
72
|
+
yield* (0, effection_1.spawn)(function* () {
|
|
73
|
+
try {
|
|
74
|
+
let result = yield* fn(value);
|
|
75
|
+
response.postMessage((0, effection_1.Ok)(result));
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
response.postMessage((0, effection_1.Err)(error));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
yield* effection_1.each.next();
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
worker.complete(value);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
worker.crash(error);
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case "send": {
|
|
95
|
+
let { value, response } = control;
|
|
96
|
+
sent.send({ value, response });
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
case "close": {
|
|
100
|
+
const current = worker.valueOf();
|
|
101
|
+
if (current.type === "running") {
|
|
102
|
+
yield* current.task.halt();
|
|
103
|
+
worker.interrupt();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
yield* effection_1.each.next();
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
for (const state of yield* (0, effection_1.each)(worker)) {
|
|
111
|
+
if (state.type === "new") {
|
|
112
|
+
postMessage({ type: "open" });
|
|
113
|
+
}
|
|
114
|
+
else if (state.type === "interrupted" || state.type === "error") {
|
|
115
|
+
postMessage({ type: "close", result: (0, effection_1.Err)(state.error) });
|
|
116
|
+
}
|
|
117
|
+
else if (state.type === "complete") {
|
|
118
|
+
postMessage({ type: "close", result: (0, effection_1.Ok)(state.value) });
|
|
119
|
+
}
|
|
120
|
+
yield* effection_1.each.next();
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function createWorkerStatesSignal() {
|
|
125
|
+
return (0, effection_1.resource)(function* (provide) {
|
|
126
|
+
let ref = {
|
|
127
|
+
current: { type: "new" },
|
|
128
|
+
};
|
|
129
|
+
const signal = (0, effection_1.createSignal)();
|
|
130
|
+
const set = (value) => {
|
|
131
|
+
signal.send(ref.current = value);
|
|
132
|
+
return value;
|
|
133
|
+
};
|
|
134
|
+
const update = (updater) => set(updater(ref.current));
|
|
135
|
+
const interrupt = () => {
|
|
136
|
+
let next = {
|
|
137
|
+
type: "interrupted",
|
|
138
|
+
error: new Error(`worker terminated`),
|
|
139
|
+
};
|
|
140
|
+
set(next);
|
|
141
|
+
return next;
|
|
142
|
+
};
|
|
143
|
+
try {
|
|
144
|
+
yield* provide({
|
|
145
|
+
*[Symbol.iterator]() {
|
|
146
|
+
let subscription = yield* signal;
|
|
147
|
+
signal.send(ref.current);
|
|
148
|
+
return subscription;
|
|
149
|
+
},
|
|
150
|
+
get state() {
|
|
151
|
+
return ref.current.type;
|
|
152
|
+
},
|
|
153
|
+
set,
|
|
154
|
+
update,
|
|
155
|
+
valueOf() {
|
|
156
|
+
return ref.current;
|
|
157
|
+
},
|
|
158
|
+
start(task) {
|
|
159
|
+
if (ref.current.type === "complete") {
|
|
160
|
+
return ref.current;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
const next = { type: "running", task };
|
|
164
|
+
set(next);
|
|
165
|
+
return next;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
complete(value) {
|
|
169
|
+
let next = { type: "complete", value };
|
|
170
|
+
set(next);
|
|
171
|
+
return next;
|
|
172
|
+
},
|
|
173
|
+
crash(error) {
|
|
174
|
+
let next = { type: "error", error };
|
|
175
|
+
set(next);
|
|
176
|
+
return next;
|
|
177
|
+
},
|
|
178
|
+
interrupt: interrupt,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
if (ref.current.type === "running") {
|
|
183
|
+
interrupt();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function postMessage(message) {
|
|
189
|
+
self.postMessage(message);
|
|
190
|
+
}
|
package/script/worker.d.ts
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import { type Operation } from "effection";
|
|
2
|
-
export interface WorkerResource<TSend, TRecv, TReturn> extends Operation<TReturn> {
|
|
3
|
-
send(data: TSend): Operation<TRecv>;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Object that represents messages the main thread
|
|
7
|
-
* sends to the worker. It provides function for
|
|
8
|
-
* handling messages.
|
|
9
|
-
*
|
|
10
|
-
* @template TSend - value main thread will send to the worker
|
|
11
|
-
* @template TRecv - value main thread will receive from the worker
|
|
12
|
-
*/
|
|
13
|
-
export interface WorkerMessages<TSend, TRecv> {
|
|
14
|
-
forEach(fn: (message: TSend) => Operation<TRecv>): Operation<void>;
|
|
15
|
-
}
|
|
16
2
|
/**
|
|
17
3
|
* Argument received by workerMain function
|
|
18
4
|
*
|
|
@@ -20,67 +6,9 @@ export interface WorkerMessages<TSend, TRecv> {
|
|
|
20
6
|
* @template TRecv - value main thread will receive from the worker
|
|
21
7
|
* @template TData - data passed from the main thread to the worker during initialization
|
|
22
8
|
*/
|
|
23
|
-
export interface
|
|
24
|
-
|
|
25
|
-
* Namespace that provides APIs for working with incoming messages
|
|
26
|
-
*/
|
|
27
|
-
messages: WorkerMessages<TSend, TRecv>;
|
|
28
|
-
/**
|
|
29
|
-
* Initial data received by the worker from the main thread used for initialization.
|
|
30
|
-
*/
|
|
31
|
-
data: TData;
|
|
9
|
+
export interface WorkerResource<TSend, TRecv, TReturn> extends Operation<TReturn> {
|
|
10
|
+
send(data: TSend): Operation<TRecv>;
|
|
32
11
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Entrypoint used in the worker that estaliblishes communication
|
|
35
|
-
* with the main thread. It can be used to return a value,
|
|
36
|
-
* respond to messages or both.
|
|
37
|
-
*
|
|
38
|
-
* @example Returning a value
|
|
39
|
-
* ```ts
|
|
40
|
-
* import { workerMain } from "../worker.ts";
|
|
41
|
-
*
|
|
42
|
-
* await workerMain(function* ({ data }) {
|
|
43
|
-
* return data;
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @example Responding to messages
|
|
48
|
-
* ```ts
|
|
49
|
-
* import { workerMain } from "../worker.ts";
|
|
50
|
-
*
|
|
51
|
-
* await workerMain(function* ({ messages }) {
|
|
52
|
-
* yield* messages.forEach(function* (message) {
|
|
53
|
-
* return message;
|
|
54
|
-
* });
|
|
55
|
-
* });
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @example Responding to messages and return a value
|
|
59
|
-
* ```ts
|
|
60
|
-
* import { workerMain } from "../worker.ts";
|
|
61
|
-
*
|
|
62
|
-
* await workerMain<number, number, number, number>(
|
|
63
|
-
* function* ({ messages, data: initial }) {
|
|
64
|
-
* let counter = initial;
|
|
65
|
-
*
|
|
66
|
-
* yield* messages.forEach(function* (message) {
|
|
67
|
-
* counter += message;
|
|
68
|
-
* return counter; // returns a value after each message
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* return counter; // returns the final value
|
|
72
|
-
* },
|
|
73
|
-
* );
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @template TSend - value main thread will send to the worker
|
|
77
|
-
* @template TRecv - value main thread will receive from the worker
|
|
78
|
-
* @template TReturn - worker operation return value
|
|
79
|
-
* @template TData - data passed from the main thread to the worker during initialization
|
|
80
|
-
* @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
|
|
81
|
-
* @returns {Promise<void>}
|
|
82
|
-
*/
|
|
83
|
-
export declare function workerMain<TSend, TRecv, TReturn, TData>(body: (options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>): Promise<void>;
|
|
84
12
|
/**
|
|
85
13
|
* Use on the main thread to create and exeecute a well behaved web worker.
|
|
86
14
|
*
|
package/script/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAKf,MAAM,WAAW,CAAC;AAInB;;;;;;GAMG;AACH,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CACnD,SAAQ,SAAS,CAAC,OAAO,CAAC;IAC1B,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EACpD,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,OAAO,CAAC,EAAE,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,GACzC,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAgElD"}
|
package/script/worker.js
CHANGED
|
@@ -1,114 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.workerMain = workerMain;
|
|
4
3
|
exports.useWorker = useWorker;
|
|
5
|
-
const mod_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
4
|
+
const mod_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/mod.js");
|
|
6
5
|
const effection_1 = require("effection");
|
|
7
|
-
|
|
8
|
-
* Entrypoint used in the worker that estaliblishes communication
|
|
9
|
-
* with the main thread. It can be used to return a value,
|
|
10
|
-
* respond to messages or both.
|
|
11
|
-
*
|
|
12
|
-
* @example Returning a value
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { workerMain } from "../worker.ts";
|
|
15
|
-
*
|
|
16
|
-
* await workerMain(function* ({ data }) {
|
|
17
|
-
* return data;
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @example Responding to messages
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { workerMain } from "../worker.ts";
|
|
24
|
-
*
|
|
25
|
-
* await workerMain(function* ({ messages }) {
|
|
26
|
-
* yield* messages.forEach(function* (message) {
|
|
27
|
-
* return message;
|
|
28
|
-
* });
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @example Responding to messages and return a value
|
|
33
|
-
* ```ts
|
|
34
|
-
* import { workerMain } from "../worker.ts";
|
|
35
|
-
*
|
|
36
|
-
* await workerMain<number, number, number, number>(
|
|
37
|
-
* function* ({ messages, data: initial }) {
|
|
38
|
-
* let counter = initial;
|
|
39
|
-
*
|
|
40
|
-
* yield* messages.forEach(function* (message) {
|
|
41
|
-
* counter += message;
|
|
42
|
-
* return counter; // returns a value after each message
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* return counter; // returns the final value
|
|
46
|
-
* },
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @template TSend - value main thread will send to the worker
|
|
51
|
-
* @template TRecv - value main thread will receive from the worker
|
|
52
|
-
* @template TReturn - worker operation return value
|
|
53
|
-
* @template TData - data passed from the main thread to the worker during initialization
|
|
54
|
-
* @param {(options: WorkerMainOptions<TSend, TRecv, TData>) => Operation<TReturn>} body
|
|
55
|
-
* @returns {Promise<void>}
|
|
56
|
-
*/
|
|
57
|
-
async function workerMain(body) {
|
|
58
|
-
await (0, effection_1.main)(function* () {
|
|
59
|
-
let sent = (0, effection_1.createSignal)();
|
|
60
|
-
let controls = yield* (0, effection_1.on)(self, "message");
|
|
61
|
-
let outcome = (0, effection_1.withResolvers)();
|
|
62
|
-
self.postMessage({ type: "open" });
|
|
63
|
-
let result = yield* (0, effection_1.scoped)(function* () {
|
|
64
|
-
yield* (0, effection_1.spawn)(function* () {
|
|
65
|
-
let next = yield* controls.next();
|
|
66
|
-
while (true) {
|
|
67
|
-
let control = next.value.data;
|
|
68
|
-
if (control.type === "init") {
|
|
69
|
-
yield* (0, effection_1.spawn)(function* () {
|
|
70
|
-
try {
|
|
71
|
-
let value = yield* body({
|
|
72
|
-
data: control.data,
|
|
73
|
-
messages: {
|
|
74
|
-
*forEach(fn) {
|
|
75
|
-
for (let { value, response } of yield* (0, effection_1.each)(sent)) {
|
|
76
|
-
yield* (0, effection_1.spawn)(function* () {
|
|
77
|
-
try {
|
|
78
|
-
let result = yield* fn(value);
|
|
79
|
-
response.postMessage((0, effection_1.Ok)(result));
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
response.postMessage((0, effection_1.Err)(error));
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
yield* effection_1.each.next();
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
outcome.resolve((0, effection_1.Ok)(value));
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
outcome.resolve((0, effection_1.Err)(error));
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
else if (control.type === "send") {
|
|
98
|
-
let { value, response } = control;
|
|
99
|
-
sent.send({ value, response });
|
|
100
|
-
}
|
|
101
|
-
else if (control.type === "close") {
|
|
102
|
-
outcome.resolve((0, effection_1.Err)(new Error(`worker terminated`)));
|
|
103
|
-
}
|
|
104
|
-
next = yield* controls.next();
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
return yield* outcome.operation;
|
|
108
|
-
});
|
|
109
|
-
self.postMessage({ type: "close", result });
|
|
110
|
-
});
|
|
111
|
-
}
|
|
6
|
+
const message_channel_js_1 = require("./message-channel.js");
|
|
112
7
|
/**
|
|
113
8
|
* Use on the main thread to create and exeecute a well behaved web worker.
|
|
114
9
|
*
|
|
@@ -188,7 +83,7 @@ function useWorker(url, options) {
|
|
|
188
83
|
});
|
|
189
84
|
yield* provide({
|
|
190
85
|
*send(value) {
|
|
191
|
-
let channel = yield* useMessageChannel();
|
|
86
|
+
let channel = yield* (0, message_channel_js_1.useMessageChannel)();
|
|
192
87
|
worker.postMessage({
|
|
193
88
|
type: "send",
|
|
194
89
|
value,
|
|
@@ -214,24 +109,12 @@ function useWorker(url, options) {
|
|
|
214
109
|
}
|
|
215
110
|
});
|
|
216
111
|
}
|
|
217
|
-
function useMessageChannel() {
|
|
218
|
-
return (0, effection_1.resource)(function* (provide) {
|
|
219
|
-
let channel = new MessageChannel();
|
|
220
|
-
try {
|
|
221
|
-
yield* provide(channel);
|
|
222
|
-
}
|
|
223
|
-
finally {
|
|
224
|
-
channel.port1.close();
|
|
225
|
-
channel.port2.close();
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
112
|
function settled(operation) {
|
|
230
113
|
return {
|
|
231
114
|
*[Symbol.iterator]() {
|
|
232
115
|
try {
|
|
233
116
|
yield* operation;
|
|
234
|
-
return (0, effection_1.Ok)();
|
|
117
|
+
return (0, effection_1.Ok)(void 0);
|
|
235
118
|
}
|
|
236
119
|
catch (error) {
|
|
237
120
|
return (0, effection_1.Err)(error);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Ways that lines in a diff can be different. */
|
|
2
|
-
export type DiffType = "removed" | "common" | "added";
|
|
3
|
-
/**
|
|
4
|
-
* Represents the result of a diff operation.
|
|
5
|
-
*
|
|
6
|
-
* @typeParam T The type of the value in the diff result.
|
|
7
|
-
*/
|
|
8
|
-
export interface DiffResult<T> {
|
|
9
|
-
/** The type of the diff. */
|
|
10
|
-
type: DiffType;
|
|
11
|
-
/** The value of the diff. */
|
|
12
|
-
value: T;
|
|
13
|
-
/** The details of the diff. */
|
|
14
|
-
details?: DiffResult<T>[];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Ways that lines in a diff can be different. */
|
|
2
|
-
export type DiffType = "removed" | "common" | "added";
|
|
3
|
-
/**
|
|
4
|
-
* Represents the result of a diff operation.
|
|
5
|
-
*
|
|
6
|
-
* @typeParam T The type of the value in the diff result.
|
|
7
|
-
*/
|
|
8
|
-
export interface DiffResult<T> {
|
|
9
|
-
/** The type of the diff. */
|
|
10
|
-
type: DiffType;
|
|
11
|
-
/** The value of the diff. */
|
|
12
|
-
value: T;
|
|
13
|
-
/** The details of the diff. */
|
|
14
|
-
details?: DiffResult<T>[];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|