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

cyano-mithril

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyano-mithril - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

2

dist/cyano-mithril.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mithril")):"function"==typeof define&&define.amd?define(["exports","mithril"],t):t((e=e||self).cyanoMithril=e.cyanoMithril||{},e.m)}(this,function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var i;t=t&&t.hasOwnProperty("default")?t.default:t;var c=Function.prototype.call.bind(Function.prototype.call),u=function(){return t.redraw()},l=function(e){var t=i,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=i;if(l(n)){var o=r.depsIndex,a=function(){var e=t();"function"==typeof e&&(r.teardowns.set(o,e),r.teardowns.set("_",u))},s=r.teardowns.get(o);try{"function"==typeof s&&s()}finally{r.teardowns.delete(o)}r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(a)}:a)}}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=i,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],a=t(e,r);n.states[r]=a,JSON.stringify(a)!==JSON.stringify(o)&&u()},r]},f=d(!0),m=d(),h=function(e,t){var n=i,o=l(t),a=r(n.setup?p():p(e()),2),s=a[0],c=a[1];return n.setup&&o&&c(e()),s},y={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},g=t||{},v=g.trust;g.trust=function(e,n){return n?t(n,v(e)):v(e)},g.displayName="mithril",g.fragment=t.fragment;var w=t,b=function(e,t){var r=function(e){var t=i;i=e.state;try{e.state.updates.forEach(c)}finally{n(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),i=t}};return{oninit:function(e){n(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],cleanups:new Map,teardowns:new Map})},oncreate:r,onupdate:r,view:function(n){var r=i;i=n.state;try{return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},n.attrs,{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{i=r}},onremove:function(e){var t=i;i=e.state;try{o(e.state.teardowns.values()).forEach(c)}finally{i=t}}}};e.a=y,e.cast=b,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=g,e.jsx=w,e.useCallback=function(e,t){return h(function(){return e},t)},e.useEffect=f,e.useLayoutEffect=m,e.useMemo=h,e.useReducer=function(e,t,n){var o,a,s,c,u=i,l=!u.setup&&n?n(t):t;return o=r(p(l),3),a=o[0],s=o[1],c=o[2],[a,function(t){var n=u.states[c];return s(e(n,t))}]},e.useRef=function(e){return r(p({current:e}),1)[0]},e.useState=function(e){var t=i;return p(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mithril")):"function"==typeof define&&define.amd?define(["exports","mithril"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).cyanoMithril=e.cyanoMithril||{},e.m)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r,o=n(t);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=Function.prototype.call.bind(Function.prototype.call),m=function(){return o.default.redraw()},y=function(e){var t=r,n=t.depsIndex++,o=t.depsStates[n]||[],a=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every((function(e,t){return e===o[t]})):!t.setup);return void 0!==e&&(t.depsStates[n]=e),a},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var o=r;if(y(n)){var a=o.depsIndex,s=function(){var e=t();"function"==typeof e&&(o.teardowns.set(a,e),o.teardowns.set("_",m))},i=o.teardowns.get(a);try{"function"==typeof i&&i()}finally{o.teardowns.delete(a)}o.updates.push(e?function(){return new Promise((function(e){return requestAnimationFrame(e)})).then(s)}:s)}}},g=function(e,t){var n=r,o=n.statesIndex++;return n.setup||(n.states[o]=e),[n.states[o],function(e){var r=n.states[o],a=t?t(e,o):e;n.states[o]=a,JSON.stringify(a)!==JSON.stringify(r)&&m()},o]},b=h(!0),v=h(),w=function(e,t){var n=r,o=y(t),a=u(n.setup?g():g(e()),2),s=a[0],i=a[1];return n.setup&&o&&i(e()),s},O={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},j=o.default||{},x=j.trust;j.trust=function(e,t){return t?o.default(t,x(e)):x(e)},j.displayName="mithril",j.fragment=o.default.fragment;var k=o.default,S=function(e,t){var n=function(e){var t=r;r=e.state;try{e.state.updates.forEach(p)}finally{s(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),r=t}};return{oninit:function(e){s(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],cleanups:new Map,teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var o=r;r=n.state;try{return e(c(c(c({},t),n.attrs),{},{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{r=o}},onremove:function(e){var t=r;r=e.state;try{l(e.state.teardowns.values()).forEach(p)}finally{r=t}}}};e.a=O,e.cast=S,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=j,e.jsx=k,e.useCallback=function(e,t){return w((function(){return e}),t)},e.useEffect=b,e.useLayoutEffect=v,e.useMemo=w,e.useReducer=function(e,t,n){var o,a,s,i,c=r,l=!c.setup&&n?n(t):t;return o=u(g(l),3),a=o[0],s=o[1],i=o[2],[a,function(t){var n=c.states[i];return s(e(n,t))}]},e.useRef=function(e){return u(g({current:e}),1)[0]},e.useState=function(e){var t=r;return g(e,(function(e,n){return"function"==typeof e?e(t.states[n],n):e}))},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=cyano-mithril.js.map
{
"name": "cyano-mithril",
"version": "0.6.4",
"version": "0.6.5",
"description": "Takes a base component and returns a Mithril component",

@@ -8,8 +8,9 @@ "main": "dist/cyano-mithril",

"scripts": {
"npm-check-updates": "../../node_modules/npm-check-updates/bin/ncu -u",
"npm-check-updates": "../../node_modules/npm-check-updates/bin/cli.js -u",
"lint": "eslint ./src",
"build": "npm run clean && npm run rollup",
"build": "npm run clean && npm run rollup && npm run size",
"rollup": "../../node_modules/rollup/dist/bin/rollup -c ../../scripts/rollup.umd.js && ../../node_modules/rollup/dist/bin/rollup -c ../../scripts/rollup.es.js",
"clean": "rm -rf dist/*",
"size": "gzip -c dist/cyano-mithril.js | wc -c"
"size": "size-limit",
"size:why": "size-limit --why"
},

@@ -24,7 +25,16 @@ "files": [

"dependencies": {
"mithril-hooks": "^0.5.6"
"mithril-hooks": "^0.6.2"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.6.0",
"size-limit": "^4.6.0"
},
"peerDependencies": {
"mithril": ">=2.0.4"
}
},
"size-limit": [
{
"path": "dist/cyano-mithril.js"
}
]
}

Sorry, the diff of this file is not supported yet

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