@warp-drive/holodeck 0.0.0-alpha.80 → 0.0.0-alpha.84

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/server/index.js +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-drive/holodeck",
3
3
  "description": "⚡️ Simple, Fast HTTP Mocking for Tests",
4
- "version": "0.0.0-alpha.80",
4
+ "version": "0.0.0-alpha.84",
5
5
  "license": "MIT",
6
6
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
7
7
  "repository": {
@@ -44,8 +44,8 @@
44
44
  "sync-hardlinks": "bun run sync-dependencies-meta-injected"
45
45
  },
46
46
  "peerDependencies": {
47
- "@ember-data/request": "5.4.0-alpha.94",
48
- "@warp-drive/core-types": "0.0.0-alpha.80"
47
+ "@ember-data/request": "5.4.0-alpha.98",
48
+ "@warp-drive/core-types": "0.0.0-alpha.84"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.24.5",
@@ -53,9 +53,9 @@
53
53
  "@babel/preset-env": "^7.24.5",
54
54
  "@babel/preset-typescript": "^7.24.1",
55
55
  "@babel/runtime": "^7.24.5",
56
- "@ember-data/request": "5.4.0-alpha.94",
57
- "@warp-drive/core-types": "0.0.0-alpha.80",
58
- "@warp-drive/internal-config": "5.4.0-alpha.94",
56
+ "@ember-data/request": "5.4.0-alpha.98",
57
+ "@warp-drive/core-types": "0.0.0-alpha.84",
58
+ "@warp-drive/internal-config": "5.4.0-alpha.98",
59
59
  "pnpm-sync-dependencies-meta-injected": "0.0.14",
60
60
  "typescript": "^5.4.5",
61
61
  "vite": "^5.2.11"
package/server/index.js CHANGED
@@ -342,11 +342,11 @@ export default {
342
342
  async endProgram() {
343
343
  console.log(chalk.grey(`\n\tEnding Subroutines (mode:${chalk.cyan(isBun ? 'bun' : 'node')})`));
344
344
  const projectRoot = process.cwd();
345
- const name = await import(path.join(projectRoot, 'package.json'), { with: { type: 'json' } }).then(
346
- (pkg) => pkg.name
347
- );
348
345
 
349
346
  if (!servers.has(projectRoot)) {
347
+ const name = await import(path.join(projectRoot, 'package.json'), { with: { type: 'json' } }).then(
348
+ (pkg) => pkg.name
349
+ );
350
350
  throw new Error(`Holodeck was not running for project '${name}' at '${projectRoot}'`);
351
351
  }
352
352