Comparing version 2.6.0 to 2.6.1
@@ -68,3 +68,4 @@ 'use strict'; | ||
(0, _invariant2.default)(Array.isArray(array), 'new Dodo(arr, index) - arr is required'); | ||
(0, _invariant2.default)(index && Object.keys(index).length == array[0].length, 'new Dodo(arr, index) - index is missing or malformed'); | ||
(0, _invariant2.default)(index, 'new Dodo(arr, index) - index is missing'); | ||
(0, _invariant2.default)(Object.keys(index).length == array[0].length, 'new Dodo(arr, index) - index length (' + Object.keys(index).length + ') != array[0].length (' + array[0].length + ')'); | ||
@@ -457,3 +458,2 @@ Arrays.set(this, array); | ||
return entries; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kb2RvLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7QUFFQTs7Ozs7Ozs7OztBQUtBLElBQU0sU0FBUyxPQUFPLFFBQVAsQ0FBVDtBQUNOLElBQU0sUUFBUSxPQUFPLE9BQVAsQ0FBUjtBQUNOLElBQU0sUUFBUSxPQUFPLE9BQVAsQ0FBUjtBQUNOLElBQU0sT0FBTyxPQUFPLE1BQVAsQ0FBUDtBQUNOLElBQU0saUJBQWlCLE9BQU8sZ0JBQVAsQ0FBakI7QUFDTixJQUFNLFlBQVksRUFBWjs7QUFFTixJQUFNLFNBQVMsSUFBSSxPQUFKLEVBQVQ7QUFDTixJQUFNLFdBQVcsSUFBSSxPQUFKLEVBQVg7O0FBRU4sSUFBTSxlQUFlLFNBQWYsWUFBZTtTQUNuQixFQUFFLFFBQUYsR0FBYSxRQUFiLENBQXNCLFVBQXRCLEtBQXFDLEVBQUUsUUFBRixHQUFhLFFBQWIsQ0FBc0IsVUFBdEIsQ0FBckM7Q0FEbUI7O0lBR0E7QUFDbkIsV0FEbUIsSUFDbkIsQ0FBWSxL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swXSwgdGhpcylcbiAgfVxuICByZXR1cm4gZW50cmllc1xufVxuIl19 | ||
} |
@@ -154,3 +154,2 @@ 'use strict'; | ||
return (0, _zipObject2.default)(arr, [].concat(_toConsumableArray(arr.keys()))); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9oZWxwZXJzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O1FBSWdCO1FBWUE7UUFvQkE7UUFXQTtRQXNDQTs7QUFyRmhCOzs7Ozs7Ozs7O0FBRU8sSUFBTSw4QkFBVyxTQUFYLFFBQVc7U0FBSztDQUFMOztBQUVqQixTQUFTLE9BQVQsQ0FBaUIsS0FBakIsRUFBd0I7QUFDN0IsTUFBSSxNQUFNLE1BQU0sTUFBTixDQURtQjtBQUU3QixTQUFPLFVBQVMsQ0FBVCxFQUFZO0FBQ2pCLFFBQUksUUFBUSxDQUFSLENBRGE7QUFFakIsUUFBSSxJQUFJLEdBQUosQ0FGYTtBQUdqQixXQUFPLEdBQVAsRUFBWTtBQUNWLGNBQVEsTUFBTSxDQUFOLEVBQVMsS0FBVCxDQUFSLENBRFU7S0FBWjtBQUdBLFdBQU8sS0FBUCxDQU5pQjtHQUFaLENBRnNCO0NBQXhCOztBQVlBLFNBQVMsTUFBVCxDQUFnQixHQUFoQixFQUFxQjtBQUMxQixNQUFNLE1BQU0sSUFBSSxNQUFKLENBRGM7QUFFMUIsU0FBTyxVQUFTLEtBQVQsRUFBZ0I7QUFDckIsUUFBSSxJQUFJLENBQUMsQ0FBRCxDQURhO0FBRXJCLFdBQU8sRUFBRSxDQUFGLEdBQU0sR0FBTixFQUFXO0FBQ2hCLFlBQU0sQ0FBTixJQUFXLElBQUksQ0FBSixFQUFPLE1BQU0sQ0FBTixDQUFQLENBQVgsQ0FEZ0I7S0FBbEI7QUFHQSxXQUFPLEtBQVAsQ0FMcUI7R0FBaEIsQ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}; |
{ | ||
"name": "dodos", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Pandas-inspired iterator-based data wrangling library for js", | ||
@@ -5,0 +5,0 @@ "main": "lib/dodo.js", |
@@ -32,4 +32,5 @@ import invariant from 'invariant' | ||
invariant(Array.isArray(array), `new Dodo(arr, index) - arr is required`) | ||
invariant(index && Object.keys(index).length == array[0].length, | ||
`new Dodo(arr, index) - index is missing or malformed`) | ||
invariant(index , `new Dodo(arr, index) - index is missing`) | ||
invariant(Object.keys(index).length == array[0].length, | ||
`new Dodo(arr, index) - index length (${Object.keys(index).length}) != array[0].length (${array[0].length})`) | ||
@@ -36,0 +37,0 @@ Arrays.set(this, array) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
105393
3114