@adonisjs/repl 4.0.0 → 4.1.0

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.
package/build/index.js CHANGED
@@ -272,7 +272,7 @@ var Repl = class {
272
272
  /**
273
273
  * Start the REPL server
274
274
  */
275
- start() {
275
+ start(context) {
276
276
  console.log("");
277
277
  this.notify('Type ".ls" to a view list of available context methods/properties');
278
278
  this.server = startRepl({
@@ -283,6 +283,11 @@ var Repl = class {
283
283
  useGlobal: true,
284
284
  ...this.#replOptions
285
285
  });
286
+ if (context) {
287
+ Object.keys(context).forEach((key) => {
288
+ this.server.context[key] = context[key];
289
+ });
290
+ }
286
291
  this.server.defineCommand("ls", {
287
292
  help: "View list of available context methods/properties",
288
293
  action: this.#ls.bind(this)
@@ -299,4 +304,3 @@ var Repl = class {
299
304
  export {
300
305
  Repl
301
306
  };
302
- //# sourceMappingURL=index.js.map
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import type { Colors } from '@poppinss/colors/types';
3
2
  import { type REPLServer, type ReplOptions } from 'node:repl';
4
3
  import type { MethodCallback, MethodOptions, Compiler } from './types.js';
@@ -48,5 +47,5 @@ export declare class Repl {
48
47
  /**
49
48
  * Start the REPL server
50
49
  */
51
- start(): this;
50
+ start(context?: Record<string, any>): this;
52
51
  }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@adonisjs/repl",
3
3
  "description": "REPL for AdonisJS",
4
- "version": "4.0.0",
4
+ "version": "4.1.0",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
8
- "main": "build/index.js",
9
8
  "type": "module",
10
9
  "files": [
11
10
  "build",
@@ -18,47 +17,37 @@
18
17
  },
19
18
  "scripts": {
20
19
  "pretest": "npm run lint",
21
- "test": "c8 npm run quick:test",
22
- "lint": "eslint . --ext=.ts",
23
- "clean": "del-cli build",
20
+ "test": "echo 'No tests'",
21
+ "lint": "eslint .",
22
+ "format": "prettier --write .",
24
23
  "typecheck": "tsc --noEmit",
24
+ "clean": "del-cli build",
25
25
  "precompile": "npm run lint && npm run clean",
26
26
  "compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
27
27
  "build": "npm run compile",
28
- "release": "np",
29
28
  "version": "npm run build",
30
- "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/repl",
31
- "quick:test": "node --enable-source-maps --loader=ts-node/esm bin/test.ts",
32
- "format": "prettier --write .",
33
- "prepublishOnly": "npm run build"
29
+ "prepublishOnly": "npm run build",
30
+ "release": "release-it"
34
31
  },
35
32
  "devDependencies": {
36
- "@adonisjs/eslint-config": "^1.2.1",
37
- "@adonisjs/prettier-config": "^1.2.1",
38
- "@adonisjs/tsconfig": "^1.2.1",
39
- "@commitlint/cli": "^18.4.4",
40
- "@commitlint/config-conventional": "^18.4.4",
41
- "@japa/assert": "^2.1.0",
42
- "@japa/runner": "^3.1.1",
43
- "@swc/core": "^1.3.102",
44
- "@types/node": "^20.10.6",
45
- "c8": "^9.0.0",
46
- "del-cli": "^5.1.0",
47
- "eslint": "^8.56.0",
48
- "github-label-sync": "^2.3.1",
49
- "husky": "^8.0.3",
50
- "np": "^9.2.0",
51
- "prettier": "^3.1.1",
52
- "ts-node": "^10.9.2",
53
- "tsup": "^8.0.1",
54
- "typescript": "^5.3.3"
33
+ "@adonisjs/eslint-config": "^2.0.0-beta.7",
34
+ "@adonisjs/prettier-config": "^1.4.0",
35
+ "@adonisjs/tsconfig": "^1.4.0",
36
+ "@release-it/conventional-changelog": "^10.0.0",
37
+ "@swc/core": "^1.10.7",
38
+ "@types/node": "^22.10.5",
39
+ "del-cli": "^6.0.0",
40
+ "eslint": "^9.18.0",
41
+ "prettier": "^3.4.2",
42
+ "release-it": "^18.1.1",
43
+ "ts-node-maintained": "^10.9.4",
44
+ "tsup": "^8.3.5",
45
+ "typescript": "^5.7.3"
55
46
  },
56
47
  "dependencies": {
57
- "@poppinss/colors": "^4.1.2",
58
- "string-width": "^7.0.0"
48
+ "@poppinss/colors": "^4.1.4",
49
+ "string-width": "^7.2.0"
59
50
  },
60
- "author": "virk,julien-r44,adonisjs",
61
- "license": "MIT",
62
51
  "homepage": "https://github.com/adonisjs/repl#readme",
63
52
  "repository": {
64
53
  "type": "git",
@@ -72,33 +61,11 @@
72
61
  "repl",
73
62
  "node-repl"
74
63
  ],
75
- "eslintConfig": {
76
- "extends": "@adonisjs/eslint-config/package"
77
- },
78
- "prettier": "@adonisjs/prettier-config",
79
- "commitlint": {
80
- "extends": [
81
- "@commitlint/config-conventional"
82
- ]
83
- },
64
+ "author": "Harminder Virk <virk@adonisjs.com>",
65
+ "license": "MIT",
84
66
  "publishConfig": {
85
67
  "access": "public",
86
- "tag": "public"
87
- },
88
- "np": {
89
- "message": "chore(release): %s",
90
- "tag": "public",
91
- "branch": "main",
92
- "anyBranch": false
93
- },
94
- "c8": {
95
- "reporter": [
96
- "text",
97
- "html"
98
- ],
99
- "exclude": [
100
- "tests/**"
101
- ]
68
+ "provenance": true
102
69
  },
103
70
  "tsup": {
104
71
  "entry": [
@@ -109,7 +76,32 @@
109
76
  "clean": true,
110
77
  "format": "esm",
111
78
  "dts": false,
112
- "sourcemap": true,
79
+ "sourcemap": false,
113
80
  "target": "esnext"
114
- }
81
+ },
82
+ "release-it": {
83
+ "git": {
84
+ "requireCleanWorkingDir": true,
85
+ "requireUpstream": true,
86
+ "commitMessage": "chore(release): ${version}",
87
+ "tagAnnotation": "v${version}",
88
+ "push": true,
89
+ "tagName": "v${version}"
90
+ },
91
+ "github": {
92
+ "release": true
93
+ },
94
+ "npm": {
95
+ "publish": true,
96
+ "skipChecks": true
97
+ },
98
+ "plugins": {
99
+ "@release-it/conventional-changelog": {
100
+ "preset": {
101
+ "name": "angular"
102
+ }
103
+ }
104
+ }
105
+ },
106
+ "prettier": "@adonisjs/prettier-config"
115
107
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/repl.ts"],"sourcesContent":["/*\n * @adonisjs/repl\n *\n * (c) AdonisJS\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nimport stringWidth from 'string-width'\nimport useColors from '@poppinss/colors'\nimport type { Colors } from '@poppinss/colors/types'\nimport { inspect, promisify as utilPromisify } from 'node:util'\nimport { type REPLServer, Recoverable, type ReplOptions, start as startRepl } from 'node:repl'\n\nimport type { MethodCallback, MethodOptions, Compiler } from './types.js'\n\n/**\n * List of node global properties to remove from the\n * ls inspect\n */\nconst GLOBAL_NODE_PROPERTIES = [\n 'performance',\n 'global',\n 'clearInterval',\n 'clearTimeout',\n 'setInterval',\n 'setTimeout',\n 'queueMicrotask',\n 'clearImmediate',\n 'setImmediate',\n 'structuredClone',\n 'atob',\n 'btoa',\n 'fetch',\n 'crypto',\n 'navigator',\n]\n\nconst TS_UTILS_HELPERS = [\n '__extends',\n '__assign',\n '__rest',\n '__decorate',\n '__param',\n '__esDecorate',\n '__runInitializers',\n '__propKey',\n '__setFunctionName',\n '__metadata',\n '__awaiter',\n '__generator',\n '__exportStar',\n '__createBinding',\n '__values',\n '__read',\n '__spread',\n '__spreadArrays',\n '__spreadArray',\n '__await',\n '__asyncGenerator',\n '__asyncDelegator',\n '__asyncValues',\n '__makeTemplateObject',\n '__importStar',\n '__importDefault',\n '__classPrivateFieldGet',\n '__classPrivateFieldSet',\n '__classPrivateFieldIn',\n]\n\nexport class Repl {\n #replOptions: ReplOptions\n\n /**\n * Length of the longest custom method name. We need to show a\n * symmetric view of custom methods and their description\n */\n #longestCustomMethodName = 0\n\n /**\n * Reference to the original `eval` method of the repl server.\n * Since we are monkey patching it, we need a reference to it\n * to call it after our custom logic\n */\n #originalEval?: Function\n\n /**\n * Compiler that will transform the user input just\n * before evaluation\n */\n #compiler?: Compiler\n\n /**\n * Path to the history file\n */\n #historyFilePath?: string\n\n /**\n * Set of registered ready callbacks\n */\n #onReadyCallbacks: ((repl: Repl) => void)[] = []\n\n /**\n * A set of registered custom methods\n */\n #customMethods: {\n [name: string]: { handler: MethodCallback; options: MethodOptions & { width: number } }\n } = {}\n\n /**\n * Colors reference\n */\n colors: Colors = useColors.ansi()\n\n /**\n * Reference to the repl server. Available after the `start` method\n * is invoked\n */\n server?: REPLServer\n\n constructor(options?: { compiler?: Compiler; historyFilePath?: string } & ReplOptions) {\n const { compiler, historyFilePath, ...rest } = options || {}\n this.#compiler = compiler\n this.#historyFilePath = historyFilePath\n this.#replOptions = rest\n }\n\n /**\n * Registering custom methods with the server context by wrapping\n * them inside a function and passes the REPL server instance\n * to the method\n */\n #registerCustomMethodWithContext(name: string) {\n const customMethod = this.#customMethods[name]\n if (!customMethod) {\n return\n }\n\n /**\n * Wrap handler\n */\n const handler = (...args: any[]) => customMethod.handler(this, ...args)\n\n /**\n * Re-define the function name to be more description\n */\n Object.defineProperty(handler, 'name', { value: customMethod.handler.name })\n\n /**\n * Register with the context\n */\n this.server!.context[name] = handler\n }\n\n /**\n * Setup context with default globals\n */\n #setupContext() {\n /**\n * Register \"clear\" method\n */\n this.addMethod(\n 'clear',\n function clear(repl: Repl, key: string) {\n if (!key) {\n console.log(repl.colors.red('Define a property name to remove from the context'))\n } else {\n delete repl.server!.context[key]\n }\n repl.server!.displayPrompt()\n },\n {\n description: 'Clear a property from the REPL context',\n usage: `clear ${this.colors.gray('(propertyName)')}`,\n }\n )\n\n /**\n * Register \"p\" method\n */\n this.addMethod(\n 'p',\n function promisify(_: Repl, fn: Function) {\n return utilPromisify(fn)\n },\n {\n description: 'Promisify a function. Similar to Node.js \"util.promisify\"',\n usage: `p ${this.colors.gray('(function)')}`,\n }\n )\n\n /**\n * Register all custom methods with the context\n */\n Object.keys(this.#customMethods).forEach((name) => {\n this.#registerCustomMethodWithContext(name)\n })\n }\n\n /**\n * Find if the error is recoverable or not\n */\n #isRecoverableError(error: any) {\n return /^(Unexpected end of input|Unexpected token|' expected)/.test(error.message)\n }\n\n /**\n * Custom eval method to execute the user code\n *\n * Basically we are monkey patching the original eval method, because\n * we want to:\n * - Compile the user code before executing it\n * - And also benefit from the original eval method that supports\n * cool features like top level await\n */\n #eval(\n code: string,\n context: any,\n filename: string,\n callback: (err: Error | null, result?: any) => void\n ) {\n try {\n const compiled = this.#compiler ? this.#compiler!.compile(code, filename) : code\n return this.#originalEval!(compiled, context, filename, callback)\n } catch (error) {\n if (this.#isRecoverableError(error)) {\n callback(new Recoverable(error), null)\n return\n }\n\n callback(error, null)\n }\n }\n\n /**\n * Setup history file\n */\n #setupHistory() {\n if (!this.#historyFilePath) {\n return\n }\n\n this.server!.setupHistory(this.#historyFilePath, (error) => {\n if (!error) {\n return\n }\n\n console.log(this.colors.red('Unable to write to the history file. Exiting'))\n console.error(error)\n process.exit(1)\n })\n }\n\n /**\n * Prints the help for the context properties\n */\n #printContextHelp() {\n /**\n * Print context properties\n */\n console.log('')\n console.log(this.colors.green('CONTEXT PROPERTIES/METHODS:'))\n\n const context = Object.keys(this.server!.context).reduce(\n (result, key) => {\n if (\n !this.#customMethods[key] &&\n !GLOBAL_NODE_PROPERTIES.includes(key) &&\n !TS_UTILS_HELPERS.includes(key)\n ) {\n result[key] = this.server!.context[key]\n }\n\n return result\n },\n {} as Record<string, any>\n )\n\n console.log(inspect(context, false, 1, true))\n }\n\n /**\n * Prints the help for the custom methods\n */\n #printCustomMethodsHelp() {\n /**\n * Print loader methods\n */\n console.log('')\n console.log(this.colors.green('GLOBAL METHODS:'))\n\n Object.keys(this.#customMethods).forEach((method) => {\n const { options } = this.#customMethods[method]\n\n const usage = this.colors.yellow(options.usage || method)\n const spaces = ' '.repeat(this.#longestCustomMethodName - options.width + 2)\n const description = this.colors.dim(options.description || '')\n\n console.log(`${usage}${spaces}${description}`)\n })\n }\n\n /**\n * Prints the context to the console\n */\n #ls() {\n this.#printCustomMethodsHelp()\n this.#printContextHelp()\n this.server!.displayPrompt()\n }\n\n /**\n * Notify by writing to the console\n */\n notify(message: string) {\n console.log(this.colors.yellow().italic(message))\n if (this.server) {\n this.server.displayPrompt()\n }\n }\n\n /**\n * Register a callback to be invoked once the server is ready\n */\n ready(callback: (repl: Repl) => void): this {\n this.#onReadyCallbacks.push(callback)\n return this\n }\n\n /**\n * Register a custom loader function to be added to the context\n */\n addMethod(name: string, handler: MethodCallback, options?: MethodOptions): this {\n const width = stringWidth(options?.usage || name)\n if (width > this.#longestCustomMethodName) {\n this.#longestCustomMethodName = width\n }\n\n this.#customMethods[name] = { handler, options: Object.assign({ width }, options) }\n\n /**\n * Register method right away when server has been started\n */\n if (this.server) {\n this.#registerCustomMethodWithContext(name)\n }\n\n return this\n }\n\n /**\n * Returns the collection of registered methods\n */\n getMethods() {\n return this.#customMethods\n }\n\n /**\n * Register a compiler. Make sure register the compiler before\n * calling the start method\n */\n useCompiler(compiler: Compiler): this {\n this.#compiler = compiler\n return this\n }\n\n /**\n * Start the REPL server\n */\n start() {\n console.log('')\n this.notify('Type \".ls\" to a view list of available context methods/properties')\n\n this.server = startRepl({\n prompt: `> ${this.#compiler?.supportsTypescript ? '(ts) ' : '(js) '}`,\n input: process.stdin,\n output: process.stdout,\n terminal: process.stdout.isTTY && !Number.parseInt(process.env.NODE_NO_READLINE!, 10),\n useGlobal: true,\n ...this.#replOptions,\n })\n\n /**\n * Define the `ls` command\n */\n this.server!.defineCommand('ls', {\n help: 'View list of available context methods/properties',\n action: this.#ls.bind(this),\n })\n\n /**\n * Setup context and history\n */\n this.#setupContext()\n this.#setupHistory()\n\n /**\n * Monkey patch the eval method\n */\n this.#originalEval = this.server.eval\n // @ts-ignore\n this.server.eval = this.#eval.bind(this)\n\n /**\n * Display prompt\n */\n this.server.displayPrompt()\n\n /**\n * Execute onReady callbacks\n */\n this.#onReadyCallbacks.forEach((callback) => callback(this))\n\n return this\n }\n}\n"],"mappings":";AASA,OAAO,iBAAiB;AACxB,OAAO,eAAe;AAEtB,SAAS,SAAS,aAAa,qBAAqB;AACpD,SAA0B,aAA+B,SAAS,iBAAiB;AAQnF,IAA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