@whook/create 20.1.1 → 21.0.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.
@@ -71,7 +71,9 @@ export default autoService(async function initCreateWhook({
71
71
  metapak: undefined,
72
72
  cli: undefined,
73
73
  },
74
- files: basePackageJSON.files.filter((pattern) => pattern !== 'src/**/*'),
74
+ files: basePackageJSON.files.filter(
75
+ (pattern: string) => pattern !== 'src/**/*',
76
+ ),
75
77
  dependencies: basePackageJSON.dependencies,
76
78
  devDependencies: {
77
79
  ...basePackageJSON.devDependencies,
@@ -151,7 +153,7 @@ JWT_SECRET=oudelali
151
153
  `# Loaded when NODE_ENV=development
152
154
 
153
155
  # Allow to kill the process with still open sockets
154
- DESTROY_SOCKETS=1'
156
+ DESTROY_SOCKETS=1
155
157
 
156
158
  # Common env var to get dev outputs
157
159
  DEV_MODE=1
@@ -75,7 +75,7 @@ describe('initProject', () => {
75
75
  } catch (err) {
76
76
  expect({
77
77
  errorCode: (err as YError).code,
78
- errorParams: (err as YError).params,
78
+ errorDebugValues: (err as YError).debugValues,
79
79
  inquirerPromptCalls: inquirer.prompt.mock.calls,
80
80
  lockTakeCalls: lock.take.mock.calls,
81
81
  lockReleaseCalls: lock.release.mock.calls,
@@ -59,7 +59,7 @@ export default autoService(async function initProject({
59
59
  `Cannot create the project's directory: "${projectDirectory}"`,
60
60
  );
61
61
  log('error-stack', printStackTrace(err as Error));
62
- throw YError.wrap(err as Error, 'E_PROJECT_DIR', projectDirectory);
62
+ throw YError.wrap(err as Error, 'E_PROJECT_DIR', [projectDirectory]);
63
63
  }
64
64
 
65
65
  return {