sloppycode 0.2.155 → 0.2.157

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.
Binary file
Binary file
package/bundle/index.js CHANGED
@@ -62710,7 +62710,7 @@ var init_logging = __esm(async () => {
62710
62710
  });
62711
62711
 
62712
62712
  // ../core/src/installation/version.ts
62713
- var InstallationVersion = "0.2.155", InstallationChannel = "latest", InstallationLocal;
62713
+ var InstallationVersion = "0.2.157", InstallationChannel = "latest", InstallationLocal;
62714
62714
  var init_version = __esm(() => {
62715
62715
  InstallationLocal = InstallationChannel === "local";
62716
62716
  });
@@ -101285,7 +101285,7 @@ function applyOnly(db, input2) {
101285
101285
  if (completed.size === 0) {
101286
101286
  if (yield* db.get(sql`SELECT name FROM sqlite_master WHERE type = 'table' AND name = ${"__drizzle_migrations"}`)) {
101287
101287
  const columns = yield* db.all(sql`PRAGMA table_info(${sql.identifier("__drizzle_migrations")})`);
101288
- const idCol = columns.find((c) => c.name === "hash") ? "hash" : columns.find((c) => c.name === "name") ? "name" : null;
101288
+ const idCol = columns.find((c) => c.name === "name") ? "name" : columns.find((c) => c.name === "hash") ? "hash" : null;
101289
101289
  if (idCol) {
101290
101290
  yield* db.run(sql`
101291
101291
  INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed)
@@ -101300,10 +101300,8 @@ function applyOnly(db, input2) {
101300
101300
  for (const migration of input2) {
101301
101301
  if (completed.has(migration.id))
101302
101302
  continue;
101303
- yield* db.transaction((tx2) => exports_Effect.gen(function* () {
101304
- yield* migration.up(tx2).pipe(exports_Effect.catch(() => exports_Effect.void));
101305
- yield* tx2.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${migration.id}, ${Date.now()})`);
101306
- }));
101303
+ yield* migration.up(db).pipe(exports_Effect.catchCause(() => exports_Effect.void));
101304
+ yield* db.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${migration.id}, ${Date.now()})`);
101307
101305
  }
101308
101306
  });
101309
101307
  }
package/bundle/worker.js CHANGED
@@ -84409,7 +84409,7 @@ var init_logging = __esm(async () => {
84409
84409
  });
84410
84410
 
84411
84411
  // ../core/src/installation/version.ts
84412
- var InstallationVersion = "0.2.155", InstallationChannel = "latest", InstallationLocal;
84412
+ var InstallationVersion = "0.2.157", InstallationChannel = "latest", InstallationLocal;
84413
84413
  var init_version = __esm(() => {
84414
84414
  InstallationLocal = InstallationChannel === "local";
84415
84415
  });
@@ -106114,7 +106114,7 @@ function applyOnly(db, input) {
106114
106114
  if (completed.size === 0) {
106115
106115
  if (yield* db.get(sql`SELECT name FROM sqlite_master WHERE type = 'table' AND name = ${"__drizzle_migrations"}`)) {
106116
106116
  const columns = yield* db.all(sql`PRAGMA table_info(${sql.identifier("__drizzle_migrations")})`);
106117
- const idCol = columns.find((c) => c.name === "hash") ? "hash" : columns.find((c) => c.name === "name") ? "name" : null;
106117
+ const idCol = columns.find((c) => c.name === "name") ? "name" : columns.find((c) => c.name === "hash") ? "hash" : null;
106118
106118
  if (idCol) {
106119
106119
  yield* db.run(sql`
106120
106120
  INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed)
@@ -106129,10 +106129,8 @@ function applyOnly(db, input) {
106129
106129
  for (const migration of input) {
106130
106130
  if (completed.has(migration.id))
106131
106131
  continue;
106132
- yield* db.transaction((tx2) => exports_Effect.gen(function* () {
106133
- yield* migration.up(tx2).pipe(exports_Effect.catch(() => exports_Effect.void));
106134
- yield* tx2.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${migration.id}, ${Date.now()})`);
106135
- }));
106132
+ yield* migration.up(db).pipe(exports_Effect.catchCause(() => exports_Effect.void));
106133
+ yield* db.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${migration.id}, ${Date.now()})`);
106136
106134
  }
106137
106135
  });
106138
106136
  }
package/package.json CHANGED
@@ -37,20 +37,20 @@
37
37
  "scripts": {
38
38
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
39
39
  },
40
- "version": "0.2.155",
40
+ "version": "0.2.157",
41
41
  "license": "MIT",
42
42
  "optionalDependencies": {
43
- "slopcode-bin-linux-arm64": "0.2.155",
44
- "slopcode-bin-linux-x64-baseline-musl": "0.2.155",
45
- "slopcode-bin-darwin-x64-baseline": "0.2.155",
46
- "slopcode-bin-linux-x64-musl": "0.2.155",
47
- "slopcode-bin-linux-x64": "0.2.155",
48
- "slopcode-bin-darwin-x64": "0.2.155",
49
- "slopcode-bin-linux-arm64-musl": "0.2.155",
50
- "slopcode-bin-darwin-arm64": "0.2.155",
51
- "slopcode-bin-windows-x64": "0.2.155",
52
- "slopcode-bin-windows-x64-baseline": "0.2.155",
53
- "slopcode-bin-linux-x64-baseline": "0.2.155",
43
+ "slopcode-bin-linux-arm64": "0.2.157",
44
+ "slopcode-bin-linux-x64-baseline-musl": "0.2.157",
45
+ "slopcode-bin-darwin-x64-baseline": "0.2.157",
46
+ "slopcode-bin-linux-x64-musl": "0.2.157",
47
+ "slopcode-bin-linux-x64": "0.2.157",
48
+ "slopcode-bin-darwin-x64": "0.2.157",
49
+ "slopcode-bin-linux-arm64-musl": "0.2.157",
50
+ "slopcode-bin-darwin-arm64": "0.2.157",
51
+ "slopcode-bin-windows-x64": "0.2.157",
52
+ "slopcode-bin-windows-x64-baseline": "0.2.157",
53
+ "slopcode-bin-linux-x64-baseline": "0.2.157",
54
54
  "@oven/bun-linux-aarch64-android": "1.3.14",
55
55
  "@oven/bun-linux-x64-android": "1.3.14"
56
56
  }