-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix SKPI fingerprint - Relaunch Jambox server if there is a version mismatch - Update mockttp library
- Loading branch information
Showing
32 changed files
with
235 additions
and
276 deletions.
There are no files selected for viewing
Binary file removed
BIN
-10.9 KB
.yarn/cache/@httptoolkit-httpolyglot-npm-2.1.0-4f2673b304-b2471d15a2.zip
Binary file not shown.
Binary file added
BIN
+11 KB
.yarn/cache/@httptoolkit-httpolyglot-npm-2.1.1-70ca948573-138ccd6135.zip
Binary file not shown.
Binary file added
BIN
+684 KB
.yarn/cache/@tootallnate-quickjs-emscripten-npm-0.23.0-a889ea7aeb-c350a2947f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
import * as url from 'url'; | ||
import path from 'path'; | ||
import fs from 'fs'; | ||
|
||
const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); | ||
|
||
export const PROJECT_ROOT = path.join(__dirname, '..'); | ||
export const SCRIPT_HELPER = path.join(PROJECT_ROOT, 'src', 'script-helper.js'); | ||
export const EXTENSION_PATH = path.join(PROJECT_ROOT, 'build'); | ||
export const PACKAGE_JSON_PATH = path.join(PROJECT_ROOT, 'package.json'); | ||
export const CACHE_DIR_NAME = '.jambox'; | ||
export const CONFIG_FILE_NAME = 'jambox.config.js'; | ||
export const DEFAULT_TAPE_NAME = 'default.tape.zip'; | ||
|
||
let version = null; | ||
export const getVersion = () => { | ||
if (version) { | ||
return version; | ||
} | ||
|
||
try { | ||
const content = fs.readFileSync(PACKAGE_JSON_PATH, 'utf-8'); | ||
version = JSON.parse(content).version; | ||
return version; | ||
} catch (e) { | ||
console.log('Failed while loading jambox pacakge.json', e); | ||
return null; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.