New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bun-repl

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-repl - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

19

package.json
{
"type": "module",
"name": "bun-repl",
"version": "1.3.3",
"version": "1.4.0",
"description": "Experimental unofficial REPL for Bun",

@@ -27,13 +27,14 @@ "main": "src/module/repl.ts",

"dependencies": {
"@swc/core": "^1.3.31",
"@swc/core": "^1.3.68",
"pretty-ms": "^8.0.0",
"rustybun": "^0.1.2"
"rustybun": "^0.2.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"bun-types": "^0.5.0",
"eslint": "^8.33.0",
"eslint-plugin-unicorn": "^45.0.2",
"typescript": "^4.9.4"
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"bun-devtools": "^0.0.2",
"bun-types": "^0.6.14",
"eslint": "^8.44.0",
"eslint-plugin-unicorn": "^47.0.0",
"typescript": "^5.1.6"
},

@@ -40,0 +41,0 @@ "bin": {

@@ -11,3 +11,3 @@ #!/usr/bin/env bun

import REPLManager from './replmanager';
import pkgjson from './pkgjson';
import pkgjson from '../package.json';
import { debuglog, IS_DEBUG } from './debug';

@@ -14,0 +14,0 @@

@@ -70,1 +70,10 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */

}
/**
* Convert a {@link WebSocket.onmessage} `event.data` value to a string.
*/
export function wsDataToString(data: Parameters<NonNullable<WebSocket['onmessage']>>[0]['data']): string {
if (data instanceof ArrayBuffer) return new TextDecoder('utf-8').decode(data);
else if (data instanceof Buffer) return data.toString('utf-8');
else return data;
}

@@ -22,5 +22,5 @@ {

/* Modules */
"module": "ES2022", /* Specify what module code is generated. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"module": "ESNext", /* Specify what module code is generated. */
// "rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */

@@ -63,3 +63,3 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */

// "declarationDir": "./decl", /* Specify the output directory for generated declaration files. */
"preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
"verbatimModuleSyntax": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

@@ -66,0 +66,0 @@ /* Interop Constraints */

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc