bemquery-async-dom
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,7 @@ # bemquery-async-dom Changelog | ||
## 0.1.3 | ||
* Updated CI configuration. | ||
* Updated dependencies. | ||
## 0.1.2 | ||
@@ -7,0 +12,0 @@ |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("bemquery-core")):"function"==typeof define&&define.amd?define(["bemquery-core"],e):e(t.bemquery)}(this,function(t){"use strict";function e(t,e){var r=[];return[].forEach.call(e.classList,function(e){var n=t.getStateFromClass(String(e));n&&r.push(n)}),r}var r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function(){function t(){r(this,t),this.read=[],this.write=[]}return n(t,[{key:"add",value:function(t,e){if("read"!==t&&"write"!==t)throw new TypeError("Type must be either 'read' or 'write'.");if("function"!=typeof e)throw new TypeError("Task must be a function.");this[t].push(e)}},{key:"run",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?"read":arguments[0];if("read"!==e&&"write"!==e)throw new TypeError("Type must be either 'read' or 'write'.");return new Promise(function(r){requestAnimationFrame(function(){var n=[];return t[e].forEach(function(t){n.push(t())}),t[e]=[],r(n)})})}}]),t}();t.BEMQuery.prototype.read=function(){return this.batch||(this.batch=new i),this.batch.run("read")},t.BEMQuery.prototype.write=function(){return this.batch||(this.batch=new i),this.batch.run("write")},t.BEMQuery.prototype.html=function(t){var e=this;return this.batch||(this.batch=new i),"undefined"!=typeof t?(t=String(t),this.batch.add("write",function(){var r=e.elements;r.forEach(function(e){e.innerHTML=t})})):this.batch.add("read",function(){var t=e.elements,r=[];return t.forEach(function(t){r.push(t.innerHTML)}),r}),this},t.BEMQuery.prototype.getStates=function(){var t=this;this.batch||(this.batch=new i);var r=this.elements;return this.batch.add("read",function(){var n=[];return r.forEach(function(r){n.push(e(t.converter,r))}),n}),this}}); | ||
//# sourceMappingURL=bemquery-async-dom.es5.js.map | ||
//# sourceMappingURL=bemquery-async-dom.es5.js.map |
@@ -1,2 +0,2 @@ | ||
/*! bemquery-async-dom v0.1.2 | (c) 2016 BEMQuery team | MIT license (see LICENSE) */ | ||
/*! bemquery-async-dom v0.1.3 | (c) 2016 BEMQuery team | MIT license (see LICENSE) */ | ||
import { BEMQuery } from 'bemquery-core'; | ||
@@ -169,2 +169,2 @@ | ||
}; | ||
//# sourceMappingURL=bemquery-async-dom.js.map | ||
//# sourceMappingURL=bemquery-async-dom.js.map |
@@ -1,2 +0,2 @@ | ||
/*! bemquery-async-dom v0.1.2 | (c) 2016 BEMQuery team | MIT license (see LICENSE) */ | ||
/*! bemquery-async-dom v0.1.3 | (c) 2016 BEMQuery team | MIT license (see LICENSE) */ | ||
(function (global, factory) { | ||
@@ -175,2 +175,2 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('bemquery-core')) : | ||
})); | ||
//# sourceMappingURL=bemquery-async-dom.umd.js.map | ||
//# sourceMappingURL=bemquery-async-dom.umd.js.map |
{ | ||
"name": "bemquery-async-dom", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "BEM asynchronous DOM module", | ||
@@ -11,4 +11,2 @@ "main": "dist/bemquery-async-dom.umd.js", | ||
"test": "karma start config/karma/default.js", | ||
"pretest-ci": "npm run pretest", | ||
"test-ci": "karma start config/karma/ci.js", | ||
"prebuild": "npm test", | ||
@@ -48,5 +46,6 @@ "build": "rollup -c config/rollup/umd.js && rollup -c config/rollup/es6.js && rollup -c config/rollup/es5.js", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.12.0", | ||
"eslint": "^3.0.1", | ||
"in-publish": "^2.0.0", | ||
"ink-docstrap": "^1.2.1", | ||
"is-travis": "^1.0.0", | ||
"jsdoc": "^3.4.0", | ||
@@ -66,3 +65,3 @@ "karma": "^1.0.0", | ||
"ncp": "^2.0.0", | ||
"rollup": "^0.33.0", | ||
"rollup": "^0.34.0", | ||
"rollup-plugin-babel": "^2.6.1", | ||
@@ -69,0 +68,0 @@ "rollup-plugin-commonjs": "^3.0.0", |
35754
322
29