@btravstack/testing 0.8.0 → 0.10.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/dist/index.cjs CHANGED
@@ -130,10 +130,13 @@ const overridden = (module, overrides) => (0, _btravstack_di.Module)("Overridden
130
130
  //#region src/tapped.ts
131
131
  const tapped = (module, ports) => {
132
132
  let services;
133
- const tap = (0, _btravstack_di.Provider)(Tap)(Object.fromEntries(ports.map((port, index) => [index, port])), { sync: (built) => {
134
- services = ports.map((_, index) => built[index]);
135
- return {};
136
- } });
133
+ const tap = (0, _btravstack_di.Provider)(Tap)({
134
+ inject: Object.fromEntries(ports.map((port, index) => [index, port])),
135
+ sync: (built) => {
136
+ services = ports.map((_, index) => built[index]);
137
+ return {};
138
+ }
139
+ });
137
140
  return {
138
141
  module: (0, _btravstack_di.Module)("Tapped")({
139
142
  imports: [module],
@@ -174,7 +177,10 @@ const testRuntime = (name = "test") => {
174
177
  const runtime = {
175
178
  name,
176
179
  module: (0, _btravstack_di.Module)("TestRuntime")({
177
- provides: [(0, _btravstack_di.Provider)(TestRuntimePort)({ sync: () => runtime })],
180
+ provides: [(0, _btravstack_di.Provider)(TestRuntimePort)({
181
+ inject: {},
182
+ sync: () => runtime
183
+ })],
178
184
  exports: [TestRuntimePort]
179
185
  }),
180
186
  resolves: [],
package/dist/index.mjs CHANGED
@@ -129,10 +129,13 @@ const overridden = (module, overrides) => Module("Overridden")({
129
129
  //#region src/tapped.ts
130
130
  const tapped = (module, ports) => {
131
131
  let services;
132
- const tap = Provider(Tap)(Object.fromEntries(ports.map((port, index) => [index, port])), { sync: (built) => {
133
- services = ports.map((_, index) => built[index]);
134
- return {};
135
- } });
132
+ const tap = Provider(Tap)({
133
+ inject: Object.fromEntries(ports.map((port, index) => [index, port])),
134
+ sync: (built) => {
135
+ services = ports.map((_, index) => built[index]);
136
+ return {};
137
+ }
138
+ });
136
139
  return {
137
140
  module: Module("Tapped")({
138
141
  imports: [module],
@@ -173,7 +176,10 @@ const testRuntime = (name = "test") => {
173
176
  const runtime = {
174
177
  name,
175
178
  module: Module("TestRuntime")({
176
- provides: [Provider(TestRuntimePort)({ sync: () => runtime })],
179
+ provides: [Provider(TestRuntimePort)({
180
+ inject: {},
181
+ sync: () => runtime
182
+ })],
177
183
  exports: [TestRuntimePort]
178
184
  }),
179
185
  resolves: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btravstack/testing",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Test the applications @btravstack/core boots: an in-memory runtime, a fake clock, a boot fixture that stops what it started, and a tap into a running graph",
5
5
  "keywords": [
6
6
  "dependency-injection",
@@ -52,15 +52,15 @@
52
52
  "typescript": "7.0.2",
53
53
  "unthrown": "5.7.0",
54
54
  "vitest": "4.1.11",
55
- "@btravstack/config": "0.8.0",
56
- "@btravstack/di": "0.8.0",
57
- "@btravstack/core": "0.8.0"
55
+ "@btravstack/config": "0.10.0",
56
+ "@btravstack/core": "0.10.0",
57
+ "@btravstack/di": "0.10.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "unthrown": "^5.0.0",
61
- "@btravstack/config": "^0.8.0",
62
- "@btravstack/core": "^0.8.0",
63
- "@btravstack/di": "^0.8.0"
61
+ "@btravstack/config": "^0.10.0",
62
+ "@btravstack/core": "^0.10.0",
63
+ "@btravstack/di": "^0.10.0"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">=22"