@deslop/deploy 0.1.1233 → 0.1.1234
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/server.js +38 -3
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -11248,6 +11248,11 @@ const annotateCurrentSpan$1 = (...args) => withFiber$1((fiber) => {
|
|
|
11248
11248
|
return void_$3;
|
|
11249
11249
|
});
|
|
11250
11250
|
/** @internal */
|
|
11251
|
+
const currentSpan$1 = /*#__PURE__*/ withFiber$1((fiber) => {
|
|
11252
|
+
const span = fiber.currentSpanLocal;
|
|
11253
|
+
return span ? succeed$9(span) : fail$10(new NoSuchElementError());
|
|
11254
|
+
});
|
|
11255
|
+
/** @internal */
|
|
11251
11256
|
const ClockRef = /*#__PURE__*/ Reference("effect/Clock", { defaultValue: () => new ClockImpl() });
|
|
11252
11257
|
const MAX_TIMER_MILLIS = 2 ** 31 - 1;
|
|
11253
11258
|
var ClockImpl = class {
|
|
@@ -20519,6 +20524,33 @@ const withTracerEnabled = withTracerEnabled$1;
|
|
|
20519
20524
|
*/
|
|
20520
20525
|
const annotateCurrentSpan = annotateCurrentSpan$1;
|
|
20521
20526
|
/**
|
|
20527
|
+
* Returns the currently active local tracing span.
|
|
20528
|
+
*
|
|
20529
|
+
* **Details**
|
|
20530
|
+
*
|
|
20531
|
+
* The effect fails with `NoSuchElementError` when there is no active local
|
|
20532
|
+
* `Span`.
|
|
20533
|
+
*
|
|
20534
|
+
* **Example** (Reading the current span)
|
|
20535
|
+
*
|
|
20536
|
+
* ```ts import.meta.vitest
|
|
20537
|
+
* import { Effect } from "effect"
|
|
20538
|
+
*
|
|
20539
|
+
* const program = Effect.gen(function*() {
|
|
20540
|
+
* const span = yield* Effect.currentSpan
|
|
20541
|
+
* return span.name
|
|
20542
|
+
* })
|
|
20543
|
+
*
|
|
20544
|
+
* const traced = Effect.withSpan(program, "my-span")
|
|
20545
|
+
* Effect.runSync(traced) // => "my-span"
|
|
20546
|
+
* ```
|
|
20547
|
+
*
|
|
20548
|
+
* @stability stable
|
|
20549
|
+
* @category tracing
|
|
20550
|
+
* @since 2.0.0
|
|
20551
|
+
*/
|
|
20552
|
+
const currentSpan = currentSpan$1;
|
|
20553
|
+
/**
|
|
20522
20554
|
* Create a new span for tracing, and automatically close it when the Scope
|
|
20523
20555
|
* finalizes.
|
|
20524
20556
|
*
|
|
@@ -87874,13 +87906,16 @@ function portItems(text, worker, fs, http) {
|
|
|
87874
87906
|
})), orElseSucceed(() => match[1] ?? ""));
|
|
87875
87907
|
})
|
|
87876
87908
|
});
|
|
87877
|
-
const response = yield* match$1(fields[0] === "tcp" && port >= 1024 && isSome(match$3(/^(?:127\.0\.0\.1|0\.0\.0\.0):/u)(address)) && isNone(match$3(/^(?:postgres|redis|ssh|cloudflared|tailscaled)$/u)(process)), {
|
|
87909
|
+
const response = yield* match$1(fields[0] === "tcp" && port >= 1024 && isSome(match$3(/^(?:127\.0\.0\.1|0\.0\.0\.0):/u)(address)) && isNone(match$3(/^(?:postgres|redis|ssh|cloudflared|tailscaled|caddy)$/u)(process)), {
|
|
87878
87910
|
onFalse: () => succeed$5(none()),
|
|
87879
87911
|
onTrue: fnUntraced(function* () {
|
|
87880
|
-
return yield* pipe(http.head(`http://127.0.0.1:${port}
|
|
87912
|
+
return yield* pipe(option$1(currentSpan), flatMap$2((parent) => http.head(`http://127.0.0.1:${port}/`, { headers: match$8(parent, {
|
|
87913
|
+
onNone: () => ({}),
|
|
87914
|
+
onSome: toHeaders
|
|
87915
|
+
}) })), map$5((value) => ({
|
|
87881
87916
|
http: true,
|
|
87882
87917
|
ui: value.status >= 200 && value.status < 400 && includes("text/html")(value.headers["content-type"] ?? "")
|
|
87883
|
-
})), provideService(RequestInit, { redirect: "manual" }), timeout("700 millis"), option$1);
|
|
87918
|
+
})), provideService(RequestInit, { redirect: "manual" }), provideService(TracerDisabledWhen$1, () => true), timeout("700 millis"), option$1);
|
|
87884
87919
|
})
|
|
87885
87920
|
});
|
|
87886
87921
|
return InventoryItem.make({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/deploy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1234",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=26"
|
|
39
39
|
},
|
|
40
|
-
"fingerprint": "
|
|
40
|
+
"fingerprint": "17b9af685762ae2c73d3ae7c9e161374e36e081948e8df0de010aec2c58f1293"
|
|
41
41
|
}
|