@north-light/api 0.3.726 → 0.3.727

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.
@@ -160,7 +160,7 @@ class Handle {
160
160
  async run(config) {
161
161
  const transaction = transactionContext.getStore();
162
162
  try {
163
- if (transaction !== undefined && transaction.open && transaction.handle === this) {
163
+ if (transaction !== undefined && transaction.open && transaction.handle.url === this.url) {
164
164
  const began = performance.now();
165
165
  try {
166
166
  return await transaction.client.query(config);
@@ -212,7 +212,7 @@ function bindable(value) {
212
212
  }
213
213
  function ownsTransaction(handle) {
214
214
  const owned = transactionContext.getStore();
215
- return owned !== undefined && owned.open && owned.handle === handle;
215
+ return owned !== undefined && owned.open && owned.handle.url === handle.url;
216
216
  }
217
217
  // ---------------------------------------------------------------------------
218
218
  // Schema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/api",
3
- "version": "0.3.726",
3
+ "version": "0.3.727",
4
4
  "description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/api/index.js",