@usecontextlayer/ctxe 0.5.30 → 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 +22 -13
- package/dist/cli.mjs.map +1 -1
- package/package.json +6 -6
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]="
|
|
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]="0af3a69a-2f58-5008-ac97-72897804bc5d")}catch(e){}}();
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
import { lstat, mkdir, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -4362,7 +4362,7 @@ function normalizedKey(event) {
|
|
|
4362
4362
|
|
|
4363
4363
|
//#endregion
|
|
4364
4364
|
//#region package.json
|
|
4365
|
-
var version$1 = "0.
|
|
4365
|
+
var version$1 = "0.6.0";
|
|
4366
4366
|
|
|
4367
4367
|
//#endregion
|
|
4368
4368
|
//#region sentry.ts
|
|
@@ -64889,7 +64889,7 @@ var require_proper_lockfile = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
64889
64889
|
}));
|
|
64890
64890
|
|
|
64891
64891
|
//#endregion
|
|
64892
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
64892
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/query.js
|
|
64893
64893
|
var import__2020 = require__2020();
|
|
64894
64894
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
64895
64895
|
var import_proper_lockfile = /* @__PURE__ */ __toESM(require_proper_lockfile(), 1);
|
|
@@ -65028,7 +65028,7 @@ function cachedError(xs) {
|
|
|
65028
65028
|
}
|
|
65029
65029
|
|
|
65030
65030
|
//#endregion
|
|
65031
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65031
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/errors.js
|
|
65032
65032
|
var PostgresError = class extends Error {
|
|
65033
65033
|
constructor(x) {
|
|
65034
65034
|
super(x.message);
|
|
@@ -65073,7 +65073,7 @@ function notSupported(x) {
|
|
|
65073
65073
|
}
|
|
65074
65074
|
|
|
65075
65075
|
//#endregion
|
|
65076
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65076
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/types.js
|
|
65077
65077
|
const types = {
|
|
65078
65078
|
string: {
|
|
65079
65079
|
to: 25,
|
|
@@ -65353,7 +65353,7 @@ const kebab = { ...toKebab };
|
|
|
65353
65353
|
kebab.column.to = fromKebab;
|
|
65354
65354
|
|
|
65355
65355
|
//#endregion
|
|
65356
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65356
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/result.js
|
|
65357
65357
|
var Result = class extends Array {
|
|
65358
65358
|
constructor() {
|
|
65359
65359
|
super();
|
|
@@ -65386,7 +65386,7 @@ var Result = class extends Array {
|
|
|
65386
65386
|
};
|
|
65387
65387
|
|
|
65388
65388
|
//#endregion
|
|
65389
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65389
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/queue.js
|
|
65390
65390
|
var queue_default = Queue;
|
|
65391
65391
|
function Queue(initial = []) {
|
|
65392
65392
|
let xs = initial.slice();
|
|
@@ -65412,7 +65412,7 @@ function Queue(initial = []) {
|
|
|
65412
65412
|
}
|
|
65413
65413
|
|
|
65414
65414
|
//#endregion
|
|
65415
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65415
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/bytes.js
|
|
65416
65416
|
const size = 256;
|
|
65417
65417
|
let buffer = Buffer.allocUnsafe(size);
|
|
65418
65418
|
const messages = "BCcDdEFfHPpQSX".split("").reduce((acc, x) => {
|
|
@@ -65485,7 +65485,7 @@ function reset() {
|
|
|
65485
65485
|
}
|
|
65486
65486
|
|
|
65487
65487
|
//#endregion
|
|
65488
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
65488
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/connection.js
|
|
65489
65489
|
var connection_default = Connection;
|
|
65490
65490
|
let uid = 1;
|
|
65491
65491
|
const Sync = b().S().end();
|
|
@@ -65622,6 +65622,12 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
|
|
|
65622
65622
|
return true;
|
|
65623
65623
|
}
|
|
65624
65624
|
function nextWrite(fn) {
|
|
65625
|
+
if (socket === null) {
|
|
65626
|
+
nextWriteTimer !== null && clearImmediate(nextWriteTimer);
|
|
65627
|
+
chunk = nextWriteTimer = null;
|
|
65628
|
+
fn && fn(Errors.connection("CONNECTION_CLOSED", options, socket));
|
|
65629
|
+
return false;
|
|
65630
|
+
}
|
|
65625
65631
|
const x = socket.write(chunk, fn);
|
|
65626
65632
|
nextWriteTimer !== null && clearImmediate(nextWriteTimer);
|
|
65627
65633
|
chunk = nextWriteTimer = null;
|
|
@@ -65718,6 +65724,7 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
|
|
|
65718
65724
|
}
|
|
65719
65725
|
function errored(err) {
|
|
65720
65726
|
stream && (stream.destroy(err), stream = null);
|
|
65727
|
+
final && (final(err), final = null);
|
|
65721
65728
|
query && queryError(query, err);
|
|
65722
65729
|
initial && (queryError(initial, err), initial = null);
|
|
65723
65730
|
}
|
|
@@ -65977,6 +65984,8 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
|
|
|
65977
65984
|
if (query) {
|
|
65978
65985
|
(query.cursorFn || query.describeFirst) && write(Sync);
|
|
65979
65986
|
errorResponse = Errors.postgres(parseError(x));
|
|
65987
|
+
stream && (stream.destroy(errorResponse), stream = null);
|
|
65988
|
+
final && (final(errorResponse), final = null);
|
|
65980
65989
|
} else errored(Errors.postgres(parseError(x)));
|
|
65981
65990
|
}
|
|
65982
65991
|
function retry(q, error) {
|
|
@@ -66162,7 +66171,7 @@ function timer(fn, seconds) {
|
|
|
66162
66171
|
}
|
|
66163
66172
|
|
|
66164
66173
|
//#endregion
|
|
66165
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
66174
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/subscribe.js
|
|
66166
66175
|
const noop = () => {};
|
|
66167
66176
|
function Subscribe(postgres, options) {
|
|
66168
66177
|
const subscribers = /* @__PURE__ */ new Map(), slot = "postgresjs_" + Math.random().toString(36).slice(2), state = {};
|
|
@@ -66369,7 +66378,7 @@ function parseEvent(x) {
|
|
|
66369
66378
|
}
|
|
66370
66379
|
|
|
66371
66380
|
//#endregion
|
|
66372
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
66381
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/large.js
|
|
66373
66382
|
function largeObject(sql, oid, mode = 393216) {
|
|
66374
66383
|
return new Promise(async (resolve, reject) => {
|
|
66375
66384
|
await sql.begin(async (sql) => {
|
|
@@ -66427,7 +66436,7 @@ function largeObject(sql, oid, mode = 393216) {
|
|
|
66427
66436
|
}
|
|
66428
66437
|
|
|
66429
66438
|
//#endregion
|
|
66430
|
-
//#region ../../node_modules/.pnpm/postgres@3.4.
|
|
66439
|
+
//#region ../../node_modules/.pnpm/postgres@3.4.9_patch_hash=3c6ad14249311b1009d0b5dc63a6223155b601ddf5a35abede25e8e10d200935/node_modules/postgres/src/index.js
|
|
66431
66440
|
Object.assign(Postgres, {
|
|
66432
66441
|
PostgresError,
|
|
66433
66442
|
toPascal,
|
|
@@ -75684,4 +75693,4 @@ runCli().catch((error) => {
|
|
|
75684
75693
|
//#endregion
|
|
75685
75694
|
export { createProgram, resolveRepoContext, resolveRuntimePaths, runCli };
|
|
75686
75695
|
//# sourceMappingURL=cli.mjs.map
|
|
75687
|
-
//# debugId=
|
|
75696
|
+
//# debugId=0af3a69a-2f58-5008-ac97-72897804bc5d
|