@thi.ng/arrays
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@2.0.0...@thi.ng/arrays@2.0.1) (2021-10-13) | ||
**Note:** Version bump only for package @thi.ng/arrays | ||
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@1.0.3...@thi.ng/arrays@2.0.0) (2021-10-12) | ||
@@ -8,0 +16,0 @@ |
import { isArray } from "@thi.ng/checks/is-array"; | ||
import { isArrayLike } from "@thi.ng/checks/is-arraylike"; | ||
import { ensureIterable } from "./ensure-iterable"; | ||
import { ensureIterable } from "./ensure-iterable.js"; | ||
/** | ||
@@ -5,0 +5,0 @@ * Helper function to avoid unnecessary copying if `x` is already an |
@@ -1,22 +0,22 @@ | ||
export * from "./api"; | ||
export * from "./binary-search"; | ||
export * from "./bisect"; | ||
export * from "./ends-with"; | ||
export * from "./ensure-array"; | ||
export * from "./ensure-iterable"; | ||
export * from "./find"; | ||
export * from "./fill-range"; | ||
export * from "./fuzzy-match"; | ||
export * from "./is-sorted"; | ||
export * from "./insert"; | ||
export * from "./into"; | ||
export * from "./iterator"; | ||
export * from "./levenshtein"; | ||
export * from "./peek"; | ||
export * from "./quicksort"; | ||
export * from "./shuffle"; | ||
export * from "./sort-cached"; | ||
export * from "./starts-with"; | ||
export * from "./swap"; | ||
export * from "./swizzle"; | ||
export * from "./api.js"; | ||
export * from "./binary-search.js"; | ||
export * from "./bisect.js"; | ||
export * from "./ends-with.js"; | ||
export * from "./ensure-array.js"; | ||
export * from "./ensure-iterable.js"; | ||
export * from "./find.js"; | ||
export * from "./fill-range.js"; | ||
export * from "./fuzzy-match.js"; | ||
export * from "./is-sorted.js"; | ||
export * from "./insert.js"; | ||
export * from "./into.js"; | ||
export * from "./iterator.js"; | ||
export * from "./levenshtein.js"; | ||
export * from "./peek.js"; | ||
export * from "./quicksort.js"; | ||
export * from "./shuffle.js"; | ||
export * from "./sort-cached.js"; | ||
export * from "./starts-with.js"; | ||
export * from "./swap.js"; | ||
export * from "./swizzle.js"; | ||
//# sourceMappingURL=index.d.ts.map |
42
index.js
@@ -1,21 +0,21 @@ | ||
export * from "./api"; | ||
export * from "./binary-search"; | ||
export * from "./bisect"; | ||
export * from "./ends-with"; | ||
export * from "./ensure-array"; | ||
export * from "./ensure-iterable"; | ||
export * from "./find"; | ||
export * from "./fill-range"; | ||
export * from "./fuzzy-match"; | ||
export * from "./is-sorted"; | ||
export * from "./insert"; | ||
export * from "./into"; | ||
export * from "./iterator"; | ||
export * from "./levenshtein"; | ||
export * from "./peek"; | ||
export * from "./quicksort"; | ||
export * from "./shuffle"; | ||
export * from "./sort-cached"; | ||
export * from "./starts-with"; | ||
export * from "./swap"; | ||
export * from "./swizzle"; | ||
export * from "./api.js"; | ||
export * from "./binary-search.js"; | ||
export * from "./bisect.js"; | ||
export * from "./ends-with.js"; | ||
export * from "./ensure-array.js"; | ||
export * from "./ensure-iterable.js"; | ||
export * from "./find.js"; | ||
export * from "./fill-range.js"; | ||
export * from "./fuzzy-match.js"; | ||
export * from "./is-sorted.js"; | ||
export * from "./insert.js"; | ||
export * from "./into.js"; | ||
export * from "./iterator.js"; | ||
export * from "./levenshtein.js"; | ||
export * from "./peek.js"; | ||
export * from "./quicksort.js"; | ||
export * from "./shuffle.js"; | ||
export * from "./sort-cached.js"; | ||
export * from "./starts-with.js"; | ||
export * from "./swap.js"; | ||
export * from "./swizzle.js"; |
{ | ||
"name": "@thi.ng/arrays", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Array / Arraylike utilities", | ||
@@ -37,11 +37,11 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.0.0", | ||
"@thi.ng/checks": "^3.0.0", | ||
"@thi.ng/compare": "^2.0.0", | ||
"@thi.ng/equiv": "^2.0.0", | ||
"@thi.ng/errors": "^2.0.0", | ||
"@thi.ng/random": "^3.0.0" | ||
"@thi.ng/api": "^8.0.1", | ||
"@thi.ng/checks": "^3.0.1", | ||
"@thi.ng/compare": "^2.0.1", | ||
"@thi.ng/equiv": "^2.0.1", | ||
"@thi.ng/errors": "^2.0.1", | ||
"@thi.ng/random": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@thi.ng/testament": "^0.1.0" | ||
"@thi.ng/testament": "^0.1.1" | ||
}, | ||
@@ -61,2 +61,5 @@ "keywords": [ | ||
}, | ||
"engines": { | ||
"node": ">=12.7" | ||
}, | ||
"files": [ | ||
@@ -137,3 +140,3 @@ "*.js", | ||
}, | ||
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115" | ||
"gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19" | ||
} |
import { compare } from "@thi.ng/compare/compare"; | ||
import { swap } from "./swap"; | ||
import { swap } from "./swap.js"; | ||
// prettier-ignore | ||
@@ -4,0 +4,0 @@ export function quickSort(arr, _cmp = compare, _swap = swap, start = 0, end = arr.length - 1) { |
@@ -45,6 +45,7 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
For NodeJS (v14.6+): | ||
For Node.js REPL: | ||
```text | ||
node --experimental-specifier-resolution=node --experimental-repl-await | ||
# with flag only for < v16 | ||
node --experimental-repl-await | ||
@@ -51,0 +52,0 @@ > const arrays = await import("@thi.ng/arrays"); |
import type { TypedArray } from "@thi.ng/api"; | ||
import type { IRandom } from "@thi.ng/random"; | ||
import type { AnyArray } from "./api"; | ||
import type { AnyArray } from "./api.js"; | ||
/** | ||
@@ -5,0 +5,0 @@ * Shuffles the items in the given index range of array `buf` using |
import { isFunction } from "@thi.ng/checks/is-function"; | ||
import { compare } from "@thi.ng/compare/compare"; | ||
import { assert } from "@thi.ng/errors/assert"; | ||
import { quickSort } from "./quicksort"; | ||
import { multiSwap } from "./swap"; | ||
import { quickSort } from "./quicksort.js"; | ||
import { multiSwap } from "./swap.js"; | ||
/** | ||
@@ -7,0 +7,0 @@ * Takes a `src` array and `key` array of function to provide the sort key of |
@@ -1,2 +0,2 @@ | ||
import type { AnyArray, SwapFn } from "./api"; | ||
import type { AnyArray, SwapFn } from "./api.js"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Swaps values at index `x`/`y` in given array. |
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
70158
138
Updated@thi.ng/api@^8.0.1
Updated@thi.ng/checks@^3.0.1
Updated@thi.ng/compare@^2.0.1
Updated@thi.ng/equiv@^2.0.1
Updated@thi.ng/errors@^2.0.1
Updated@thi.ng/random@^3.0.1