lean-nodent-runtime
Advanced tools
Comparing version 1.0.1 to 1.0.2
21
index.js
@@ -22,2 +22,23 @@ function $asyncbind(self, catcher) { | ||
$asyncbind.trampoline = function trampoline(t, x, s, e, u) { | ||
return function b(q) { | ||
while (q) { | ||
if (q.then) { | ||
q = q.then(b, e); | ||
return u ? undefined : q; | ||
} | ||
try { | ||
if (q.pop) { | ||
if (q.length) | ||
return q.pop() ? x.call(t) : q; | ||
q = s; | ||
} else | ||
q = q.call(t) | ||
} catch (r) { | ||
return e(r); | ||
} | ||
} | ||
} | ||
}; | ||
if (!Function.prototype.$asyncbind) { | ||
@@ -24,0 +45,0 @@ Object.defineProperty(Function.prototype, "$asyncbind", { |
{ | ||
"name": "lean-nodent-runtime", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Lean Runtime component of nodent - assuming that Promises are there by default (or polyfilled).", | ||
@@ -20,2 +20,5 @@ "main": "index.js", | ||
], | ||
"lib": [ | ||
"index.js" | ||
], | ||
"author": { | ||
@@ -34,4 +37,4 @@ "name": "Sebastian Werner", | ||
"fast-async": "^6.3.0", | ||
"release-it": "^6.1.1" | ||
"release-it": "^7.0.0" | ||
} | ||
} |
@@ -46,5 +46,5 @@ # Lean Nodent Runtime<br/>[![Sponsored by][sponsor-img]][sponsor] [![Version][npm-version-img]][npm] [![Downloads][npm-downloads-img]][npm] [![Build Status Unix][travis-img]][travis] [![Build Status Windows][appveyor-img]][appveyor] [![Dependencies][deps-img]][deps] | ||
<img src="https://github.com/sebastian-software/sebastian-software-brand/blob/master/sebastiansoftware-en.svg" alt="Sebastian Software GmbH Logo" width="250" height="200"/> | ||
<img src="https://cdn.rawgit.com/sebastian-software/sebastian-software-brand/3d93746f/sebastiansoftware-en.svg" alt="Sebastian Software GmbH Logo" width="250" height="200"/> | ||
Copyright 2016-2018<br/>[Matt](https://github.com/MatAtBread)<br/><br/> | ||
Copyright 2017-2018<br/>[Sebastian Software GmbH](http://www.sebastian-software.de) |
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
9192
106