Comparing version 2.4.1 to 2.5.0
@@ -310,2 +310,8 @@ 'use strict'; | ||
}, { | ||
key: 'flock', | ||
value: function flock(fn) { | ||
(0, _invariant2.default)((0, _helpers.isfunc)(fn), 'Dodo#flock(fn) — fn not a function'); | ||
return Flock(fn(this)); | ||
} | ||
}, { | ||
key: meta, | ||
@@ -441,2 +447,2 @@ get: function get() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kb2RvLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBWUEsSUFBTSxTQUFTLE9BQU8sUUFBUCxDQUFUO0FBQ04sSUFBTSxRQUFRLE9BQU8sT0FBUCxDQUFSO0FBQ04sSUFBTSxRQUFRLE9BQU8sT0FBUCxDQUFSO0FBQ04sSUFBTSxPQUFPLE9BQU8sTUFBUCxDQUFQO0FBQ04sSUFBTSxpQkFBaUIsT0FBTyxnQkFBUCxDQUFqQjtBQUNOLElBQU0sWUFBWSxFQUFaOztBQUVOLElBQU0sU0FBUyxJQUFJLE9BQUosRUFBVDtBQUNOLElBQU0sV0FBVyxJQUFJLE9BQUosRUFBWDs7QUFFTixJQUFNLGVBQWUsU0FBZixZQUFlO1NBQ25CLEVBQUUsUUFBRixHQUFhLFFBQWIsQ0FBc0IsVUFBdEIsS0FBcUMsRUFBRSxRQUFGLEdBQWEsUUFBYixDQUFzQixVQUF0QixDQUFyQztDQURtQjs7SUFHQTtBQUNuQixXQURtQixJQUNuQixDQUFZLEtBQVosRUFBbUIsS0FBbkIsRUFBNkM7UUFBbkIsZ0VBQVEseUJBQVc7OzBCQUQxQixNQUMwQjs7QUFDM0MsUUFBSSxNQUFNLE9BQU4sQ0FBYyxLQUFkLENBQUosRUFDRSxRQUFRLDJCQUFhLEtBQWIsQ0FBUixDQURG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WVzKCldXG4gIGxldCBpID0gdGhpcy5zaXplXG4gIHdoaWxlIChpLS0pIHtcbiAgICBsZXQgZW50cnkgPSBlbnRyaWVzW2ldXG4gICAgZW50cmllc1tpXSA9IGZuKGVudHJ5WzFdLCBlbnRyeVswXSwgdGhpcylcbiAgfVxuICByZXR1cm4gZW50cmllc1xufVxuIl19 |
{ | ||
"name": "dodos", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "Pandas-inspired iterator-based data wrangling library for js", | ||
@@ -5,0 +5,0 @@ "main": "lib/dodo.js", |
@@ -223,2 +223,7 @@ import invariant from 'invariant' | ||
} | ||
flock(fn) { | ||
invariant(isfunc(fn), `Dodo#flock(fn) — fn not a function`) | ||
return Flock(fn(this)) | ||
} | ||
} | ||
@@ -225,0 +230,0 @@ |
Sorry, the diff of this file is too big to display
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
158021
3191