Skip to content

Commit

Permalink
v8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jan 25, 2024
1 parent 2cec012 commit 8113c18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion bin/seneca-repl-exec.js
Expand Up @@ -12,6 +12,8 @@ const Http = require('node:http')
const Https = require('node:https')
const { Duplex } = require('node:stream')

const { minify_sync } = require('terser')

const JP = (arg) => JSON.parse(arg)
const JS = (a0, a1) => JSON.stringify(a0, a1)

Expand Down Expand Up @@ -471,7 +473,9 @@ const DirectiveMap = {
return out
},
VxgAction: (pat, act, defstr) => {
let def = JP(defstr).replace(/\n+/g, '; ')
let def = minify_sync(JP(defstr), {
mangle: false,
}).code
let func = def.startsWith('async')
? 'function(msg,reply,meta){const actfunc=' +
def +
Expand Down
9 changes: 5 additions & 4 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "@seneca/repl",
"description": "Provides a client and server REPL for Seneca microservice systems.",
"version": "8.0.0",
"version": "8.1.0",
"main": "dist/repl.js",
"license": "MIT",
"author": "Richard Rodger (https://github.com/rjrodger)",
Expand All @@ -22,8 +22,8 @@
"test": "jest --coverage",
"test-some": "jest -t",
"test-watch": "jest --coverage --watchAll",
"smoke":"node test/smoke.js",
"smoke-repl":"node ./bin/seneca-repl-exec.js",
"smoke": "node test/smoke.js",
"smoke-repl": "node ./bin/seneca-repl-exec.js",
"prettier": "prettier --write --no-semi --single-quote bin/*.js src/*.ts test/*.js",
"doc": "seneca-doc",
"reset": "npm run clean && npm i && npm run build && npm test",
Expand All @@ -43,7 +43,8 @@
},
"dependencies": {
"@hapi/hoek": "^11.0.4",
"inks": "^2.0.0"
"inks": "^2.0.0",
"terser": "^5.27.0"
},
"devDependencies": {
"@aws-sdk/client-lambda": "^3.499.0",
Expand Down

0 comments on commit 8113c18

Please sign in to comment.