@flecks/repl
Advanced tools
Comparing version 3.2.4 to 4.0.0
@@ -6,3 +6,3 @@ const {spawn} = require('child_process'); | ||
const {D} = require('@flecks/core'); | ||
const {D} = require('@flecks/core/src'); | ||
const commandExists = require('command-exists'); | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "@flecks/repl", | ||
"version": "3.2.4", | ||
"version": "4.0.0", | ||
"author": "cha0s", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@flecks/core": "^3.2.1", | ||
"@flecks/core": "^4.0.0", | ||
"command-exists": "^1.2.9", | ||
@@ -34,5 +34,5 @@ "debug": "4.3.1" | ||
"devDependencies": { | ||
"@flecks/build": "^3.2.4", | ||
"@flecks/fleck": "^3.2.4" | ||
"@flecks/build": "^4.0.0", | ||
"@flecks/fleck": "^4.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@flecks/core")):"function"==typeof define&&define.amd?define("@flecks/repl",["@flecks/core"],r):"object"==typeof exports?exports["@flecks/repl"]=r(require("@flecks/core")):e["@flecks/repl"]=r(e["@flecks/core"])}(global,(e=>(()=>{"use strict";var r={652:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{hooks:()=>p,mixin:()=>f});const e=require("fs/promises"),r=require("net"),t=require("os"),i=require("path"),c=require("repl");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s.apply(this,arguments)}var a=(0,o(652).D)("@flecks/repl"),l=a.extend("silly");var p={"@flecks/server.up":o=>async function(o){var{id:n}=o.get("@flecks/core"),p=s(s({},await o.invokeMergeUniqueAsync("@flecks/repl.context")),{},{flecks:o});a("Object.keys(context) === %O",Object.keys(p));var f={};Object.entries(await o.invokeMergeUniqueAsync("@flecks/repl.commands")).forEach((e=>{var[r,t]=e;f[r]=t,l("registered command: %s",r)}));var u=(0,r.createServer)((e=>{a("client connection to repl established"),e.on("close",(()=>{a("client disconnected")}));var r=(0,c.start)({prompt:"".concat(n,"> "),input:e,output:e});r.on("exit",(()=>e.end())),Object.entries(p).forEach((e=>{var[t,o]=e;r.context[t]=o})),Object.entries(f).forEach((t=>{var[o,n]=t;r.defineCommand(o,(async t=>{var o=await n(t);o?e.write(o,(()=>r.displayPrompt())):r.displayPrompt()}))}))}));try{await(0,e.mkdir)((0,i.join)((0,t.tmpdir)(),"flecks",n,"repl"),{recursive:!0})}catch(e){if("EEXIST"!==e.code)throw e}var d=(0,i.join)((0,t.tmpdir)(),"flecks",n,"repl","".concat(n,"-").concat(Date.now(),".sock"));o.repl=d,await new Promise((e=>{u.listen(d,e)})),a("listening @ %s",d)}(o)},f=e=>class extends e{constructor(){var e,r,t,o;super(...arguments),e=this,t=void 0,(r="symbol"==typeof(o=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r="repl"))?o:String(o))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}}})(),n})())); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@flecks/core")):"function"==typeof define&&define.amd?define("@flecks/repl",["@flecks/core"],r):"object"==typeof exports?exports["@flecks/repl"]=r(require("@flecks/core")):e["@flecks/repl"]=r(e["@flecks/core"])}(global,(e=>(()=>{"use strict";var r={540:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{hooks:()=>p,mixin:()=>f});const e=require("fs/promises"),r=require("net"),t=require("os"),i=require("path"),c=require("repl");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s.apply(this,arguments)}var a=(0,o(540).D)("@flecks/repl"),l=a.extend("silly");var p={"@flecks/server.up":o=>async function(o){var{id:n}=o.get("@flecks/core"),p=s(s({},await o.invokeMergeUniqueAsync("@flecks/repl.context")),{},{flecks:o});a("Object.keys(context) === %O",Object.keys(p));var f={};Object.entries(await o.invokeMergeUniqueAsync("@flecks/repl.commands")).forEach((e=>{var[r,t]=e;f[r]=t,l("registered command: %s",r)}));var u=(0,r.createServer)((e=>{a("client connection to repl established"),e.on("close",(()=>{a("client disconnected")}));var r=(0,c.start)({prompt:"".concat(n,"> "),input:e,output:e});r.on("exit",(()=>e.end())),Object.entries(p).forEach((e=>{var[t,o]=e;r.context[t]=o})),Object.entries(f).forEach((t=>{var[o,n]=t;r.defineCommand(o,(async t=>{var o=await n(t);o?e.write(o,(()=>r.displayPrompt())):r.displayPrompt()}))}))}));try{await(0,e.mkdir)((0,i.join)((0,t.tmpdir)(),"flecks",n,"repl"),{recursive:!0})}catch(e){if("EEXIST"!==e.code)throw e}var d=(0,i.join)((0,t.tmpdir)(),"flecks",n,"repl","".concat(n,"-").concat(Date.now(),".sock"));o.repl=d,await new Promise((e=>{u.listen(d,e)})),a("listening @ %s",d)}(o)},f=e=>class extends e{constructor(){var e,r,t,o;super(...arguments),e=this,t=void 0,(r="symbol"==typeof(o=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r="repl"))?o:String(o))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}}})(),n})())); | ||
//# sourceMappingURL=server.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16946
8
+ Added@flecks/core@4.2.4(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedminimatch@5.1.6(transitive)
- Removed@flecks/core@3.2.1(transitive)
Updated@flecks/core@^4.0.0