Socket
Socket
Sign inDemoInstall

@mybricks/comlib-core

Package Overview
Dependencies
Maintainers
8
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mybricks/comlib-core - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

index.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["mybricks.core-comlib"]=e():t["mybricks.core-comlib"]=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t){t.exports=JSON.parse('{"title":"Fn计算","namespace":"mybricks.core-comlib.fn","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"Fn计算","icon":"./icon.png","runtime":"./Fn.tsx","rtType":"js","visibility":false}')},function(t){t.exports=JSON.parse('{"visibility":false,"title":"变量","namespace":"mybricks.core-comlib.var","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"变量","icon":"./icon.png","runtime":"./Var.tsx","editors":"./editors.tsx","rtType":"js","inputs":[{"id":"get","title":"读取","schema":{"type":"any"},"rels":["return"]},{"id":"set","title":"赋值","schema":{"type":"follow"}}],"outputs":[{"id":"return","title":"完成","schema":{"type":"unknown"}},{"id":"changed","title":"当值发生变化","schema":{"type":"unknown"}}]}')},function(t){t.exports=JSON.parse('{"title":"类型转换","namespace":"mybricks.core-comlib.type-change","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"类型转换","icon":"./icon.png","runtime":"./rt.tsx","editors":"./editors.tsx","rtType":"js","inputs":[{"id":"from","title":"从","schema":{"type":"follow"},"rels":["to"]}],"outputs":[{"id":"to","title":"到","schema":{"type":"follow"},"conMax":1,"editable":true}]}')},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a=function(_a){var data=_a.data,outputs=_a.outputs,inputs=_a.inputs,onError=_a.onError;inputs.from((function(val,relOutpus){var _a,script=null===(_a=data.exchange)||void 0===_a?void 0:_a.script;if(script){var fn=void 0,returnVal=void 0,isOk=void 0;try{eval("fn = "+script),returnVal=fn(val),isOk=!0}catch(t){console.error(t),onError("数据转换错误:"+t.message,t)}isOk&&outputs.to(returnVal)}else onError("未配置转换规则")}))}},function(t){t.exports=JSON.parse('{"title":"连接器","namespace":"mybricks.core-comlib.connector","author":"MyBricks","author_name":"MyBricks","version":"1.0.0","description":"连接器","runtime":"./runtime.ts","editors":"./editors.tsx","icon":"./icon.svg","rtType":"js-autorun","inputs":[{"id":"call","rels":["then","catch"],"title":"调用","schema":{"type":"object"}}],"outputs":[{"id":"then","title":"结果","schema":{"type":"unknown"}},{"id":"catch","title":"发生错误","schema":{"type":"string"}}],"configs":[{"id":"setUrl","title":"设置请求路径","schema":{"type":"string"},"binding":"data.connectorConfig.url"}]}')},function(t,e,n){"use strict";n.r(e),n.d(e,"getCom",(function(){return l}));var r=n(0),o=n(1);function i(t){if(t&&"object"==typeof t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t}return t}var c=n(2),a=n(3),u=n(4);function s(t,e){var n=t.env,r=t.data,o=t.outputs;t.onError;if(void 0===e&&(e={}),r.connector)try{n.callConnector(r.connector,e,r.connectorConfig).then((function(t){o.then(t)})).catch((function(t){o.catch(t)}))}catch(t){console.error(t),o.catch("执行错误 "+(t.message||t))}else o.catch("没有选择接口")}var p={id:"mybricks-core-comlib",title:"Mybrics核心组件库",author:"CheMingjun",icon:"",version:"1.0.1",comAray:[f({comDef:r,rt:function(t){t.inputs,t.outputs}}),f({comDef:o,rt:function(t){var e=t.data,n=t.outputs,r=t.inputs;r.get((function(t,n){var r=i(e.val);n.return(r)})),r.set((function(t){e.val=t,n.changed(i(t))}))}}),f({comDef:c,rt:a.a}),f({comDef:u,rt:function(t){var e=t.env,n=t.data,r=t.inputs,o=t.outputs,i=t.onError;e.runtime&&(n.immediate?s({env:e,data:n,outputs:o}):r.call((function(t){s({env:e,data:n,outputs:o,onError:i},t)})))}})]};e.default=p;function l(t){return p.comAray.find((function(e){return e.namespace===t}))}function f(t){var e=t.comDef,n=t.rt,r=t.data;return Object.assign(e,{runtime:n,data:r})}}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["mybricks.core-comlib"]=e():t["mybricks.core-comlib"]=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t){t.exports=JSON.parse('{"title":"Fn计算","namespace":"mybricks.core-comlib.fn","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"Fn计算","icon":"./icon.png","runtime":"./Fn.tsx","rtType":"js","visibility":false}')},function(t){t.exports=JSON.parse('{"visibility":false,"title":"变量","namespace":"mybricks.core-comlib.var","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"变量","icon":"./icon.png","runtime":"./Var.tsx","editors":"./editors.tsx","rtType":"js","inputs":[{"id":"get","title":"读取","schema":{"type":"any"},"rels":["return"]},{"id":"set","title":"赋值","schema":{"type":"follow"}}],"outputs":[{"id":"return","title":"完成","schema":{"type":"unknown"}},{"id":"changed","title":"当值发生变化","schema":{"type":"unknown"}}]}')},function(t){t.exports=JSON.parse('{"title":"类型转换","namespace":"mybricks.core-comlib.type-change","author":"CheMingjun","author_name":"车明君","version":"1.0.0","description":"类型转换","icon":"./icon.png","runtime":"./rt.tsx","editors":"./editors.tsx","rtType":"js","inputs":[{"id":"from","title":"从","schema":{"type":"follow"},"rels":["to"]}],"outputs":[{"id":"to","title":"到","schema":{"type":"follow"},"conMax":1,"editable":true}]}')},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a=function(_a){var data=_a.data,outputs=_a.outputs,inputs=_a.inputs,onError=_a.onError;inputs.from((function(val,relOutpus){var _a,script=null===(_a=data.exchange)||void 0===_a?void 0:_a.script;if(script){var fn=void 0,returnVal=void 0,isOk=void 0;try{eval("fn = "+script),returnVal=fn(val),isOk=!0}catch(t){console.error(t),onError("数据转换错误:"+t.message,t)}isOk&&outputs.to(returnVal)}else onError("未配置转换规则")}))}},function(t){t.exports=JSON.parse('{"title":"连接器","namespace":"mybricks.core-comlib.connector","author":"MyBricks","author_name":"MyBricks","version":"1.0.0","description":"连接器","runtime":"./runtime.ts","editors":"./editors.tsx","icon":"./icon.svg","rtType":"js-autorun","inputs":[{"id":"call","rels":["then","catch"],"title":"调用","schema":{"type":"object"}}],"outputs":[{"id":"then","title":"结果","schema":{"type":"unknown"}},{"id":"catch","title":"发生错误","schema":{"type":"string"}}]}')},function(t,e,n){"use strict";n.r(e),n.d(e,"getCom",(function(){return l}));var r=n(0),o=n(1);function i(t){if(t&&"object"==typeof t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t}return t}var c=n(2),u=n(3),a=n(4);function s(t,e){var n=t.env,r=t.data,o=t.outputs;t.onError;if(void 0===e&&(e={}),r.connector)try{n.callConnector(r.connector,e,r.connectorConfig).then((function(t){o.then(t)})).catch((function(t){o.catch(t)}))}catch(t){console.error(t),o.catch("执行错误 "+(t.message||t))}else o.catch("没有选择接口")}var p={id:"mybricks-core-comlib",title:"Mybrics核心组件库",author:"CheMingjun",icon:"",version:"1.0.1",comAray:[f({comDef:r,rt:function(t){t.inputs,t.outputs}}),f({comDef:o,rt:function(t){var e=t.data,n=t.outputs,r=t.inputs;r.get((function(t,n){var r=i(e.val);n.return(r)})),r.set((function(t){e.val=t,n.changed(i(t))}))}}),f({comDef:c,rt:u.a}),f({comDef:a,rt:function(t){var e=t.env,n=t.data,r=t.inputs,o=t.outputs,i=t.onError;e.runtime&&(n.immediate?s({env:e,data:n,outputs:o}):r.call((function(t){s({env:e,data:n,outputs:o,onError:i},t)})))}})]};e.default=p;function l(t){return p.comAray.find((function(e){return e.namespace===t}))}function f(t){var e=t.comDef,n=t.rt,r=t.data;return Object.assign(e,{runtime:n,data:r})}}])}));
{
"name": "@mybricks/comlib-core",
"version": "0.0.3",
"version": "0.0.4",
"description": "MyBricks核心组件库",

@@ -9,3 +9,4 @@ "main": "index.js",

"dependencies": {
"react": "^16.13.1"
"react": "^16.13.1",
"styled-components": "^5.3.6"
},

@@ -12,0 +13,0 @@ "scripts": {

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