@stdlib/array-base-getter
Advanced tools
Comparing version
@@ -131,3 +131,3 @@ /* | ||
* @example | ||
* var Float64Array = require( `@stdlib/array/float64` ); | ||
* var Float64Array = require( '@stdlib/array-float64' ); | ||
* | ||
@@ -149,3 +149,3 @@ * var arr = new Float64Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Float32Array = require( `@stdlib/array/float32` ); | ||
* var Float32Array = require( '@stdlib/array-float32' ); | ||
* | ||
@@ -167,3 +167,3 @@ * var arr = new Float32Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Int32Array = require( `@stdlib/array/int32` ); | ||
* var Int32Array = require( '@stdlib/array-int32' ); | ||
* | ||
@@ -185,3 +185,3 @@ * var arr = new Int32Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Int16Array = require( `@stdlib/array/int16` ); | ||
* var Int16Array = require( '@stdlib/array-int16' ); | ||
* | ||
@@ -203,3 +203,3 @@ * var arr = new Int16Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Int8Array = require( `@stdlib/array/int8` ); | ||
* var Int8Array = require( '@stdlib/array-int8' ); | ||
* | ||
@@ -221,3 +221,3 @@ * var arr = new Int8Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Uint32Array = require( `@stdlib/array/uint32` ); | ||
* var Uint32Array = require( '@stdlib/array-uint32' ); | ||
* | ||
@@ -239,3 +239,3 @@ * var arr = new Uint32Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Uint16Array = require( `@stdlib/array/uint16` ); | ||
* var Uint16Array = require( '@stdlib/array-uint16' ); | ||
* | ||
@@ -257,3 +257,3 @@ * var arr = new Uint16Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Uint8Array = require( `@stdlib/array/uint8` ); | ||
* var Uint8Array = require( '@stdlib/array-uint8' ); | ||
* | ||
@@ -275,3 +275,3 @@ * var arr = new Uint8Array( [ 1, 2, 3, 4 ] ); | ||
* @example | ||
* var Uint8ClampedArray = require( `@stdlib/array/uint8c` ); | ||
* var Uint8ClampedArray = require( '@stdlib/array-uint8c' ); | ||
* | ||
@@ -299,3 +299,3 @@ * var arr = new Uint8ClampedArray( [ 1, 2, 3, 4 ] ); | ||
*/ | ||
declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>; // tslint:disable-line:no-unnecessary-generics | ||
declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>; | ||
@@ -309,3 +309,3 @@ /** | ||
* @example | ||
* var dtype = require( `@stdlib/array/dtype` ); | ||
* var dtype = require( '@stdlib/array-dtype' ); | ||
* | ||
@@ -318,3 +318,3 @@ * var arr = [ 1, 2, 3, 4 ]; | ||
*/ | ||
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics | ||
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>; | ||
@@ -321,0 +321,0 @@ |
@@ -28,3 +28,3 @@ /** | ||
* var dtype = require( '@stdlib/array-dtype' ); | ||
* var get = require( '@stdlib/array-base-getter' ); | ||
* var getter = require( '@stdlib/array-base-getter' ); | ||
* | ||
@@ -31,0 +31,0 @@ * var arr = [ 1, 2, 3, 4 ]; |
{ | ||
"name": "@stdlib/array-base-getter", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Return an accessor function for retrieving an element from an indexed array-like object.", | ||
@@ -40,17 +40,18 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@stdlib/types": "^0.1.0" | ||
"@stdlib/types": "^0.3.1" | ||
}, | ||
"devDependencies": { | ||
"@stdlib/array-dtype": "^0.0.6", | ||
"@stdlib/array-dtype": "^0.1.0", | ||
"@stdlib/array-dtypes": "^0.1.0", | ||
"@stdlib/array-filled": "^0.0.6", | ||
"@stdlib/array-filled-by": "^0.0.2", | ||
"@stdlib/array-typed-real-dtypes": "^0.1.0", | ||
"@stdlib/assert-is-function": "^0.1.0", | ||
"@stdlib/bench": "^0.1.0", | ||
"@stdlib/math-base-assert-is-nan": "^0.1.0", | ||
"@stdlib/random-base-discrete-uniform": "^0.0.6", | ||
"@stdlib/array-filled": "^0.1.0", | ||
"@stdlib/array-filled-by": "^0.1.0", | ||
"@stdlib/array-typed-real-dtypes": "^0.1.1", | ||
"@stdlib/assert-is-function": "^0.1.1", | ||
"@stdlib/math-base-assert-is-nan": "^0.1.1", | ||
"@stdlib/random-base-discrete-uniform": "^0.1.0", | ||
"tape": "git+https://github.com/kgryte/tape.git#fix/globby", | ||
"istanbul": "^0.4.1", | ||
"tap-min": "git+https://github.com/Planeshifter/tap-min.git" | ||
"tap-min": "git+https://github.com/Planeshifter/tap-min.git", | ||
"@stdlib/bench-harness": "^0.2.0", | ||
"@stdlib/bench": "^0.3.1" | ||
}, | ||
@@ -57,0 +58,0 @@ "engines": { |
@@ -198,3 +198,3 @@ <!-- | ||
Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. | ||
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. | ||
@@ -212,4 +212,4 @@ </section> | ||
[test-image]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml/badge.svg?branch=v0.1.0 | ||
[test-url]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml?query=branch:v0.1.0 | ||
[test-image]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml/badge.svg?branch=v0.2.0 | ||
[test-url]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml?query=branch:v0.2.0 | ||
@@ -237,4 +237,7 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-getter/main.svg | ||
[deno-url]: https://github.com/stdlib-js/array-base-getter/tree/deno | ||
[deno-readme]: https://github.com/stdlib-js/array-base-getter/blob/deno/README.md | ||
[umd-url]: https://github.com/stdlib-js/array-base-getter/tree/umd | ||
[umd-readme]: https://github.com/stdlib-js/array-base-getter/blob/umd/README.md | ||
[esm-url]: https://github.com/stdlib-js/array-base-getter/tree/esm | ||
[esm-readme]: https://github.com/stdlib-js/array-base-getter/blob/esm/README.md | ||
[branches-url]: https://github.com/stdlib-js/array-base-getter/blob/main/branches.md | ||
@@ -244,3 +247,3 @@ | ||
[@stdlib/array/dtypes]: https://www.npmjs.com/package/@stdlib/stdlib | ||
[@stdlib/array/dtypes]: https://www.npmjs.com/package/@stdlib/array-dtypes | ||
@@ -247,0 +250,0 @@ </section> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
249
1.22%0
-100%45568
-0.48%13
8.33%+ Added
- Removed
Updated