Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@flecks/repl

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flecks/repl - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

8

package.json
{
"name": "@flecks/repl",
"version": "4.1.2",
"version": "4.1.3",
"author": "cha0s",

@@ -27,3 +27,3 @@ "license": "MIT",

"dependencies": {
"@flecks/core": "^4.2.2",
"@flecks/core": "^4.2.3",
"command-exists": "^1.2.9",

@@ -33,5 +33,5 @@ "debug": "4.3.1"

"devDependencies": {
"@flecks/build": "^4.1.2",
"@flecks/fleck": "^4.1.2"
"@flecks/build": "^4.1.3",
"@flecks/fleck": "^4.1.3"
}
}

@@ -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={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})()));
!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={166: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(166).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

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