pure-rand
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -13,4 +13,4 @@ import { generateN, skipN, unsafeGenerateN, unsafeSkipN } from './generator/RandomGenerator.js'; | ||
var __type = 'module'; | ||
var __version = '5.0.3'; | ||
var __commitHash = 'f95aa1f9a3f4c9f9820eb2e7a2d94bbc2d3b78c1'; | ||
var __version = '5.0.4'; | ||
var __commitHash = 'c213e129750c22696bdb013ce113aee96b02a298'; | ||
export { __type, __version, __commitHash, generateN, skipN, unsafeGenerateN, unsafeSkipN, congruential, congruential32, mersenne, xorshift128plus, xoroshiro128plus, uniformArrayIntDistribution, uniformBigIntDistribution, uniformIntDistribution, unsafeUniformArrayIntDistribution, unsafeUniformBigIntDistribution, unsafeUniformIntDistribution, }; |
@@ -32,5 +32,5 @@ "use strict"; | ||
exports.__type = __type; | ||
var __version = '5.0.3'; | ||
var __version = '5.0.4'; | ||
exports.__version = __version; | ||
var __commitHash = 'f95aa1f9a3f4c9f9820eb2e7a2d94bbc2d3b78c1'; | ||
var __commitHash = 'c213e129750c22696bdb013ce113aee96b02a298'; | ||
exports.__commitHash = __commitHash; |
import { RandomGenerator } from '../generator/RandomGenerator'; | ||
export declare type Distribution<T> = (rng: RandomGenerator) => [T, RandomGenerator]; | ||
export type Distribution<T> = (rng: RandomGenerator) => [T, RandomGenerator]; |
@@ -1,2 +0,2 @@ | ||
export declare type ArrayInt = { | ||
export type ArrayInt = { | ||
sign: -1 | 1; | ||
@@ -9,3 +9,3 @@ data: number[]; | ||
export declare function trimArrayIntInplace(arrayInt: ArrayInt): ArrayInt; | ||
export declare type ArrayInt64 = Required<ArrayInt> & { | ||
export type ArrayInt64 = Required<ArrayInt> & { | ||
data: [number, number]; | ||
@@ -12,0 +12,0 @@ }; |
{ | ||
"name": "pure-rand", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": " Pure random number generator written in TypeScript", | ||
@@ -21,2 +21,3 @@ "type": "commonjs", | ||
"sideEffects": false, | ||
"packageManager": "yarn@3.3.0", | ||
"scripts": { | ||
@@ -30,6 +31,5 @@ "format:check": "prettier --list-different \"**/*.{js,ts}\"", | ||
"test": "jest --config jest.config.js --coverage", | ||
"build:bench:old": "tsc --target es6", | ||
"build:bench:new": "tsc --target es6 --outDir lib-new/", | ||
"bench": "node perf/benchmark.cjs", | ||
"auto:bench": "git stash && yarn build:bench:old && git stash pop && yarn build:bench:new && yarn bench" | ||
"build:bench:old": "tsc --outDir lib-reference/", | ||
"build:bench:new": "tsc --outDir lib-test/", | ||
"bench": "node perf/benchmark.cjs" | ||
}, | ||
@@ -46,21 +46,15 @@ "repository": { | ||
"homepage": "https://github.com/dubzzz/pure-rand#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^18.6.3", | ||
"benchmark": "^2.1.4", | ||
"chalk": "^5.0.0", | ||
"console-table-printer": "2.11.1", | ||
"cross-env": "^7.0.3", | ||
"fast-check": "^3.1.1", | ||
"glob": "^8.0.3", | ||
"jest": "^26.1.0", | ||
"microtime": "^3.0.0", | ||
"prettier": "2.7.1", | ||
"replace-in-file": "^6.1.0", | ||
"source-map-support": "^0.5.16", | ||
"tinybench": "^2.3.1", | ||
"ts-jest": "^26.1.2", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.0.2", | ||
"yargs": "^17.0.1" | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -71,6 +65,12 @@ "keywords": [ | ||
], | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/fast-check" | ||
} | ||
} | ||
"funding": [ | ||
{ | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/fast-check" | ||
}, | ||
{ | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/dubzzz" | ||
} | ||
] | ||
} |
12
66053