Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-sort

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-sort - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.npmignore

2

package.json

@@ -1,1 +0,1 @@

{"name":"fast-sort","version":"1.1.0","description":"Blazing fast array sorting.","main":"sort.js","scripts":{"test":"node integration_test/index.j","publish":"node publish"},"repository":{"type":"git","url":"git+https://github.com/snovakovic/fast-sort.git"},"keywords":["sort","sortBy","order","orderBy"],"author":"Stefan Novakovic <stefan.novakovich@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/snovakovic/fast-sort/issues"},"homepage":"https://github.com/snovakovic/fast-sort#readme","devDependencies":{"eslint":"^4.4.1","eslint-config-airbnb-base":"^11.3.1","eslint-plugin-import":"^2.7.0","fs-extra":"^4.0.1"}}
{"name":"fast-sort","version":"1.1.1","description":"Blazing fast array sorting.","main":"sort.js","author":"Stefan Novakovic <stefan.novakovich@gmail.com>","license":"MIT","homepage":"https://github.com/snovakovic/fast-sort#readme","scripts":{"test":"node integration_test/index.js","publish":"node publish"},"bugs":{"url":"https://github.com/snovakovic/fast-sort/issues"},"repository":{"type":"git","url":"git+https://github.com/snovakovic/fast-sort.git"},"keywords":["sort","sortBy","order","orderBy"],"devDependencies":{"eslint":"^4.4.1","eslint-config-airbnb-base":"^11.3.1","eslint-plugin-import":"^2.7.0","fs-extra":"^4.0.1"}}

@@ -108,9 +108,9 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (valB == null) return -1;
if (valA < valB) return direction;
if (valA < valB) return -direction;
return -direction;
return direction;
};
var ascSorter = sorter.bind(null, -1);
var descSorter = sorter.bind(null, 1);
var ascSorter = sorter.bind(null, 1);
var descSorter = sorter.bind(null, -1);

@@ -117,0 +117,0 @@ var emptySortBy = function emptySortBy(a) {

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("js-flock",[],n):"object"==typeof exports?exports["js-flock"]=n():t["js-flock"]=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=10)}({1:function(t,n){t.exports=function(t){return Object.prototype.toString.call(t)}},10:function(t,n,r){var e=r(1),o=function t(n,r,e,o,u){var i=r(o),f=r(u);if(i===f){if(e.length){var c=e.slice();return t(n,c.shift(),c,o,u)}return 0}return null==i?1:null==f?-1:i<f?n:-n},u=o.bind(null,-1),i=o.bind(null,1),f=function(t){return t},c=function(t){var n=t.filter(function(t){return"function"!=typeof t});if(n.length)throw new TypeError("sort: expected [Function] but got "+e(n[0]))},l=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return Array.isArray(t)?(r=Array.isArray(r)?r:[r],c(r),t.sort(n.bind(null,r.shift(),r))):t};t.exports=function(t){return{asc:function(n){return l(t,u,n)},desc:function(n){return l(t,i,n)}}}}})});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("js-flock",[],n):"object"==typeof exports?exports["js-flock"]=n():t["js-flock"]=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=10)}({1:function(t,n){t.exports=function(t){return Object.prototype.toString.call(t)}},10:function(t,n,r){var e=r(1),o=function t(n,r,e,o,u){var i=r(o),f=r(u);if(i===f){if(e.length){var c=e.slice();return t(n,c.shift(),c,o,u)}return 0}return null==i?1:null==f?-1:i<f?-n:n},u=o.bind(null,1),i=o.bind(null,-1),f=function(t){return t},c=function(t){var n=t.filter(function(t){return"function"!=typeof t});if(n.length)throw new TypeError("sort: expected [Function] but got "+e(n[0]))},l=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return Array.isArray(t)?(r=Array.isArray(r)?r:[r],c(r),t.sort(n.bind(null,r.shift(),r))):t};t.exports=function(t){return{asc:function(n){return l(t,u,n)},desc:function(n){return l(t,i,n)}}}}})});

@@ -18,9 +18,9 @@ const getTag = require('./internals/getTag');

if (valB == null) return -1;
if (valA < valB) return direction;
if (valA < valB) return -direction;
return -direction;
return direction;
};
const ascSorter = sorter.bind(null, -1);
const descSorter = sorter.bind(null, 1);
const ascSorter = sorter.bind(null, 1);
const descSorter = sorter.bind(null, -1);

@@ -27,0 +27,0 @@ const emptySortBy = (a) => a;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc