sloppycode 0.2.152 → 0.2.153

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.152", InstallationChannel = "latest", InstallationLocal;
62713
+ var InstallationVersion = "0.2.153", InstallationChannel = "latest", InstallationLocal;
62714
62714
  var init_version = __esm(() => {
62715
62715
  InstallationLocal = InstallationChannel === "local";
62716
62716
  });
@@ -101295,6 +101295,18 @@ function applyOnly(db, input2) {
101295
101295
  `);
101296
101296
  }
101297
101297
  completed = new Set((yield* db.all(sql`SELECT id FROM ${sql.identifier("migration")}`)).map((row) => row.id));
101298
+ if (completed.size === 0) {
101299
+ const count5 = yield* db.get(sql`SELECT COUNT(*) as c FROM ${sql.identifier("__drizzle_migrations")}`);
101300
+ const n7 = count5?.c ?? 0;
101301
+ if (n7 > 0) {
101302
+ yield* db.transaction((tx2) => exports_Effect.gen(function* () {
101303
+ for (let i2 = 0;i2 < Math.min(n7, input2.length); i2++) {
101304
+ yield* tx2.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${input2[i2].id}, ${Date.now()})`);
101305
+ }
101306
+ }));
101307
+ completed = new Set((yield* db.all(sql`SELECT id FROM ${sql.identifier("migration")}`)).map((row) => row.id));
101308
+ }
101309
+ }
101298
101310
  }
101299
101311
  }
101300
101312
  for (const migration of input2) {
@@ -837930,7 +837942,6 @@ import { EOL as EOL4 } from "os";
837930
837942
  var ModelsCommand = effectCmd({
837931
837943
  command: "models [provider]",
837932
837944
  describe: "list all available models",
837933
- instance: false,
837934
837945
  builder: (yargs) => yargs.positional("provider", {
837935
837946
  describe: "provider ID to filter models by",
837936
837947
  type: "string",
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.152", InstallationChannel = "latest", InstallationLocal;
84412
+ var InstallationVersion = "0.2.153", InstallationChannel = "latest", InstallationLocal;
84413
84413
  var init_version = __esm(() => {
84414
84414
  InstallationLocal = InstallationChannel === "local";
84415
84415
  });
@@ -106124,6 +106124,18 @@ function applyOnly(db, input) {
106124
106124
  `);
106125
106125
  }
106126
106126
  completed = new Set((yield* db.all(sql`SELECT id FROM ${sql.identifier("migration")}`)).map((row) => row.id));
106127
+ if (completed.size === 0) {
106128
+ const count5 = yield* db.get(sql`SELECT COUNT(*) as c FROM ${sql.identifier("__drizzle_migrations")}`);
106129
+ const n7 = count5?.c ?? 0;
106130
+ if (n7 > 0) {
106131
+ yield* db.transaction((tx2) => exports_Effect.gen(function* () {
106132
+ for (let i2 = 0;i2 < Math.min(n7, input.length); i2++) {
106133
+ yield* tx2.run(sql`INSERT OR IGNORE INTO ${sql.identifier("migration")} (id, time_completed) VALUES (${input[i2].id}, ${Date.now()})`);
106134
+ }
106135
+ }));
106136
+ completed = new Set((yield* db.all(sql`SELECT id FROM ${sql.identifier("migration")}`)).map((row) => row.id));
106137
+ }
106138
+ }
106127
106139
  }
106128
106140
  }
106129
106141
  for (const migration of input) {
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.152",
40
+ "version": "0.2.153",
41
41
  "license": "MIT",
42
42
  "optionalDependencies": {
43
- "slopcode-bin-linux-arm64": "0.2.152",
44
- "slopcode-bin-linux-x64-baseline-musl": "0.2.152",
45
- "slopcode-bin-darwin-x64-baseline": "0.2.152",
46
- "slopcode-bin-linux-x64-musl": "0.2.152",
47
- "slopcode-bin-linux-x64": "0.2.152",
48
- "slopcode-bin-darwin-x64": "0.2.152",
49
- "slopcode-bin-linux-arm64-musl": "0.2.152",
50
- "slopcode-bin-darwin-arm64": "0.2.152",
51
- "slopcode-bin-windows-x64": "0.2.152",
52
- "slopcode-bin-windows-x64-baseline": "0.2.152",
53
- "slopcode-bin-linux-x64-baseline": "0.2.152",
43
+ "slopcode-bin-linux-arm64": "0.2.153",
44
+ "slopcode-bin-linux-x64-baseline-musl": "0.2.153",
45
+ "slopcode-bin-darwin-x64-baseline": "0.2.153",
46
+ "slopcode-bin-linux-x64-musl": "0.2.153",
47
+ "slopcode-bin-linux-x64": "0.2.153",
48
+ "slopcode-bin-darwin-x64": "0.2.153",
49
+ "slopcode-bin-linux-arm64-musl": "0.2.153",
50
+ "slopcode-bin-darwin-arm64": "0.2.153",
51
+ "slopcode-bin-windows-x64": "0.2.153",
52
+ "slopcode-bin-windows-x64-baseline": "0.2.153",
53
+ "slopcode-bin-linux-x64-baseline": "0.2.153",
54
54
  "@oven/bun-linux-aarch64-android": "1.3.14",
55
55
  "@oven/bun-linux-x64-android": "1.3.14"
56
56
  }