@stdlib/slice-base-length 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +6 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +10 -10
- package/package.json +7 -6
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ See [LICENSE][stdlib-license].
|
|
|
209
209
|
|
|
210
210
|
## Copyright
|
|
211
211
|
|
|
212
|
-
Copyright © 2016-
|
|
212
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
213
213
|
|
|
214
214
|
</section>
|
|
215
215
|
|
|
@@ -222,8 +222,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
222
222
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/slice-base-length.svg
|
|
223
223
|
[npm-url]: https://npmjs.org/package/@stdlib/slice-base-length
|
|
224
224
|
|
|
225
|
-
[test-image]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
226
|
-
[test-url]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml?query=branch:v0.
|
|
225
|
+
[test-image]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
226
|
+
[test-url]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml?query=branch:v0.2.0
|
|
227
227
|
|
|
228
228
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/slice-base-length/main.svg
|
|
229
229
|
[coverage-url]: https://codecov.io/github/stdlib-js/slice-base-length?branch=main
|
|
@@ -246,8 +246,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
246
246
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
247
247
|
|
|
248
248
|
[deno-url]: https://github.com/stdlib-js/slice-base-length/tree/deno
|
|
249
|
+
[deno-readme]: https://github.com/stdlib-js/slice-base-length/blob/deno/README.md
|
|
249
250
|
[umd-url]: https://github.com/stdlib-js/slice-base-length/tree/umd
|
|
251
|
+
[umd-readme]: https://github.com/stdlib-js/slice-base-length/blob/umd/README.md
|
|
250
252
|
[esm-url]: https://github.com/stdlib-js/slice-base-length/tree/esm
|
|
253
|
+
[esm-readme]: https://github.com/stdlib-js/slice-base-length/blob/esm/README.md
|
|
251
254
|
[branches-url]: https://github.com/stdlib-js/slice-base-length/blob/main/branches.md
|
|
252
255
|
|
|
253
256
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/slice-base-length/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -29,8 +29,8 @@ import { Slice } from '@stdlib/types/slice';
|
|
|
29
29
|
* @returns number of elements
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* var Slice = require(
|
|
33
|
-
* var normalizeSlice = require(
|
|
32
|
+
* var Slice = require( '@stdlib/slice-ctor' );
|
|
33
|
+
* var normalizeSlice = require( '@stdlib/slice-base-normalize-slice' );
|
|
34
34
|
*
|
|
35
35
|
* var s = new Slice( 2, null, 1 );
|
|
36
36
|
* // returns <Slice>
|
|
@@ -45,8 +45,8 @@ import { Slice } from '@stdlib/types/slice';
|
|
|
45
45
|
* // returns 3
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* var Slice = require(
|
|
49
|
-
* var normalizeSlice = require(
|
|
48
|
+
* var Slice = require( '@stdlib/slice-ctor' );
|
|
49
|
+
* var normalizeSlice = require( '@stdlib/slice-base-normalize-slice' );
|
|
50
50
|
*
|
|
51
51
|
* var s = new Slice( 2, null, 2 );
|
|
52
52
|
* // returns <Slice>
|
|
@@ -61,8 +61,8 @@ import { Slice } from '@stdlib/types/slice';
|
|
|
61
61
|
* // returns 2
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* var Slice = require(
|
|
65
|
-
* var normalizeSlice = require(
|
|
64
|
+
* var Slice = require( '@stdlib/slice-ctor' );
|
|
65
|
+
* var normalizeSlice = require( '@stdlib/slice-base-normalize-slice' );
|
|
66
66
|
*
|
|
67
67
|
* var s = new Slice( -1, null, -2 );
|
|
68
68
|
*
|
|
@@ -76,8 +76,8 @@ import { Slice } from '@stdlib/types/slice';
|
|
|
76
76
|
* // returns 3
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
|
-
* var Slice = require(
|
|
80
|
-
* var normalizeSlice = require(
|
|
79
|
+
* var Slice = require( '@stdlib/slice-ctor' );
|
|
80
|
+
* var normalizeSlice = require( '@stdlib/slice-base-normalize-slice' );
|
|
81
81
|
*
|
|
82
82
|
* var s = new Slice( 3, 5, -1 );
|
|
83
83
|
*
|
|
@@ -91,8 +91,8 @@ import { Slice } from '@stdlib/types/slice';
|
|
|
91
91
|
* // returns 0
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* var Slice = require(
|
|
95
|
-
* var normalizeSlice = require(
|
|
94
|
+
* var Slice = require( '@stdlib/slice-ctor' );
|
|
95
|
+
* var normalizeSlice = require( '@stdlib/slice-base-normalize-slice' );
|
|
96
96
|
*
|
|
97
97
|
* var s = new Slice( 5, 3, 1 );
|
|
98
98
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/slice-base-length",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Compute the number of elements in a normalized slice.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,18 +37,19 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/math-base-special-ceil": "^0.
|
|
41
|
-
"@stdlib/types": "^0.1
|
|
40
|
+
"@stdlib/math-base-special-ceil": "^0.2.0",
|
|
41
|
+
"@stdlib/types": "^0.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@stdlib/array-base-incrspace": "^0.1.0",
|
|
45
45
|
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
|
|
46
|
-
"@stdlib/
|
|
47
|
-
"@stdlib/slice-base-normalize-slice": "^0.1.0",
|
|
46
|
+
"@stdlib/slice-base-normalize-slice": "^0.2.0",
|
|
48
47
|
"@stdlib/slice-ctor": "^0.1.0",
|
|
49
48
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
50
49
|
"istanbul": "^0.4.1",
|
|
51
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
50
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
51
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
52
|
+
"@stdlib/bench": "^0.3.1"
|
|
52
53
|
},
|
|
53
54
|
"engines": {
|
|
54
55
|
"node": ">=0.10.0",
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|