rebuildjs 0.70.2 → 0.70.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.70.2",
3
+ "version": "0.70.4",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "ctx-core": "^7.2.2",
58
- "elysia": "^1.0.13",
58
+ "elysia": "^1.0.14",
59
59
  "esbuild": "^0.20.2",
60
60
  "fdir": "^6.1.1",
61
61
  "picomatch": "^4.0.2"
@@ -13,6 +13,7 @@ import {
13
13
  off,
14
14
  promise__cancel,
15
15
  promise__cancel__throw,
16
+ ref__bind,
16
17
  rmemo__wait,
17
18
  run
18
19
  } from 'ctx-core/rmemo'
@@ -395,7 +396,7 @@ export function rebuildjs_plugin_() {
395
396
  })
396
397
  }
397
398
  // Prevent GC
398
- setup.rebuildjs_plugin__postprocess$ = rebuildjs_plugin__postprocess$_()
399
+ ref__bind(setup, rebuildjs_plugin__postprocess$_())
399
400
  return setup
400
401
  /**
401
402
  *
@@ -507,13 +508,12 @@ export function rebuildjs_plugin_() {
507
508
  }
508
509
  async function cmd(promise) {
509
510
  if (cancel_()) promise__cancel__throw(promise)
510
- promise.rebuildjs_cancel$ = run(memo_(rebuildjs_cancel$=>{
511
+ ref__bind(promise, calling(memo_(rebuildjs_cancel$=>{
511
512
  if (cancel_()) {
512
513
  promise__cancel(promise)
513
514
  off(rebuildjs_cancel$)
514
515
  }
515
- return rebuildjs_cancel$
516
- }))
516
+ })))
517
517
  const ret = await promise
518
518
  if (cancel_()) promise__cancel__throw(promise)
519
519
  return ret