New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/enhanced-arrays

Package Overview
Dependencies
Maintainers
10
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/enhanced-arrays - npm Package Compare versions

Comparing version 1.1.0-prerelease.1 to 1.1.0

23

enhanced-arrays.js

@@ -5,3 +5,3 @@ (function (global, factory) {

(global = global || self, factory(global.enhanced_arrays = {}));
}(this, function (exports) { 'use strict';
}(this, (function (exports) { 'use strict';

@@ -169,3 +169,2 @@ function getUniqueValues(arr) {

function addSorting(add) {
var uniqueAscending = function() { return getUniqueValues(this.sorted_values); };
add.method("unsorted", function() { return this.values.slice(); });

@@ -175,4 +174,4 @@ add.method("ascending", function() { return this.sorted_values.slice(); });

add.method("unique", function() { return getUniqueValues(this.values); });
add.method("uniqueAscending", uniqueAscending);
add.method("uniqueDescending", function() { return uniqueAscending().reverse(); });
add.method("uniqueAscending", function() { return getUniqueValues(this.sorted_values); });
add.method("uniqueDescending", function() { return getUniqueValues(this.sorted_values).reverse(); });
}

@@ -418,6 +417,5 @@

"extent",
"rank",
"random", "sample",
"unsorted", "ascending", "descending", "unique", "uniqueAscending", "uniqueDescending",
"median", "quartiles", "quantiles",
"quartiles", "quantiles",
"unclean"

@@ -460,6 +458,8 @@ ]);

add.prop("datetime_array", true);
add.getter("values", function() { return numeric_array.values.map(numberToDate); });
add.getter("sorted_values", function() { return numeric_array.sorted_values.map(numberToDate); });
add.getter("values", function() { return Object.freeze(numeric_array.values.map(numberToDate)); });
add.getter("sorted_values", function() { return Object.freeze(numeric_array.sorted_values.map(numberToDate)); });
add.getter("median", function() { return numberToDate(numeric_array.median); });
add.prop("length", numeric_array.values.length);
add.prop("dropped_indexes", numeric_array.dropped_indexes);
add.method("rank", function() { return numeric_array.rank(arguments); });

@@ -484,3 +484,2 @@ var stealMethod = _stealMethod.bind(null, numeric_array);

function addSorting$1(add) {
var uniqueAscending = function() { return getUniqueValues(this.sorted_values); };
add.method("unsorted", function() { return this.values.slice(); });

@@ -490,4 +489,4 @@ add.method("ascending", function() { return this.sorted_values.slice(); });

add.method("unique", function() { return getUniqueValues(this.values); });
add.method("uniqueAscending", uniqueAscending);
add.method("uniqueDescending", function() { return uniqueAscending().reverse(); });
add.method("uniqueAscending", function() { return getUniqueValues(this.sorted_values); });
add.method("uniqueDescending", function() { return getUniqueValues(this.sorted_values).reverse(); });
}

@@ -617,2 +616,2 @@

}));
})));
{
"name": "@flourish/enhanced-arrays",
"version": "1.1.0-prerelease.1",
"version": "1.1.0",
"description": "Create immutable array-like-objects with useful methods",

@@ -24,8 +24,8 @@ "main": "enhanced-arrays.js",

"@flourish/eslint-plugin-flourish": "^0.7.2",
"eslint": "^5.16.0",
"husky": "^2.3.0",
"lint-staged": "^8.1.7",
"rollup": "^1.12.3",
"rollup-plugin-node-resolve": "^5.0.0",
"uglify-js": "^3.5.15"
"eslint": "^6.5.1",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"rollup": "^1.25.2",
"rollup-plugin-node-resolve": "^5.2.0",
"uglify-js": "^3.6.4"
},

@@ -32,0 +32,0 @@ "husky": {

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

# 1.1.0
* Add createDatetimeArray
* Fix uniqueDescending methods
# 1.0.0

@@ -2,0 +6,0 @@ * Change to @flourish/enhanced-arrays

@@ -8,6 +8,5 @@ import { createAdder, identity } from "../../common";

"extent",
"rank",
"random", "sample",
"unsorted", "ascending", "descending", "unique", "uniqueAscending", "uniqueDescending",
"median", "quartiles", "quantiles",
"quartiles", "quantiles",
"unclean"

@@ -50,6 +49,8 @@ ]);

add.prop("datetime_array", true);
add.getter("values", function() { return numeric_array.values.map(numberToDate); });
add.getter("sorted_values", function() { return numeric_array.sorted_values.map(numberToDate); });
add.getter("values", function() { return Object.freeze(numeric_array.values.map(numberToDate)); });
add.getter("sorted_values", function() { return Object.freeze(numeric_array.sorted_values.map(numberToDate)); });
add.getter("median", function() { return numberToDate(numeric_array.median); });
add.prop("length", numeric_array.values.length);
add.prop("dropped_indexes", numeric_array.dropped_indexes);
add.method("rank", function() { return numeric_array.rank(arguments); });

@@ -56,0 +57,0 @@ var stealMethod = _stealMethod.bind(null, numeric_array);

import { getUniqueValues } from "../../../common";
function addSorting(add) {
var uniqueAscending = function() { return getUniqueValues(this.sorted_values); };
add.method("unsorted", function() { return this.values.slice(); });

@@ -9,6 +8,6 @@ add.method("ascending", function() { return this.sorted_values.slice(); });

add.method("unique", function() { return getUniqueValues(this.values); });
add.method("uniqueAscending", uniqueAscending);
add.method("uniqueDescending", function() { return uniqueAscending().reverse(); });
add.method("uniqueAscending", function() { return getUniqueValues(this.sorted_values); });
add.method("uniqueDescending", function() { return getUniqueValues(this.sorted_values).reverse(); });
}
export default addSorting;
import { getUniqueValues } from "../../../common";
function addSorting(add) {
var uniqueAscending = function() { return getUniqueValues(this.sorted_values); };
add.method("unsorted", function() { return this.values.slice(); });

@@ -9,6 +8,6 @@ add.method("ascending", function() { return this.sorted_values.slice(); });

add.method("unique", function() { return getUniqueValues(this.values); });
add.method("uniqueAscending", uniqueAscending);
add.method("uniqueDescending", function() { return uniqueAscending().reverse(); });
add.method("uniqueAscending", function() { return getUniqueValues(this.sorted_values); });
add.method("uniqueDescending", function() { return getUniqueValues(this.sorted_values).reverse(); });
}
export default addSorting;
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