qarpeo 0.1.10 → 0.1.11

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.
@@ -197,12 +197,13 @@ async function confirmInstall(packageName, purpose) {
197
197
  rl.close();
198
198
  }
199
199
  }
200
- async function ensurePackage(packageName, options) {
201
- const cwd = options.cwd || process.cwd();
200
+ async function ensurePackage(packageName, options = {}) {
201
+ const cwd = options?.cwd || process.cwd();
202
+ const purpose = options?.purpose || "this operation";
202
203
  if (isPackageInstalled(packageName, cwd)) {
203
204
  return true;
204
205
  }
205
- const confirmed = await confirmInstall(packageName, options.purpose);
206
+ const confirmed = await confirmInstall(packageName, purpose);
206
207
  if (!confirmed) {
207
208
  console.error(
208
209
  `
@@ -783,4 +784,4 @@ const wrangler = {
783
784
  resolveProjectName: resolveProjectName
784
785
  };
785
786
 
786
- export { getJiti as a, resolveProjectName as b, checkDrizzleVersion as c, findLocalD1Database as d, ensurePackage as e, findSchemaFiles as f, getLocalDatabaseContext as g, createWranglerConfig as h, resolveBindingName as i, findQueueFiles as j, findJobFiles as k, generateDevWranglerConfig as l, applyD1Migrations as m, localDb as n, resolveBinaryPath as r, scanSchemaExports as s, wrangler as w };
787
+ export { checkDrizzleVersion as a, resolveProjectName as b, createWranglerConfig as c, findJobFiles as d, applyD1Migrations as e, findQueueFiles as f, generateDevWranglerConfig as g, findSchemaFiles as h, resolveBinaryPath as i, ensurePackage as j, getLocalDatabaseContext as k, getJiti as l, findLocalD1Database as m, localDb as n, resolveBindingName as r, scanSchemaExports as s, wrangler as w };