@usecontextlayer/ctxb 0.5.29 → 0.6.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/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3d9a9038-da39-5c09-a71e-36219d48dd38")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bc8c980a-3e72-5428-8574-aac03c500159")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import * as Sentry from "@sentry/node";
6
6
  import { mkdir, writeFile } from "node:fs/promises";
@@ -4469,7 +4469,7 @@ function normalizedKey(event) {
4469
4469
 
4470
4470
  //#endregion
4471
4471
  //#region package.json
4472
- var version = "0.5.29";
4472
+ var version = "0.6.0";
4473
4473
 
4474
4474
  //#endregion
4475
4475
  //#region sentry.ts
@@ -19637,7 +19637,7 @@ async function runDagsterCommand(tool, passthroughArgsInput, paths) {
19637
19637
  }
19638
19638
 
19639
19639
  //#endregion
19640
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/query.js
19640
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/query.js
19641
19641
  const originCache = /* @__PURE__ */ new Map();
19642
19642
  const originStackCache = /* @__PURE__ */ new Map();
19643
19643
  const originError = Symbol("OriginError");
@@ -19773,7 +19773,7 @@ function cachedError(xs) {
19773
19773
  }
19774
19774
 
19775
19775
  //#endregion
19776
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/errors.js
19776
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/errors.js
19777
19777
  var PostgresError = class extends Error {
19778
19778
  constructor(x) {
19779
19779
  super(x.message);
@@ -19818,7 +19818,7 @@ function notSupported(x) {
19818
19818
  }
19819
19819
 
19820
19820
  //#endregion
19821
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/types.js
19821
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/types.js
19822
19822
  const types = {
19823
19823
  string: {
19824
19824
  to: 25,
@@ -20098,7 +20098,7 @@ const kebab = { ...toKebab };
20098
20098
  kebab.column.to = fromKebab;
20099
20099
 
20100
20100
  //#endregion
20101
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/result.js
20101
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/result.js
20102
20102
  var Result = class extends Array {
20103
20103
  constructor() {
20104
20104
  super();
@@ -20131,7 +20131,7 @@ var Result = class extends Array {
20131
20131
  };
20132
20132
 
20133
20133
  //#endregion
20134
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/queue.js
20134
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/queue.js
20135
20135
  var queue_default = Queue;
20136
20136
  function Queue(initial = []) {
20137
20137
  let xs = initial.slice();
@@ -20157,7 +20157,7 @@ function Queue(initial = []) {
20157
20157
  }
20158
20158
 
20159
20159
  //#endregion
20160
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/bytes.js
20160
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/bytes.js
20161
20161
  const size = 256;
20162
20162
  let buffer = Buffer.allocUnsafe(size);
20163
20163
  const messages = "BCcDdEFfHPpQSX".split("").reduce((acc, x) => {
@@ -20230,7 +20230,7 @@ function reset() {
20230
20230
  }
20231
20231
 
20232
20232
  //#endregion
20233
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/connection.js
20233
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/connection.js
20234
20234
  var connection_default = Connection;
20235
20235
  let uid = 1;
20236
20236
  const Sync = b().S().end();
@@ -20367,6 +20367,12 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
20367
20367
  return true;
20368
20368
  }
20369
20369
  function nextWrite(fn) {
20370
+ if (socket === null) {
20371
+ nextWriteTimer !== null && clearImmediate(nextWriteTimer);
20372
+ chunk = nextWriteTimer = null;
20373
+ fn && fn(Errors.connection("CONNECTION_CLOSED", options, socket));
20374
+ return false;
20375
+ }
20370
20376
  const x = socket.write(chunk, fn);
20371
20377
  nextWriteTimer !== null && clearImmediate(nextWriteTimer);
20372
20378
  chunk = nextWriteTimer = null;
@@ -20463,6 +20469,7 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
20463
20469
  }
20464
20470
  function errored(err) {
20465
20471
  stream && (stream.destroy(err), stream = null);
20472
+ final && (final(err), final = null);
20466
20473
  query && queryError(query, err);
20467
20474
  initial && (queryError(initial, err), initial = null);
20468
20475
  }
@@ -20722,6 +20729,8 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
20722
20729
  if (query) {
20723
20730
  (query.cursorFn || query.describeFirst) && write(Sync);
20724
20731
  errorResponse = Errors.postgres(parseError(x));
20732
+ stream && (stream.destroy(errorResponse), stream = null);
20733
+ final && (final(errorResponse), final = null);
20725
20734
  } else errored(Errors.postgres(parseError(x)));
20726
20735
  }
20727
20736
  function retry(q, error) {
@@ -20907,7 +20916,7 @@ function timer(fn, seconds) {
20907
20916
  }
20908
20917
 
20909
20918
  //#endregion
20910
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/subscribe.js
20919
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/subscribe.js
20911
20920
  const noop = () => {};
20912
20921
  function Subscribe(postgres, options) {
20913
20922
  const subscribers = /* @__PURE__ */ new Map(), slot = "postgresjs_" + Math.random().toString(36).slice(2), state = {};
@@ -21114,7 +21123,7 @@ function parseEvent(x) {
21114
21123
  }
21115
21124
 
21116
21125
  //#endregion
21117
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/large.js
21126
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/large.js
21118
21127
  function largeObject(sql, oid, mode = 393216) {
21119
21128
  return new Promise(async (resolve, reject) => {
21120
21129
  await sql.begin(async (sql) => {
@@ -21172,7 +21181,7 @@ function largeObject(sql, oid, mode = 393216) {
21172
21181
  }
21173
21182
 
21174
21183
  //#endregion
21175
- //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/index.js
21184
+ //#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/index.js
21176
21185
  Object.assign(Postgres, {
21177
21186
  PostgresError,
21178
21187
  toPascal,
@@ -28854,4 +28863,4 @@ runCli().catch((error) => {
28854
28863
  //#endregion
28855
28864
  export { createProgram, runCli };
28856
28865
  //# sourceMappingURL=cli.mjs.map
28857
- //# debugId=3d9a9038-da39-5c09-a71e-36219d48dd38
28866
+ //# debugId=bc8c980a-3e72-5428-8574-aac03c500159