@stdlib/random-streams-improved-ziggurat 0.1.0 → 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
@@ -519,7 +519,7 @@ See [LICENSE][stdlib-license].
519
519
 
520
520
  ## Copyright
521
521
 
522
- Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
522
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
523
523
 
524
524
  </section>
525
525
 
@@ -534,8 +534,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
534
534
  [npm-image]: http://img.shields.io/npm/v/@stdlib/random-streams-improved-ziggurat.svg
535
535
  [npm-url]: https://npmjs.org/package/@stdlib/random-streams-improved-ziggurat
536
536
 
537
- [test-image]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml/badge.svg?branch=v0.1.0
538
- [test-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml?query=branch:v0.1.0
537
+ [test-image]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml/badge.svg?branch=v0.2.1
538
+ [test-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml?query=branch:v0.2.1
539
539
 
540
540
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-streams-improved-ziggurat/main.svg
541
541
  [coverage-url]: https://codecov.io/github/stdlib-js/random-streams-improved-ziggurat?branch=main
@@ -562,8 +562,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
562
562
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
563
563
 
564
564
  [deno-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/deno
565
+ [deno-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/deno/README.md
565
566
  [umd-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/umd
567
+ [umd-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/umd/README.md
566
568
  [esm-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/esm
569
+ [esm-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/esm/README.md
567
570
  [branches-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/main/branches.md
568
571
 
569
572
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/random-streams-improved-ziggurat/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).
@@ -92,7 +92,7 @@ declare class RandomStream extends Readable {
92
92
  * @returns stream instance
93
93
  *
94
94
  * @example
95
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
95
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
96
96
  *
97
97
  * function log( chunk ) {
98
98
  * console.log( chunk.toString() );
@@ -111,37 +111,37 @@ declare class RandomStream extends Readable {
111
111
  /**
112
112
  * Destruction state.
113
113
  */
114
- private readonly _destroyed: boolean; // tslint:disable-line: variable-name
114
+ private readonly _destroyed: boolean;
115
115
 
116
116
  /**
117
117
  * Flag indicating whether a stream is operating in object mode.
118
118
  */
119
- private readonly _objectMode: boolean; // tslint:disable-line: variable-name
119
+ private readonly _objectMode: boolean;
120
120
 
121
121
  /**
122
122
  * Data separator.
123
123
  */
124
- private readonly _sep: string; // tslint:disable-line: variable-name
124
+ private readonly _sep: string;
125
125
 
126
126
  /**
127
127
  * Total number of iterations.
128
128
  */
129
- private readonly _iter: number; // tslint:disable-line: variable-name
129
+ private readonly _iter: number;
130
130
 
131
131
  /**
132
132
  * Number of iterations after which to emit the underlying PRNG state.
133
133
  */
134
- private readonly _siter: number; // tslint:disable-line: variable-name
134
+ private readonly _siter: number;
135
135
 
136
136
  /**
137
137
  * Iteration counter.
138
138
  */
139
- private _i: number; // tslint:disable-line: variable-name
139
+ private _i: number;
140
140
 
141
141
  /**
142
142
  * Pseudorandom number generator for generating standard normally distributed pseudorandom numbers.
143
143
  */
144
- private readonly _prng: random.PRNG; // tslint:disable-line: variable-name
144
+ private readonly _prng: random.PRNG;
145
145
 
146
146
  /**
147
147
  * Underlying PRNG.
@@ -178,7 +178,7 @@ declare class RandomStream extends Readable {
178
178
  *
179
179
  * @param size - number (of bytes) to read
180
180
  */
181
- _read( size: number ): void; // tslint:disable-line: variable-name
181
+ _read( size: number ): void;
182
182
 
183
183
  /**
184
184
  * Gracefully destroys a stream, providing backward compatibility.
@@ -219,7 +219,7 @@ interface Constructor {
219
219
  * @returns Stream instance
220
220
  *
221
221
  * @example
222
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
222
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
223
223
  *
224
224
  * function log( chunk ) {
225
225
  * console.log( chunk.toString() );
@@ -255,7 +255,7 @@ interface Constructor {
255
255
  * @returns Stream instance
256
256
  *
257
257
  * @example
258
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
258
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
259
259
  *
260
260
  * function log( chunk ) {
261
261
  * console.log( chunk.toString() );
@@ -323,7 +323,7 @@ interface Constructor {
323
323
  * @returns Stream instance
324
324
  *
325
325
  * @example
326
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
326
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
327
327
  *
328
328
  * function log( v ) {
329
329
  * console.log( v );
@@ -349,7 +349,7 @@ interface Constructor {
349
349
  * @returns stream instance
350
350
  *
351
351
  * @example
352
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
352
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
353
353
  *
354
354
  * function log( chunk ) {
355
355
  * console.log( chunk.toString() );
@@ -365,7 +365,7 @@ interface Constructor {
365
365
  * stream.pipe( inspectStream( log ) );
366
366
  *
367
367
  * @example
368
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
368
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
369
369
  *
370
370
  * function log( chunk ) {
371
371
  * console.log( chunk.toString() );
@@ -397,7 +397,7 @@ interface Constructor {
397
397
  * }
398
398
  *
399
399
  * @example
400
- * var inspectStream = require( `@stdlib/streams/node/inspect-sink` );
400
+ * var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
401
401
  *
402
402
  * function log( v ) {
403
403
  * console.log( v );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/random-streams-improved-ziggurat",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Create a readable stream for generating pseudorandom numbers drawn from a standard normal distribution using the Improved Ziggurat algorithm.",
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,34 +30,29 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/assert-has-own-property": "^0.1.0",
41
- "@stdlib/assert-is-boolean": "^0.1.0",
42
- "@stdlib/assert-is-error": "^0.1.0",
43
- "@stdlib/assert-is-nonnegative-integer": "^0.1.0",
44
- "@stdlib/assert-is-nonnegative-number": "^0.1.0",
45
- "@stdlib/assert-is-plain-object": "^0.1.0",
46
- "@stdlib/assert-is-positive-integer": "^0.1.0",
47
- "@stdlib/assert-is-string": "^0.1.0",
48
- "@stdlib/buffer-from-string": "^0.1.0",
49
- "@stdlib/object-assign": "^0.1.0",
50
- "@stdlib/random-base-improved-ziggurat": "^0.1.0",
51
- "@stdlib/string-format": "^0.1.0",
52
- "@stdlib/utils-define-nonenumerable-property": "^0.1.0",
53
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
54
- "@stdlib/utils-define-read-only-accessor": "^0.1.0",
55
- "@stdlib/utils-define-read-write-accessor": "^0.1.0",
56
- "@stdlib/utils-inherit": "^0.1.0",
57
- "@stdlib/utils-next-tick": "^0.1.0",
33
+ "@stdlib/assert-has-own-property": "^0.2.1",
34
+ "@stdlib/assert-is-boolean": "^0.2.1",
35
+ "@stdlib/assert-is-error": "^0.2.1",
36
+ "@stdlib/assert-is-nonnegative-integer": "^0.2.1",
37
+ "@stdlib/assert-is-nonnegative-number": "^0.2.1",
38
+ "@stdlib/assert-is-plain-object": "^0.2.1",
39
+ "@stdlib/assert-is-positive-integer": "^0.2.1",
40
+ "@stdlib/assert-is-string": "^0.2.1",
41
+ "@stdlib/buffer-from-string": "^0.2.1",
42
+ "@stdlib/object-assign": "^0.2.1",
43
+ "@stdlib/random-base-improved-ziggurat": "^0.2.1",
44
+ "@stdlib/string-format": "^0.2.1",
45
+ "@stdlib/utils-define-nonenumerable-property": "^0.2.1",
46
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.1",
47
+ "@stdlib/utils-define-read-only-accessor": "^0.2.1",
48
+ "@stdlib/utils-define-read-write-accessor": "^0.2.1",
49
+ "@stdlib/utils-inherit": "^0.2.1",
50
+ "@stdlib/utils-next-tick": "^0.2.1",
58
51
  "debug": "^2.6.9",
59
- "readable-stream": "^2.1.4"
60
- },
61
- "devDependencies": {
62
- "@stdlib/streams-node-inspect-sink": "^0.1.0",
63
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
64
- "proxyquire": "^2.0.0",
65
- "istanbul": "^0.4.1",
66
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
52
+ "readable-stream": "^2.1.4",
53
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.1"
67
54
  },
55
+ "devDependencies": {},
68
56
  "engines": {
69
57
  "node": ">=0.10.0",
70
58
  "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