Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
import{Store as t}from"mehdux";import{patch as n}from"picodom";const o=Object.assign||function(t){for(var n,o=1;o<arguments.length;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t};var r=function(o){var r=o.mapStateToProps,e=o.mapActionsToProps,i=o.state,a=o.actions,c=o.view,s=o.rootElm,u=o.store,p=o.preventUpdate,f=void 0!==p&&p,m=u;m&&m instanceof new t||(m=new t(i,a));var v=null,d=u.connect(r,e,!f)(function(t,o){n(v,v=c(t,o,u),s)}).dispose;return{destroy:function(){return d()}}};function e(t,n){return function(r){return function(e){var i=e.store;return r(o({},o({},i.getState(t),i.getActions(n)),e))}}}export{r as Mehlm,r as Render,e as connect}; | ||
import{Store as t}from"mehdux";import{patch as n}from"picodom";const r=Object.assign||function(t){for(var n,r=1;r<arguments.length;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t};var o=function(r){var o=r.mapStateToProps,e=r.mapActionsToProps,i=r.state,a=r.actions,c=r.view,s=r.rootElm,u=r.store,p=r.preventUpdate,f=void 0!==p&&p,m=u;m&&m instanceof new t||(m=new t(i,a));var v=null,d=u.connect(o,e,!f)(function(t,r){n(v,v=c(t,r,u),s)}).dispose;return{destroy:function(){return d()}}};function e(t,n){return function(o){return function(e){var i=e.store;return o(r({},r({},i.getState(t),i.getActions(n)),e))}}}export{o as Mehlm,o as render,e as connect}; | ||
//# sourceMappingURL=mehlm.esm.js.map |
@@ -1,2 +0,2 @@ | ||
var t=require("mehdux"),e=require("picodom");const r=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};var n=function(r){var n=r.mapStateToProps,o=r.mapActionsToProps,c=r.state,a=r.actions,i=r.view,s=r.rootElm,u=r.store,p=r.preventUpdate,f=void 0!==p&&p,v=u;v&&v instanceof new t.Store||(v=new t.Store(c,a));var d=null,l=u.connect(n,o,!f)(function(t,r){e.patch(d,d=i(t,r,u),s)}).dispose;return{destroy:function(){return l()}}};exports.Mehlm=n,exports.Render=n,exports.connect=function(t,e){return function(n){return function(o){var c=o.store;return n(r({},r({},c.getState(t),c.getActions(e)),o))}}}; | ||
var t=require("mehdux"),e=require("picodom");const r=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};var n=function(r){var n=r.mapStateToProps,o=r.mapActionsToProps,c=r.state,a=r.actions,i=r.view,s=r.rootElm,u=r.store,p=r.preventUpdate,f=void 0!==p&&p,v=u;v&&v instanceof new t.Store||(v=new t.Store(c,a));var d=null,l=u.connect(n,o,!f)(function(t,r){e.patch(d,d=i(t,r,u),s)}).dispose;return{destroy:function(){return l()}}};exports.Mehlm=n,exports.render=n,exports.connect=function(t,e){return function(n){return function(o){var c=o.store;return n(r({},r({},c.getState(t),c.getActions(e)),o))}}}; | ||
//# sourceMappingURL=mehlm.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mehdux"),require("picodom")):"function"==typeof define&&define.amd?define(["exports","mehdux","picodom"],t):t(e.mehlm={},e.mehdux,e.picodom)}(this,function(e,t,n){const o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};var r=function(e){var o=e.mapStateToProps,r=e.mapActionsToProps,i=e.state,c=e.actions,u=e.view,f=e.rootElm,p=e.store,s=e.preventUpdate,a=void 0!==s&&s,d=p;d&&d instanceof new t.Store||(d=new t.Store(i,c));var m=null,h=p.connect(o,r,!a)(function(e,t){n.patch(m,m=u(e,t,p),f)}).dispose;return{destroy:function(){return h()}}};e.Mehlm=r,e.Render=r,e.connect=function(e,t){return function(n){return function(r){var i=r.store;return n(o({},o({},i.getState(e),i.getActions(t)),r))}}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mehdux"),require("picodom")):"function"==typeof define&&define.amd?define(["exports","mehdux","picodom"],t):t(e.mehlm={},e.mehdux,e.picodom)}(this,function(e,t,n){const o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};var r=function(e){var o=e.mapStateToProps,r=e.mapActionsToProps,i=e.state,c=e.actions,u=e.view,f=e.rootElm,p=e.store,s=e.preventUpdate,a=void 0!==s&&s,d=p;d&&d instanceof new t.Store||(d=new t.Store(i,c));var m=null,h=p.connect(o,r,!a)(function(e,t){n.patch(m,m=u(e,t,p),f)}).dispose;return{destroy:function(){return h()}}};e.Mehlm=r,e.render=r,e.connect=function(e,t){return function(n){return function(r){var i=r.store;return n(o({},o({},i.getState(e),i.getActions(t)),r))}}}}); | ||
//# sourceMappingURL=mehlm.umd.js.map |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"source": "src/main.ts", | ||
@@ -25,4 +25,3 @@ "typings": "dist/index.d.ts", | ||
"scripts": { | ||
"release": | ||
"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish", | ||
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish", | ||
"bundle:main": "microbundle", | ||
@@ -34,3 +33,6 @@ "dev:main": "microbundle watch", | ||
}, | ||
"files": ["src", "dist"] | ||
"files": [ | ||
"src", | ||
"dist" | ||
] | ||
} |
@@ -15,4 +15,4 @@ <div align="center"> | ||
/** @jsx h */ | ||
import { h, patch } from 'picodom'; | ||
import { Render } from 'mehlm'; | ||
import { h } from 'picodom'; | ||
import { render } from 'mehlm'; | ||
@@ -37,3 +37,3 @@ function view(state, actions, storeInstance) { | ||
Render(App); | ||
render(App); | ||
``` | ||
@@ -57,4 +57,7 @@ | ||
```Javascript | ||
// import | ||
/** @jsx h */ | ||
import { h } from 'picodom'; | ||
import { render, connect } from 'mehlm'; | ||
const AwesomeButton = ({ state, actions }) => { | ||
@@ -61,0 +64,0 @@ return <button onclick={actions.inc}>{state.value}</button> |
@@ -55,2 +55,2 @@ import { Store } from 'mehdux' | ||
export { Mehlm, Mehlm as Render, connect } | ||
export { Mehlm, Mehlm as render, connect } |
Sorry, the diff of this file is not supported yet
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
15934
77