Comparing version 1.0.0-dev.201705161423 to 1.0.0-dev.201705161439
@@ -26,3 +26,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.dask = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
const v = dsk[result]; | ||
console.log('dask-pending:', result); | ||
// console.log('dask-pending:', result); | ||
if (v == result) { | ||
@@ -44,6 +44,7 @@ console.log('dask-resolved', result, '=', v); | ||
const args = (v[fun_name] || []); | ||
// console.log('dask-calling fun=', fun_name); | ||
const val = await fun.apply(null, await Promise.all(args.map((arg) => { | ||
return _get(dsk, arg, cache, funcs); | ||
}))); | ||
console.log('dask-resolved', result, '=', val); | ||
console.log('dask-resolved fun=', fun_name, result, '=', val); | ||
deferred.resolve(val); | ||
@@ -50,0 +51,0 @@ return val; |
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _keys=require("babel-runtime/core-js/object/keys"),_keys2=_interopRequireDefault(_keys),_regenerator=require("babel-runtime/regenerator"),_regenerator2=_interopRequireDefault(_regenerator),_asyncToGenerator2=require("babel-runtime/helpers/asyncToGenerator"),_asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2),_promise=require("babel-runtime/core-js/promise"),_promise2=_interopRequireDefault(_promise),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_typeof2=require("babel-runtime/helpers/typeof"),_typeof3=_interopRequireDefault(_typeof2);!function(e){if("object"===("undefined"==typeof exports?"undefined":(0,_typeof3.default)(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.dask=e()}}(function(){return function e(r,t,n){function o(a,i){if(!t[a]){if(!r[a]){var s="function"==typeof require&&require;if(!i&&s)return s(a,!0);if(u)return u(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=t[a]={exports:{}};r[a][0].call(f.exports,function(e){var t=r[a][1][e];return o(t?t:e)},f,f.exports,e,r,t,n)}return t[a].exports}for(var u="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,r,t){var n=function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(r,t,n){var u;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u={},e.next=3,o(r,t,u,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(r,t,n){return e.apply(this,arguments)}}(),o=function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(r,t,n,l){var f,c,d,p,_,b,y,v,k;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t in r){e.next=2;break}return e.abrupt("return",t);case 2:if(f=r[t],console.log("dask-pending:",t),f!=t){e.next=7;break}return console.log("dask-resolved",t,"=",f),e.abrupt("return",f);case 7:if(!(t in n)){e.next=9;break}return e.abrupt("return",n[t].promise);case 9:if(c=new s,n[t]=c,!u.default(f)){e.next=30;break}if(d=(0,_keys2.default)(f),1!=d.length){e.next=28;break}if(p=d[0],_=l[p],!i.default(_)){e.next=28;break}return b=f[p]||[],e.t0=_,e.next=21,_promise2.default.all(b.map(function(e){return o(r,e,n,l)}));case 21:return e.t1=e.sent,e.next=24,e.t0.apply.call(e.t0,null,e.t1);case 24:return y=e.sent,console.log("dask-resolved",t,"=",y),c.resolve(y),e.abrupt("return",y);case 28:e.next=39;break;case 30:if(!a.default(f)){e.next=39;break}if(v=r[f],!v){e.next=39;break}return e.next=35,o(r,f,n,l);case 35:return k=e.sent,console.log("dask-resolved",t,"=",k),c.resolve(k),e.abrupt("return",k);case 39:return console.log("dask-resolved",t,"=",f),c.resolve(f),e.abrupt("return",f);case 42:case"end":return e.stop()}},e,this)}));return function(r,t,n,o){return e.apply(this,arguments)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=e("lodash-ts/isObject"),a=e("lodash-ts/isString"),i=e("lodash-ts/isFunction"),s=function e(){var r=this;(0,_classCallCheck3.default)(this,e),this.promise=new _promise2.default(function(e,t){r.resolve=e,r.reject=t})};t.get=n,t.default=n},{"lodash-ts/isFunction":3,"lodash-ts/isObject":4,"lodash-ts/isString":6}],2:[function(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=Array.isArray},{}],3:[function(e,r,t){function n(e){var r=o.default(e)?s.call(e):"";return r==u||r==a}Object.defineProperty(t,"__esModule",{value:!0});var o=e("./isObject"),u="[object Function]",a="[object GeneratorFunction]",i=Object.prototype,s=i.toString;t.default=n},{"./isObject":4}],4:[function(e,r,t){function n(e){var r="undefined"==typeof e?"undefined":(0,_typeof3.default)(e);return!!e&&("object"==r||"function"==r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},{}],5:[function(e,r,t){function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":(0,_typeof3.default)(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},{}],6:[function(e,r,t){function n(e){return"string"==typeof e||!o.default(e)&&u.default(e)&&s.call(e)==a}Object.defineProperty(t,"__esModule",{value:!0});var o=e("./isArray"),u=e("./isObjectLike"),a="[object String]",i=Object.prototype,s=i.toString;t.default=n},{"./isArray":2,"./isObjectLike":5}]},{},[1])(1)}); | ||
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _keys=require("babel-runtime/core-js/object/keys"),_keys2=_interopRequireDefault(_keys),_regenerator=require("babel-runtime/regenerator"),_regenerator2=_interopRequireDefault(_regenerator),_asyncToGenerator2=require("babel-runtime/helpers/asyncToGenerator"),_asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2),_promise=require("babel-runtime/core-js/promise"),_promise2=_interopRequireDefault(_promise),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_typeof2=require("babel-runtime/helpers/typeof"),_typeof3=_interopRequireDefault(_typeof2);!function(e){if("object"===("undefined"==typeof exports?"undefined":(0,_typeof3.default)(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.dask=e()}}(function(){return function e(r,t,n){function o(a,i){if(!t[a]){if(!r[a]){var s="function"==typeof require&&require;if(!i&&s)return s(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var l=t[a]={exports:{}};r[a][0].call(l.exports,function(e){var t=r[a][1][e];return o(t?t:e)},l,l.exports,e,r,t,n)}return t[a].exports}for(var u="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,r,t){var n=function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(r,t,n){var u;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u={},e.next=3,o(r,t,u,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(r,t,n){return e.apply(this,arguments)}}(),o=function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(r,t,n,f){var l,c,d,p,_,b,y,v,k;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t in r){e.next=2;break}return e.abrupt("return",t);case 2:if(l=r[t],l!=t){e.next=6;break}return console.log("dask-resolved",t,"=",l),e.abrupt("return",l);case 6:if(!(t in n)){e.next=8;break}return e.abrupt("return",n[t].promise);case 8:if(c=new s,n[t]=c,!u.default(l)){e.next=29;break}if(d=(0,_keys2.default)(l),1!=d.length){e.next=27;break}if(p=d[0],_=f[p],!i.default(_)){e.next=27;break}return b=l[p]||[],e.t0=_,e.next=20,_promise2.default.all(b.map(function(e){return o(r,e,n,f)}));case 20:return e.t1=e.sent,e.next=23,e.t0.apply.call(e.t0,null,e.t1);case 23:return y=e.sent,console.log("dask-resolved fun=",p,t,"=",y),c.resolve(y),e.abrupt("return",y);case 27:e.next=38;break;case 29:if(!a.default(l)){e.next=38;break}if(v=r[l],!v){e.next=38;break}return e.next=34,o(r,l,n,f);case 34:return k=e.sent,console.log("dask-resolved",t,"=",k),c.resolve(k),e.abrupt("return",k);case 38:return console.log("dask-resolved",t,"=",l),c.resolve(l),e.abrupt("return",l);case 41:case"end":return e.stop()}},e,this)}));return function(r,t,n,o){return e.apply(this,arguments)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=e("lodash-ts/isObject"),a=e("lodash-ts/isString"),i=e("lodash-ts/isFunction"),s=function e(){var r=this;(0,_classCallCheck3.default)(this,e),this.promise=new _promise2.default(function(e,t){r.resolve=e,r.reject=t})};t.get=n,t.default=n},{"lodash-ts/isFunction":3,"lodash-ts/isObject":4,"lodash-ts/isString":6}],2:[function(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=Array.isArray},{}],3:[function(e,r,t){function n(e){var r=o.default(e)?s.call(e):"";return r==u||r==a}Object.defineProperty(t,"__esModule",{value:!0});var o=e("./isObject"),u="[object Function]",a="[object GeneratorFunction]",i=Object.prototype,s=i.toString;t.default=n},{"./isObject":4}],4:[function(e,r,t){function n(e){var r="undefined"==typeof e?"undefined":(0,_typeof3.default)(e);return!!e&&("object"==r||"function"==r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},{}],5:[function(e,r,t){function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":(0,_typeof3.default)(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},{}],6:[function(e,r,t){function n(e){return"string"==typeof e||!o.default(e)&&u.default(e)&&s.call(e)==a}Object.defineProperty(t,"__esModule",{value:!0});var o=e("./isArray"),u=e("./isObjectLike"),a="[object String]",i=Object.prototype,s=i.toString;t.default=n},{"./isArray":2,"./isObjectLike":5}]},{},[1])(1)}); |
@@ -25,3 +25,3 @@ "use strict"; | ||
const v = dsk[result]; | ||
console.log('dask-pending:', result); | ||
// console.log('dask-pending:', result); | ||
if (v == result) { | ||
@@ -43,6 +43,7 @@ console.log('dask-resolved', result, '=', v); | ||
const args = (v[fun_name] || []); | ||
// console.log('dask-calling fun=', fun_name); | ||
const val = await fun.apply(null, await Promise.all(args.map((arg) => { | ||
return _get(dsk, arg, cache, funcs); | ||
}))); | ||
console.log('dask-resolved', result, '=', val); | ||
console.log('dask-resolved fun=', fun_name, result, '=', val); | ||
deferred.resolve(val); | ||
@@ -49,0 +50,0 @@ return val; |
{ | ||
"name": "dask", | ||
"version": "1.0.0-dev.201705161423", | ||
"version": "1.0.0-dev.201705161439", | ||
"description": "Task schadule in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,3 +34,3 @@ (function (factory) { | ||
const v = dsk[result]; | ||
console.log('dask-pending:', result); | ||
// console.log('dask-pending:', result); | ||
if (v == result) { | ||
@@ -52,6 +52,7 @@ console.log('dask-resolved', result, '=', v); | ||
const args = (v[fun_name] || []); | ||
// console.log('dask-calling fun=', fun_name); | ||
const val = await fun.apply(null, await Promise.all(args.map((arg) => { | ||
return _get(dsk, arg, cache, funcs); | ||
}))); | ||
console.log('dask-resolved', result, '=', val); | ||
console.log('dask-resolved fun=', fun_name, result, '=', val); | ||
deferred.resolve(val); | ||
@@ -58,0 +59,0 @@ return val; |
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
19816
460