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.5 to 0.6.6

3

dist/cyano-mithril.js

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

!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})}));
!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=n(t);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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.")}
/*! (c) 2020 Andrea Giammarchi */()}function l(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 d,f=JSON.stringify,p=String,m="object",y=function(e,t){return t},h=function(e,t,n){var r=p(t.push(n)-1);return e.set(n,r),r},g=function(e,t,n){for(var r=t&&o(t)===m?function(e,n){return""===e||-1<t.indexOf(e)?n:void 0}:t||y,a=new Map,s=[],i=[],c=+h(a,s,r.call({"":e},"",e)),u=!c;c<s.length;)u=!0,i[c]=f(s[c++],l,n);return"["+i.join(",")+"]";function l(e,t){if(u)return u=!u,t;var n=r.call(this,e,t);switch(o(n)){case m:if(null===n)return n;case"string":return a.get(n)||h(a,s,n)}return n}},b=Function.prototype.call.bind(Function.prototype.call),v=function(){return r.default.redraw()},w=function(e){var t=d,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 void 0!==e&&(t.depsStates[n]=e),o},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=d;if(w(n)){var o=r.depsIndex,a=function(){var e=t();"function"==typeof e&&(r.teardowns.set(o,e),r.teardowns.set("_",v))},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)}}},j=function(e,t){var n=d,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],a=t?t(e,r):e;n.states[r]=a,g(a)!==g(o)&&v()},r]},x=O(!0),k=O(),S=function(e,t){var n=d,r=w(t),o=u(n.setup?j():j(e()),2),a=o[0],s=o[1];return n.setup&&r&&s(e()),a},P={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"},I=r.default||{},A=I.trust;I.trust=function(e,t){return t?r.default(t,A(e)):A(e)},I.displayName="mithril",I.fragment=r.default.fragment;var M=r.default,E=function(e,t){var n=function(e){var t=d;d=e.state;try{e.state.updates.forEach(b)}finally{s(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),d=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 r=d;d=n.state;try{return e(c(c(c({},t),n.attrs),{},{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{d=r}},onremove:function(e){var t=d;d=e.state;try{e.state.teardowns.forEach(b)}finally{d=t}}}};e.a=P,e.cast=E,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=I,e.jsx=M,e.useCallback=function(e,t){return S((function(){return e}),t)},e.useEffect=x,e.useLayoutEffect=k,e.useMemo=S,e.useReducer=function(e,t,n){var r,o,a,s,i=d,c=!i.setup&&n?n(t):t;return r=u(j(c),3),o=r[0],a=r[1],s=r[2],[o,function(t){var n=i.states[s];return a(e(n,t))}]},e.useRef=function(e){return u(j({current:e}),1)[0]},e.useState=function(e){var t=d;return j(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.5",
"version": "0.6.6",
"description": "Takes a base component and returns a Mithril component",

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

"npm-check-updates": "../../node_modules/npm-check-updates/bin/cli.js -u",
"build": "node ../../node_modules/npm-run-all/bin/run-s/index.js build:*",
"lint": "eslint ./src",
"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": "size-limit",
"build:clean": "rm -rf dist/*",
"build:rollup": "../../node_modules/rollup/dist/bin/rollup -c ../../scripts/rollup.umd.js && ../../node_modules/rollup/dist/bin/rollup -c ../../scripts/rollup.es.js",
"build:size": "size-limit",
"size:why": "size-limit --why"

@@ -25,7 +25,7 @@ },

"dependencies": {
"mithril-hooks": "^0.6.2"
"mithril-hooks": "^0.6.4"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.6.0",
"size-limit": "^4.6.0"
"@size-limit/preset-small-lib": "^4.10.2",
"size-limit": "^4.10.2"
},

@@ -32,0 +32,0 @@ "peerDependencies": {

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