diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 334eb59..91f2b93 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -82,21 +82,6 @@ jobs: id: transform-error-messages uses: stdlib-js/transform-errors-action@main - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - name: 'Update dependencies in package.json' run: | diff --git a/README.md b/README.md index 667121f..06a95e7 100644 --- a/README.md +++ b/README.md @@ -329,8 +329,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/random-array-minstd.svg [npm-url]: https://npmjs.org/package/@stdlib/random-array-minstd -[test-image]: https://github.com/stdlib-js/random-array-minstd/actions/workflows/test.yml/badge.svg?branch=v0.0.1 -[test-url]: https://github.com/stdlib-js/random-array-minstd/actions/workflows/test.yml?query=branch:v0.0.1 +[test-image]: https://github.com/stdlib-js/random-array-minstd/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/random-array-minstd/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-array-minstd/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/random-array-minstd?branch=main diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..b0e8447 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +/// +import minstd from '../docs/types/index'; +export = minstd; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..bbde98e --- /dev/null +++ b/dist/index.js @@ -0,0 +1,9 @@ +"use strict";var g=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var O=g(function(te,H){H.exports={idtype:"float64",ndtype:"float64"}});var R=g(function(ne,b){ +var J=require('@stdlib/array-typed-real-float-dtypes/dist'),K=require('@stdlib/array-typed-real-dtypes/dist'),M=require('@stdlib/assert-is-plain-object/dist'),l=require('@stdlib/assert-has-own-property/dist'),y=require('@stdlib/error-tools-fmtprodmsg/dist'),v=K(),p=J();v.push("generic");p.push("generic");function Q(r,e,i){if(!M(e))return new TypeError(y('1eH2V',e));if(i===0){if(l(e,"idtype")&&(r.idtype=e.idtype,v.indexOf(r.idtype)<0))return new TypeError(y('1eH4S',"idtype",v.join('", "'),r.idtype));if(l(e,"ndtype")&&(r.ndtype=e.ndtype,p.indexOf(r.ndtype)<0))return new TypeError(y('1eH4S',"ndtype",p.join('", "'),r.ndtype));}else if(i===1&&l(e,"dtype")){if(r.dtype=e.dtype,v.indexOf(r.dtype)<0)return new TypeError(y('1eH4S',"dtype",v.join('", "'),r.dtype));}else if(l(e,"dtype")&&(r.dtype=e.dtype,p.indexOf(r.dtype)<0))return new TypeError(y('1eH4S',"dtype",p.join('", "'),r.dtype));return null}b.exports=Q +});var w=g(function(ie,j){ +var P=require('@stdlib/assert-is-nonnegative-integer/dist').isPrimitive,E=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),c=require('@stdlib/utils-define-nonenumerable-read-only-accessor/dist'),U=require('@stdlib/utils-define-nonenumerable-read-write-accessor/dist'),N=require('@stdlib/random-base-minstd/dist'),S=require('@stdlib/array-typed-real-ctors/dist'),T=require('@stdlib/array-base-filled-by/dist'),x=require('@stdlib/strided-base-nullary/dist'),L=require('@stdlib/error-tools-fmtprodmsg/dist'),G=O(),q=R();function X(){var r,e,i,t,a,m;if(i={idtype:G.idtype,ndtype:G.ndtype},e=arguments.length,t=A,e===0)a=N;else if(e===1&&(r=arguments[0],a=N.factory(r),m=q(i,r,0),m))throw m;return c(t,"seed",Y),c(t,"seedLength",B),U(t,"state",k,C),c(t,"stateLength",I),c(t,"byteLength",W),E(t,"PRNG",a),E(t,"normalized",D),t;function A(n,h){var f,u,d,o,s;if(!P(n))throw new TypeError(L('1eH2d',n));if(s={},arguments.length>1&&(d=q(s,h,1),d))throw d;return o=s.dtype||i.idtype,o==="generic"?T(n,a):(f=S(o),u=new f(n),x([u],[n],[1],a),u)}function D(n,h){var f,u,d,o,s;if(!P(n))throw new TypeError(L('1eH2d',n));if(s={},arguments.length>1&&(d=q(s,h,2),d))throw d;return o=s.dtype||i.ndtype,o==="generic"?T(n,a.normalized):(f=S(o),u=new f(n),x([u],[n],[1],a.normalized),u)}function Y(){return t.PRNG.seed}function B(){return t.PRNG.seedLength}function I(){return t.PRNG.stateLength}function W(){return t.PRNG.byteLength}function k(){return t.PRNG.state}function C(n){t.PRNG.state=n}}j.exports=X +});var F=g(function(ae,z){ +var Z=w(),_=Z();z.exports=_ +});var $=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),V=F(),ee=w();$(V,"factory",ee);module.exports=V; +/** @license Apache-2.0 */ +//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 0000000..3c1830e --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../lib/defaults.json", "../lib/validate.js", "../lib/factory.js", "../lib/main.js", "../lib/index.js"], + "sourcesContent": ["{\n\t\"idtype\": \"float64\",\n \"ndtype\": \"float64\"\n}\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar fdtypes = require( '@stdlib/array-typed-real-float-dtypes' );\nvar rdtypes = require( '@stdlib/array-typed-real-dtypes' );\nvar isObject = require( '@stdlib/assert-is-plain-object' );\nvar hasOwnProp = require( '@stdlib/assert-has-own-property' );\nvar format = require( '@stdlib/string-format' );\n\n\n// VARIABLES //\n\nvar RDTYPES = rdtypes();\nvar FDTYPES = fdtypes();\nRDTYPES.push( 'generic' );\nFDTYPES.push( 'generic' );\n\n\n// MAIN //\n\n/**\n* Validates function options.\n*\n* ## Notes\n*\n* - Validation modes:\n*\n* - `0`: factory validation\n* - `1`: integer PRNG validation\n* - `2`: normalized PRNG validation\n*\n* @private\n* @param {Object} opts - destination object\n* @param {Options} options - function options\n* @param {string} [options.dtype] - output array data type\n* @param {string} [options.idtype] - output array data type when generating integers\n* @param {string} [options.rdtype] - output array data type when generating normalized numbers\n* @param {integer} mode - validation mode\n* @returns {(Error|null)} null or an error object\n*\n* @example\n* var opts = {};\n* var options = {\n* 'dtype': 'float64'\n* };\n* var err = validate( opts, options, 0 );\n* if ( err ) {\n* throw err;\n* }\n*/\nfunction validate( opts, options, mode ) {\n\tif ( !isObject( options ) ) {\n\t\treturn new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );\n\t}\n\tif ( mode === 0 ) {\n\t\tif ( hasOwnProp( options, 'idtype' ) ) {\n\t\t\topts.idtype = options.idtype;\n\t\t\tif ( RDTYPES.indexOf( opts.idtype ) < 0 ) {\n\t\t\t\treturn new TypeError( format( 'invalid option. `%s` option must be one of the following: \"%s\". Option: `%s`.', 'idtype', RDTYPES.join( '\", \"' ), opts.idtype ) );\n\t\t\t}\n\t\t}\n\t\tif ( hasOwnProp( options, 'ndtype' ) ) {\n\t\t\topts.ndtype = options.ndtype;\n\t\t\tif ( FDTYPES.indexOf( opts.ndtype ) < 0 ) {\n\t\t\t\treturn new TypeError( format( 'invalid option. `%s` option must be one of the following: \"%s\". Option: `%s`.', 'ndtype', FDTYPES.join( '\", \"' ), opts.ndtype ) );\n\t\t\t}\n\t\t}\n\t} else if ( mode === 1 && hasOwnProp( options, 'dtype' ) ) {\n\t\topts.dtype = options.dtype;\n\t\tif ( RDTYPES.indexOf( opts.dtype ) < 0 ) {\n\t\t\treturn new TypeError( format( 'invalid option. `%s` option must be one of the following: \"%s\". Option: `%s`.', 'dtype', RDTYPES.join( '\", \"' ), opts.dtype ) );\n\t\t}\n\t} else if ( hasOwnProp( options, 'dtype' ) ) { // mode === 2\n\t\topts.dtype = options.dtype;\n\t\tif ( FDTYPES.indexOf( opts.dtype ) < 0 ) {\n\t\t\treturn new TypeError( format( 'invalid option. `%s` option must be one of the following: \"%s\". Option: `%s`.', 'dtype', FDTYPES.join( '\", \"' ), opts.dtype ) );\n\t\t}\n\t}\n\treturn null;\n}\n\n\n// EXPORTS //\n\nmodule.exports = validate;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar isNonNegativeInteger = require( '@stdlib/assert-is-nonnegative-integer' ).isPrimitive;\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar setReadOnlyAccessor = require( '@stdlib/utils-define-nonenumerable-read-only-accessor' );\nvar setReadWriteAccessor = require( '@stdlib/utils-define-nonenumerable-read-write-accessor' );\nvar base = require( '@stdlib/random-base-minstd' );\nvar ctors = require( '@stdlib/array-typed-real-ctors' );\nvar filledBy = require( '@stdlib/array-base-filled-by' );\nvar nullary = require( '@stdlib/strided-base-nullary' );\nvar format = require( '@stdlib/string-format' );\nvar defaults = require( './defaults.json' );\nvar validate = require( './validate.js' );\n\n\n// MAIN //\n\n/**\n* Returns a function for creating arrays containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG).\n*\n* @param {Options} [options] - function options\n* @param {PRNGSeedMINSTD} [options.seed] - pseudorandom number generator seed\n* @param {PRNGStateMINSTD} [options.state] - pseudorandom number generator state\n* @param {boolean} [options.copy=true] - boolean indicating whether to copy a provided pseudorandom number generator state\n* @param {string} [options.idtype=\"float64\"] - default data type when generating integers\n* @param {string} [options.ndtype=\"float64\"] - default data type when generating normalized numbers\n* @throws {TypeError} options argument must be an object\n* @throws {TypeError} must provide valid options\n* @throws {Error} must provide a valid state\n* @returns {Function} function for creating arrays\n*\n* @example\n* var minstd = factory();\n* // returns \n*\n* var arr = minstd( 10 );\n* // returns \n*\n* @example\n* var minstd = factory();\n* // returns \n*\n* var arr = minstd( 10, {\n* 'dtype': 'generic'\n* });\n* // returns [...]\n*\n* @example\n* var minstd = factory();\n* // returns \n*\n* var arr = minstd.normalized( 10 );\n* // returns \n*/\nfunction factory() {\n\tvar options;\n\tvar nargs;\n\tvar opts;\n\tvar rand;\n\tvar prng;\n\tvar err;\n\n\topts = {\n\t\t'idtype': defaults.idtype,\n\t\t'ndtype': defaults.ndtype\n\t};\n\n\tnargs = arguments.length;\n\trand = minstd;\n\tif ( nargs === 0 ) {\n\t\tprng = base;\n\t} else if ( nargs === 1 ) {\n\t\toptions = arguments[ 0 ];\n\t\tprng = base.factory( options );\n\t\terr = validate( opts, options, 0 );\n\t\tif ( err ) {\n\t\t\tthrow err;\n\t\t}\n\t}\n\tsetReadOnlyAccessor( rand, 'seed', getSeed );\n\tsetReadOnlyAccessor( rand, 'seedLength', getSeedLength );\n\tsetReadWriteAccessor( rand, 'state', getState, setState );\n\tsetReadOnlyAccessor( rand, 'stateLength', getStateLength );\n\tsetReadOnlyAccessor( rand, 'byteLength', getStateSize );\n\tsetReadOnly( rand, 'PRNG', prng );\n\tsetReadOnly( rand, 'normalized', normalized );\n\treturn rand;\n\n\t/**\n\t* Returns an array containing pseudorandom integers on the interval `[1, 2147483646]`.\n\t*\n\t* @private\n\t* @param {NonNegativeInteger} len - array length\n\t* @param {Options} [options] - function options\n\t* @param {string} [options.dtype] - output array data type\n\t* @throws {TypeError} first argument must be a nonnegative integer\n\t* @throws {TypeError} options argument must be an object\n\t* @throws {TypeError} must provide valid options\n\t* @returns {(Array|TypedArray)} output array\n\t*/\n\tfunction minstd( len, options ) {\n\t\tvar ctor;\n\t\tvar out;\n\t\tvar err;\n\t\tvar dt;\n\t\tvar o;\n\t\tif ( !isNonNegativeInteger( len ) ) {\n\t\t\tthrow new TypeError( format( 'invalid argument. First argument must be a nonnegative integer. Value: `%s`.', len ) );\n\t\t}\n\t\to = {};\n\t\tif ( arguments.length > 1 ) {\n\t\t\terr = validate( o, options, 1 );\n\t\t\tif ( err ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t}\n\t\tdt = o.dtype || opts.idtype;\n\t\tif ( dt === 'generic' ) {\n\t\t\treturn filledBy( len, prng );\n\t\t}\n\t\tctor = ctors( dt );\n\t\tout = new ctor( len );\n\t\tnullary( [ out ], [ len ], [ 1 ], prng );\n\t\treturn out;\n\t}\n\n\t/**\n\t* Returns an array containing pseudorandom numbers on the interval `[0, 1)`.\n\t*\n\t* @private\n\t* @param {NonNegativeInteger} len - array length\n\t* @param {Options} [options] - function options\n\t* @param {string} [options.dtype] - output array data type\n\t* @throws {TypeError} first argument must be a nonnegative integer\n\t* @throws {TypeError} options argument must be an object\n\t* @throws {TypeError} must provide valid options\n\t* @returns {(Array|TypedArray)} output array\n\t*/\n\tfunction normalized( len, options ) {\n\t\tvar ctor;\n\t\tvar out;\n\t\tvar err;\n\t\tvar dt;\n\t\tvar o;\n\t\tif ( !isNonNegativeInteger( len ) ) {\n\t\t\tthrow new TypeError( format( 'invalid argument. First argument must be a nonnegative integer. Value: `%s`.', len ) );\n\t\t}\n\t\to = {};\n\t\tif ( arguments.length > 1 ) {\n\t\t\terr = validate( o, options, 2 );\n\t\t\tif ( err ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t}\n\t\tdt = o.dtype || opts.ndtype;\n\t\tif ( dt === 'generic' ) {\n\t\t\treturn filledBy( len, prng.normalized );\n\t\t}\n\t\tctor = ctors( dt );\n\t\tout = new ctor( len );\n\t\tnullary( [ out ], [ len ], [ 1 ], prng.normalized );\n\t\treturn out;\n\t}\n\n\t/**\n\t* Returns the PRNG seed.\n\t*\n\t* @private\n\t* @returns {Int32Array} seed\n\t*/\n\tfunction getSeed() {\n\t\treturn rand.PRNG.seed;\n\t}\n\n\t/**\n\t* Returns the PRNG seed length.\n\t*\n\t* @private\n\t* @returns {PositiveInteger} seed length\n\t*/\n\tfunction getSeedLength() {\n\t\treturn rand.PRNG.seedLength;\n\t}\n\n\t/**\n\t* Returns the PRNG state length.\n\t*\n\t* @private\n\t* @returns {PositiveInteger} state length\n\t*/\n\tfunction getStateLength() {\n\t\treturn rand.PRNG.stateLength;\n\t}\n\n\t/**\n\t* Returns the PRNG state size (in bytes).\n\t*\n\t* @private\n\t* @returns {PositiveInteger} state size (in bytes)\n\t*/\n\tfunction getStateSize() {\n\t\treturn rand.PRNG.byteLength;\n\t}\n\n\t/**\n\t* Returns the current pseudorandom number generator state.\n\t*\n\t* @private\n\t* @returns {Int32Array} current state\n\t*/\n\tfunction getState() {\n\t\treturn rand.PRNG.state;\n\t}\n\n\t/**\n\t* Sets the pseudorandom number generator state.\n\t*\n\t* @private\n\t* @param {Int32Array} s - generator state\n\t* @throws {Error} must provide a valid state\n\t*/\n\tfunction setState( s ) {\n\t\trand.PRNG.state = s;\n\t}\n}\n\n\n// EXPORTS //\n\nmodule.exports = factory;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar factory = require( './factory.js' );\n\n\n// MAIN //\n\n/**\n* Returns an array containing pseudorandom integers on the interval `[1, 2147483646]`.\n*\n* @name minstd\n* @type {Function}\n* @param {NonNegativeInteger} len - array length\n* @param {Options} [options] - options\n* @param {string} [options.dtype=\"float64\"] - output array data type\n* @throws {TypeError} first argument must be a nonnegative integer\n* @throws {TypeError} options argument must be an object\n* @throws {TypeError} must provide valid options\n* @returns {(Array|TypedArray)} output array\n*\n* @example\n* var arr = minstd( 10 );\n* // returns \n*\n* @example\n* var arr = minstd.normalized( 10 );\n* // returns \n*\n* @example\n* var arr = minstd( 10, {\n* 'dtype': 'generic'\n* });\n* // returns [...]\n*/\nvar minstd = factory();\n\n\n// EXPORTS //\n\nmodule.exports = minstd;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Create an array containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG).\n*\n* @module @stdlib/random-array-minstd\n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var arr = minstd( 10 );\n* // returns \n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var arr = minstd( 10, {\n* 'dtype': 'generic'\n* });\n* // returns [...]\n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var arr = minstd.normalized( 10 );\n* // returns \n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var arr = minstd.normalized( 10, {\n* 'dtype': 'generic'\n* });\n* // returns [...]\n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var rand = minstd.factory();\n* // returns \n*\n* var arr = rand( 10 );\n* // returns \n*\n* @example\n* var minstd = require( '@stdlib/random-array-minstd' );\n*\n* var rand = minstd.factory();\n* // returns \n*\n* var arr = rand( 10, {\n* 'dtype': 'generic'\n* });\n* // returns [...]\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar main = require( './main.js' );\nvar factory = require( './factory.js' );\n\n\n// MAIN //\n\nsetReadOnly( main, 'factory', factory );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n\n// exports: { \"factory\": \"main.factory\", \"normalized\": \"main.normalized\" }\n"], + "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,GAAAC,EAAA,CAAAA,EAAA,SACC,OAAU,UACT,OAAU,SACZ,ICHA,IAAAC,EAAAC,EAAA,SAAAC,GAAAC,EAAA,cAsBA,IAAIC,EAAU,QAAS,uCAAwC,EAC3DC,EAAU,QAAS,iCAAkC,EACrDC,EAAW,QAAS,gCAAiC,EACrDC,EAAa,QAAS,iCAAkC,EACxDC,EAAS,QAAS,uBAAwB,EAK1CC,EAAUJ,EAAQ,EAClBK,EAAUN,EAAQ,EACtBK,EAAQ,KAAM,SAAU,EACxBC,EAAQ,KAAM,SAAU,EAmCxB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Ie,EACAC,EACAX,EACAY,EACAC,EACJ,GAAK,CAAC9B,EAAsB0B,CAAI,EAC/B,MAAM,IAAI,UAAWlB,EAAQ,+EAAgFkB,CAAI,CAAE,EAGpH,GADAI,EAAI,CAAC,EACA,UAAU,OAAS,IACvBb,EAAMP,EAAUoB,EAAGlB,EAAS,CAAE,EACzBK,GACJ,MAAMA,EAIR,OADAY,EAAKC,EAAE,OAAShB,EAAK,OAChBe,IAAO,UACJvB,EAAUoB,EAAKV,EAAK,UAAW,GAEvCW,EAAOtB,EAAOwB,CAAG,EACjBD,EAAM,IAAID,EAAMD,CAAI,EACpBnB,EAAS,CAAEqB,CAAI,EAAG,CAAEF,CAAI,EAAG,CAAE,CAAE,EAAGV,EAAK,UAAW,EAC3CY,EACR,CAQA,SAAST,GAAU,CAClB,OAAOJ,EAAK,KAAK,IAClB,CAQA,SAASK,GAAgB,CACxB,OAAOL,EAAK,KAAK,UAClB,CAQA,SAASQ,GAAiB,CACzB,OAAOR,EAAK,KAAK,WAClB,CAQA,SAASS,GAAe,CACvB,OAAOT,EAAK,KAAK,UAClB,CAQA,SAASM,GAAW,CACnB,OAAON,EAAK,KAAK,KAClB,CASA,SAASO,EAAUS,EAAI,CACtBhB,EAAK,KAAK,MAAQgB,CACnB,CACD,CAKAhC,EAAO,QAAUY,ICzPjB,IAAAqB,EAAAC,EAAA,SAAAC,GAAAC,EAAA,cAsBA,IAAIC,EAAU,IAgCVC,EAASD,EAAQ,EAKrBD,EAAO,QAAUE,ICiBjB,IAAIC,EAAc,QAAS,uDAAwD,EAC/EC,EAAO,IACPC,GAAU,IAKdF,EAAaC,EAAM,UAAWC,EAAQ,EAKtC,OAAO,QAAUD", + "names": ["require_defaults", "__commonJSMin", "exports", "module", "require_validate", "__commonJSMin", "exports", "module", "fdtypes", "rdtypes", "isObject", "hasOwnProp", "format", "RDTYPES", "FDTYPES", "validate", "opts", "options", "mode", "require_factory", "__commonJSMin", "exports", "module", "isNonNegativeInteger", "setReadOnly", "setReadOnlyAccessor", "setReadWriteAccessor", "base", "ctors", "filledBy", "nullary", "format", "defaults", "validate", "factory", "options", "nargs", "opts", "rand", "prng", "err", "minstd", "getSeed", "getSeedLength", "getState", "setState", "getStateLength", "getStateSize", "normalized", "len", "ctor", "out", "dt", "o", "s", "require_main", "__commonJSMin", "exports", "module", "factory", "minstd", "setReadOnly", "main", "factory"] +} diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 76d4dce..a60cd9f 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -16,7 +16,7 @@ * limitations under the License. */ -// TypeScript Version: 2.0 +// TypeScript Version: 4.1 ///