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

@sumor/app

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sumor/app - npm Package Compare versions

Comparing version 17.0.4 to 17.0.5

2

index.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sumor_App",[],t):"object"==typeof exports?exports.Sumor_App=t():e.Sumor_App=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t){e.exports=require("@sumor/base")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("express")},function(e,t,r){"use strict";r.r(t),r.d(t,"App",(function(){return s})),r.d(t,"_meta",(function(){return p}));var n=r(0),o=r.n(n),a=r(1),u=r.n(a),c=r(2),i=r.n(c);class s{constructor(){this.program={}}handle(e){for(let t in e._meta.program){const r=t,n=e._meta.program[t],a=o.a.object.get(e,r);this.program[r]={meta:n,handler:a}}}async serve(e){await(async(e,t)=>{const r=i()(),n=u.a.createServer(r),a="http://localhost:"+e;for(let e in t){const n="/api/"+e.replace(/\./g,"/");console.log(`${a}${n}`),r.all(n,(async function(r,n,a){const u={};Object.assign(u,r.query,r.body);const c=o.a.caller(t[e].handler,t[e].meta,{});let i;try{i={code:"OK",data:await c(u)}}catch(e){i={code:e.code||"INTERNAL_ERROR",message:e.message}}n.send(i)}))}n.listen(21002,e=>{})})(e,this.program)}}var p={program:{App:{}}};t.default={App:s,_meta:p}}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sumor_App",[],t):"object"==typeof exports?exports.Sumor_App=t():e.Sumor_App=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t){e.exports=require("@sumor/base")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("express")},function(e,t,r){"use strict";r.r(t),r.d(t,"App",(function(){return s})),r.d(t,"_meta",(function(){return p}));var n=r(0),o=r.n(n),a=r(1),u=r.n(a),c=r(2),i=r.n(c);class s{constructor(){this.program={}}handle(e){for(let t in e._meta.program){const r=t,n=e._meta.program[t],a=o.a.object.get(e,r);this.program[r]={meta:n,handler:a}}}async serve(e){await(async(e,t)=>{const r=i()(),n=u.a.createServer(r),a="http://localhost:"+e;for(let e in t){const n="/api/"+e.replace(/\./g,"/");console.log(`${a}${n}`),r.all(n,(async function(r,n,a){const u={};Object.assign(u,r.query,r.body);const c=o.a.caller(t[e].handler,t[e].meta,{});let i;try{i={code:"OK",data:await c(u)}}catch(e){i={code:e.code||"INTERNAL_ERROR",message:e.message}}n.send(i)}))}n.listen(e,e=>{console.log("应用已运行在:"+a)})})(e,this.program)}}var p={program:{App:{}}};t.default={App:s,_meta:p}}])}));
{
"name": "@sumor/app",
"version": "17.0.4",
"version": "17.0.5",
"dependencies": {

@@ -5,0 +5,0 @@ "@sumor/base": "^17.0.8",

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