@stdlib/slice-base-length 0.1.1 → 0.2.1

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
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-2023. The Stdlib [Authors][stdlib-authors].
212
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
213
213
 
214
214
  </section>
215
215
 
@@ -222,8 +222,8 @@ Copyright &copy; 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.1.1
226
- [test-url]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml?query=branch:v0.1.1
225
+ [test-image]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml/badge.svg?branch=v0.2.1
226
+ [test-url]: https://github.com/stdlib-js/slice-base-length/actions/workflows/test.yml?query=branch:v0.2.1
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 &copy; 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
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -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( `@stdlib/slice/ctor` );
33
- * var normalizeSlice = require( `@stdlib/slice/base/normalize-slice` );
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( `@stdlib/slice/ctor` );
49
- * var normalizeSlice = require( `@stdlib/slice/base/normalize-slice` );
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( `@stdlib/slice/ctor` );
65
- * var normalizeSlice = require( `@stdlib/slice/base/normalize-slice` );
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( `@stdlib/slice/ctor` );
80
- * var normalizeSlice = require( `@stdlib/slice/base/normalize-slice` );
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( `@stdlib/slice/ctor` );
95
- * var normalizeSlice = require( `@stdlib/slice/base/normalize-slice` );
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.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Compute the number of elements in a normalized slice.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,19 +30,9 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/math-base-special-ceil": "^0.1.1",
41
- "@stdlib/types": "^0.1.0"
42
- },
43
- "devDependencies": {
44
- "@stdlib/array-base-incrspace": "^0.1.0",
45
- "@stdlib/assert-is-nonnegative-integer": "^0.1.0",
46
- "@stdlib/bench": "^0.1.0",
47
- "@stdlib/slice-base-normalize-slice": "^0.1.0",
48
- "@stdlib/slice-ctor": "^0.1.0",
49
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
50
- "istanbul": "^0.4.1",
51
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/math-base-special-ceil": "^0.2.1"
52
34
  },
35
+ "devDependencies": {},
53
36
  "engines": {
54
37
  "node": ">=0.10.0",
55
38
  "npm": ">2.7.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