Socket
Socket
Sign inDemoInstall

rinore

Package Overview
Dependencies
20
Maintainers
15
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

2

lib/coffeescript.js

@@ -99,2 +99,3 @@ "use strict";

output: rinoreOptions.output,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
prompt: rinoreOptions.prompt || 'rinore> ',

@@ -104,2 +105,3 @@ terminal: rinoreOptions.terminal,

const replServer = repl.start(options);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
(0, history_1.setupHistory)(replServer, rinoreOptions.historyFile || '.rinore_history_cs', 1000);

@@ -106,0 +108,0 @@ (0, context_1.setupContext)(replServer);

4

lib/context.d.ts
/// <reference types="node" />
import repl from 'repl';
export declare const context: {
[key: string]: any;
};
export declare const context: Record<string, any>;
export declare const modules: Array<{

@@ -7,0 +5,0 @@ module: string;

/// <reference types="node" />
/// <reference types="node" />
import repl from 'repl';

@@ -3,0 +4,0 @@ export interface RinoreOptions {

@@ -55,4 +55,7 @@ "use strict";

const argv = createArgvParser().parseSync([]);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
options.historyFile = options.historyFile || argv.historyFile;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
options.language = options.language || argv.language;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
options.prompt = options.prompt || argv.prompt;

@@ -59,0 +62,0 @@ return startInternal(options);

@@ -80,2 +80,3 @@ "use strict";

output: rinoreOptions.output,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
prompt: rinoreOptions.prompt || 'rinore> ',

@@ -85,2 +86,3 @@ terminal: rinoreOptions.terminal,

const replServer = repl_1.default.start(options);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
(0, history_1.setupHistory)(replServer, rinoreOptions.historyFile || '.rinore_history_js', 1000);

@@ -87,0 +89,0 @@ (0, context_1.setupContext)(replServer);

@@ -0,3 +1,4 @@

/// <reference types="node" />
import repl from 'repl';
import { RinoreOptions } from '.';
export declare const start: (rinoreOptions: RinoreOptions) => repl.REPLServer;

@@ -203,2 +203,3 @@ "use strict";

output: rinoreOptions.output,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
prompt: rinoreOptions.prompt || 'rinore> ',

@@ -226,2 +227,3 @@ terminal: rinoreOptions.terminal,

});
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
(0, history_1.setupHistory)(replServer, rinoreOptions.historyFile || '.rinore_history_ts', 1000);

@@ -228,0 +230,0 @@ (0, context_1.setupContext)(replServer);

@@ -6,3 +6,3 @@ "use strict";

const match = /^v(\d{1,2})\./.exec(process.version);
if (match && match[1]) {
if (match?.[1]) {
return parseInt(match[1]);

@@ -9,0 +9,0 @@ }

{
"name": "rinore",
"version": "1.2.0",
"version": "1.3.0",
"description": "Rich Node.js REPL",

@@ -40,27 +40,27 @@ "engines": {

"lodash": "^4.17.21",
"node-watch": "^0.7.3",
"yargs": "^17.6.2"
"node-watch": "^0.7.4",
"yargs": "^17.7.2"
},
"devDependencies": {
"@croquiscom/eslint-config": "^2.3.2",
"@types/bluebird": "^3.5.38",
"@types/chai": "^4.3.4",
"@types/diff": "^5.0.2",
"@types/lodash": "^4.14.191",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.18",
"@types/yargs": "^17.0.22",
"chai": "^4.3.7",
"@croquiscom/eslint-config": "^2.5.0",
"@types/bluebird": "^3.5.42",
"@types/chai": "^4.3.11",
"@types/diff": "^5.0.9",
"@types/lodash": "^4.14.202",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.4",
"@types/yargs": "^17.0.32",
"chai": "^4.3.10",
"coffeescript": "^2.7.0",
"coveralls": "^3.1.1",
"eslint": "^8.33.0",
"eslint": "^8.55.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"post-merge-install": "^0.4.0",
"prettier": "^2.8.3",
"rimraf": "^4.1.2",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"ts-node": "10.7",
"typescript": "^4.9.5"
"typescript": "^5.3.3"
},

@@ -67,0 +67,0 @@ "nyc": {

[![npm version](https://badge.fury.io/js/rinore.svg)](https://badge.fury.io/js/rinore)
![test](https://github.com/croquiscom/rinore/workflows/test/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/croquiscom/rinore/badge.svg?branch=master)](https://coveralls.io/github/croquiscom/rinore?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/croquiscom/rinore/badge.svg?branch=main)](https://coveralls.io/github/croquiscom/rinore?branch=main)

@@ -230,2 +230,2 @@ # Rinore

MIT licenses. See [LICENSE](https://github.com/croquiscom/rinore/blob/master/LICENSE) for more details.
MIT licenses. See [LICENSE](https://github.com/croquiscom/rinore/blob/main/LICENSE) for more details.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc