Comparing version 1.2.0 to 1.2.1
{ | ||
"type": "module", | ||
"name": "bun-repl", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Experimental unofficial REPL for Bun", | ||
"main": "src/module/repl.ts", | ||
"scripts": { | ||
"start": "bun run src/repl.ts -- --", | ||
"start": "bun run src/repl.ts --", | ||
"test": "bun run --silent check && bun run --silent start", | ||
@@ -27,3 +27,3 @@ "deeptest": "bun run --silent lint && bun run --silent test", | ||
"dependencies": { | ||
"@swc/core": "^1.2.224", | ||
"@swc/core": "^1.3.1", | ||
"pretty-ms": "^8.0.0", | ||
@@ -33,8 +33,8 @@ "rustybun": "^0.1.2" | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"bun-types": "^0.1.5", | ||
"eslint": "^8.21.0", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
"@typescript-eslint/parser": "^5.37.0", | ||
"bun-types": "^0.1.11", | ||
"eslint": "^8.23.1", | ||
"eslint-plugin-unicorn": "^43.0.2", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.8.3" | ||
}, | ||
@@ -41,0 +41,0 @@ "bin": { |
@@ -17,6 +17,2 @@ import repl from './module/repl'; | ||
interface Process { | ||
revision?: string; | ||
} | ||
interface BunError { | ||
@@ -70,7 +66,2 @@ name: string; | ||
interface ImportMeta { | ||
require: (moduleIdentifier: string) => unknown; | ||
} | ||
function require(moduleIdentifier: string): unknown; | ||
interface REPLGlobal { | ||
@@ -77,0 +68,0 @@ REPL: typeof repl; |
@@ -78,3 +78,3 @@ #!/usr/bin/env bun | ||
console.log( | ||
`Welcome to Bun.js ${process.version} (${process.revision ? 'canary-' + process.revision : 'release'})\n` + | ||
`Welcome to Bun.js ${process.version}\n` + | ||
`Type ".help" for more information.` | ||
@@ -181,3 +181,3 @@ ); | ||
Installed at: ${$.cyan+path.join(import.meta.dir, '..')+$.reset} | ||
Bun version: ${process.version}${process.revision ? `-${process.revision}` : ''} | ||
Bun version: ${process.version} ${$.dim}(${process.revision})${$.reset} | ||
SWC version: v${swc.version as string} | ||
@@ -184,0 +184,0 @@ Color mode: ${$.bool(Bun.enableANSIColors)} |
@@ -11,2 +11,4 @@ import $ from './colors'; | ||
historyPath ||= `${process.env.BUN_INSTALL ?? os.homedir()}/.bun_repl_history`; | ||
this.#historyfd = fs.openSync(historyPath, 'a+'); | ||
this.#historypath = historyPath; | ||
@@ -18,6 +20,3 @@ const historyLines = fs.readFileSync(historyPath, 'utf8').split('\n'); | ||
} | ||
this.loadHistory(historyPath); | ||
this.#historyfd = fs.openSync(historyPath, 'a+'); | ||
this.#historypath = historyPath; | ||
} | ||
@@ -24,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
303797
0
4333
Updated@swc/core@^1.3.1