react-sortable-hoc
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -5,5 +5,13 @@ # Change Log | ||
<a name="1.3.1"></a> | ||
## [1.3.1](https://github.com/clauderic/react-sortable-hoc/compare/v1.3.0...v1.3.1) (2019-01-09) | ||
### Bug Fixes | ||
- Fix CommonJS and UMD builds, `babel-plugin-transform-async-to-promises` was injecting non-transpiled ES6 into the final bundle (`const`) ([#474](https://github.com/clauderic/react-sortable-hoc/issues/474)) | ||
<a name="1.3.0"></a> | ||
## [1.3.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.1.0...v1.3.0) (2019-01-08) | ||
## [1.3.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.2.0...v1.3.0) (2019-01-08) | ||
@@ -14,6 +22,2 @@ ### Bug Fixes | ||
### Features | ||
- added helperContainer prop ([286eff4](https://github.com/clauderic/react-sortable-hoc/commit/286eff4)) | ||
<a name="1.2.0"></a> | ||
@@ -20,0 +24,0 @@ |
@@ -9,9 +9,9 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
// A type of promise-like that resolves synchronously and supports only one observer | ||
const _Pact = (function() { | ||
var _Pact = (function() { | ||
function _Pact() {} | ||
_Pact.prototype.then = function(onFulfilled, onRejected) { | ||
const result = new _Pact(); | ||
const state = this.s; | ||
var result = new _Pact(); | ||
var state = this.s; | ||
if (state) { | ||
const callback = state & 1 ? onFulfilled : onRejected; | ||
var callback = state & 1 ? onFulfilled : onRejected; | ||
if (callback) { | ||
@@ -30,3 +30,3 @@ try { | ||
try { | ||
const value = _this.v; | ||
var value = _this.v; | ||
if (_this.s & 1) { | ||
@@ -68,3 +68,3 @@ _settle(result, 1, onFulfilled ? onFulfilled(value) : value); | ||
pact.v = value; | ||
const observer = pact.o; | ||
var observer = pact.o; | ||
if (observer) { | ||
@@ -90,6 +90,6 @@ observer(pact); | ||
// Sentinel value for early returns in generators | ||
const _earlyReturn = {}; | ||
var _earlyReturn = {}; | ||
// Asynchronous generator class; accepts the entrypoint of the generator, to which it passes itself when the generator should start | ||
const _AsyncGenerator = (function() { | ||
var _AsyncGenerator = (function() { | ||
function _AsyncGenerator(entry) { | ||
@@ -121,7 +121,7 @@ this._entry = entry; | ||
// Advance the generator, starting it if it has yet to be started | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
const _entry = _this._entry; | ||
var _entry = _this._entry; | ||
if (_entry === null) { | ||
@@ -144,3 +144,3 @@ // Generator is started, but not awaiting a yield expression | ||
} else { | ||
const pact = new _Pact(); | ||
var pact = new _Pact(); | ||
_this._resolve(pact); | ||
@@ -162,5 +162,5 @@ _this._pact = null; | ||
// Early return from the generator if started, otherwise abandons the generator | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
@@ -185,5 +185,5 @@ if (_this._entry === null) { | ||
// Inject an exception into the pending yield expression | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve, reject) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
@@ -190,0 +190,0 @@ if (_this._entry === null) { |
@@ -10,9 +10,9 @@ (function (global, factory) { | ||
// A type of promise-like that resolves synchronously and supports only one observer | ||
const _Pact = (function() { | ||
var _Pact = (function() { | ||
function _Pact() {} | ||
_Pact.prototype.then = function(onFulfilled, onRejected) { | ||
const result = new _Pact(); | ||
const state = this.s; | ||
var result = new _Pact(); | ||
var state = this.s; | ||
if (state) { | ||
const callback = state & 1 ? onFulfilled : onRejected; | ||
var callback = state & 1 ? onFulfilled : onRejected; | ||
if (callback) { | ||
@@ -31,3 +31,3 @@ try { | ||
try { | ||
const value = _this.v; | ||
var value = _this.v; | ||
if (_this.s & 1) { | ||
@@ -69,3 +69,3 @@ _settle(result, 1, onFulfilled ? onFulfilled(value) : value); | ||
pact.v = value; | ||
const observer = pact.o; | ||
var observer = pact.o; | ||
if (observer) { | ||
@@ -91,6 +91,6 @@ observer(pact); | ||
// Sentinel value for early returns in generators | ||
const _earlyReturn = {}; | ||
var _earlyReturn = {}; | ||
// Asynchronous generator class; accepts the entrypoint of the generator, to which it passes itself when the generator should start | ||
const _AsyncGenerator = (function() { | ||
var _AsyncGenerator = (function() { | ||
function _AsyncGenerator(entry) { | ||
@@ -122,7 +122,7 @@ this._entry = entry; | ||
// Advance the generator, starting it if it has yet to be started | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
const _entry = _this._entry; | ||
var _entry = _this._entry; | ||
if (_entry === null) { | ||
@@ -145,3 +145,3 @@ // Generator is started, but not awaiting a yield expression | ||
} else { | ||
const pact = new _Pact(); | ||
var pact = new _Pact(); | ||
_this._resolve(pact); | ||
@@ -163,5 +163,5 @@ _this._pact = null; | ||
// Early return from the generator if started, otherwise abandons the generator | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
@@ -186,5 +186,5 @@ if (_this._entry === null) { | ||
// Inject an exception into the pending yield expression | ||
const _this = this; | ||
var _this = this; | ||
return _this._promise = new Promise(function (resolve, reject) { | ||
const _pact = _this._pact; | ||
var _pact = _this._pact; | ||
if (_pact === null) { | ||
@@ -191,0 +191,0 @@ if (_this._entry === null) { |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -5,0 +5,0 @@ "author": { |
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
950073