cyano-mithril
Advanced tools
Comparing version 0.5.2 to 0.6.0
@@ -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(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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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")}()}var a;t=t&&t.hasOwnProperty("default")?t.default:t;var s=Function.prototype.call.bind(Function.prototype.call),i=function(){return t.redraw()},c=function(e){var t=a,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},u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=a;if(c(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",i))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=a,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)&&i()},r]},d=u(!0),p=u(),f=function(e,t){var n=a,r=c(t),s=o(n.setup?l():l(e()),2),i=s[0],u=s[1];return n.setup&&r&&u(e()),i},m={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"},h=t||{},y=h.trust;h.trust=function(e,n){return n?t(n,y(e)):y(e)},h.displayName="mithril";var g=t,v=function(e,t){var o=function(e){var t=a;a=e.state;try{e.state.updates.forEach(s)}finally{Object.assign(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),a=t}};return{oninit:function(e){Object.assign(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:o,onupdate:o,view:function(n){var o=a;a=n.state;try{return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},t,n.attrs,{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{a=o}},onremove:function(e){var t=a;a=e.state;try{n(e.state.teardowns.values()).forEach(s)}finally{a=t}}}};e.a=m,e.cast=v,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=h,e.jsx=g,e.useCallback=function(e,t){return f(function(){return e},t)},e.useEffect=d,e.useLayoutEffect=p,e.useMemo=f,e.useReducer=function(e,t,n){var r,s,i,c,u=a,d=!u.setup&&n?n(t):t;return r=o(l(d),3),s=r[0],i=r[1],c=r[2],[s,function(t){var n=u.states[c];return i(e(n,t))}]},e.useRef=function(e){return o(l({current:e}),1)[0]},e.useState=function(e){var t=a;return l(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=e||self).cyanoMithril=e.cyanoMithril||{},e.m)}(this,function(e,t){"use strict";function n(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 r(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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 s;t=t&&t.hasOwnProperty("default")?t.default:t;var i=Function.prototype.call.bind(Function.prototype.call),c=function(){return t.redraw()},u=function(e){var t=s,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},l=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=s;if(u(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",c))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=s,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)&&c()},r]},p=l(!0),f=l(),m=function(e,t){var r=s,o=u(t),a=n(r.setup?d():d(e()),2),i=a[0],c=a[1];return r.setup&&o&&c(e()),i},h={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"},y=t||{},g=y.trust;y.trust=function(e,n){return n?t(n,g(e)):g(e)},y.displayName="mithril",y.fragment=t.fragment;var v=t,b=function(e,t){var n=function(e){var t=s;s=e.state;try{e.state.updates.forEach(i)}finally{Object.assign(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),s=t}};return{oninit:function(e){Object.assign(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=s;s=n.state;try{return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(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{s=r}},onremove:function(e){var t=s;s=e.state;try{r(e.state.teardowns.values()).forEach(i)}finally{s=t}}}};e.a=h,e.cast=b,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=y,e.jsx=v,e.useCallback=function(e,t){return m(function(){return e},t)},e.useEffect=p,e.useLayoutEffect=f,e.useMemo=m,e.useReducer=function(e,t,r){var o,a,i,c,u=s,l=!u.setup&&r?r(t):t;return o=n(d(l),3),a=o[0],i=o[1],c=o[2],[a,function(t){var n=u.states[c];return i(e(n,t))}]},e.useRef=function(e){return n(d({current:e}),1)[0]},e.useState=function(e){var t=s;return d(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=cyano-mithril.js.map |
{ | ||
"name": "cyano-mithril", | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"description": "Takes a base component and returns a Mithril component", | ||
@@ -8,2 +8,3 @@ "main": "dist/cyano-mithril", | ||
"scripts": { | ||
"npm-check-updates": "../../node_modules/npm-check-updates/bin/ncu -u", | ||
"lint": "eslint ./src", | ||
@@ -23,7 +24,7 @@ "build": "npm run clean && npm run rollup", | ||
"dependencies": { | ||
"mithril-hooks": "^0.5.3" | ||
"mithril-hooks": "^0.5.4" | ||
}, | ||
"peerDependencies": { | ||
"mithril": "2.0.0-rc.6" | ||
"mithril": "2.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35878
368
+ Addedmithril@2.0.3(transitive)
- Removedmithril@2.0.0-rc.6(transitive)
Updatedmithril-hooks@^0.5.4