Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "ml-xsadd", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator", | ||
"main": "./lib/xsadd.js", | ||
"module": "./lib-es6/xsadd.js", | ||
"types": "./lib/xsadd.d.ts", | ||
"module": "./lib-esm/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
"src", | ||
"lib", | ||
"lib-es6" | ||
"lib-esm" | ||
], | ||
"scripts": { | ||
"clean": "rimraf lib lib-es6", | ||
"prepublishOnly": "npm run tsc", | ||
"test": "npm run test-only && npm run tslint", | ||
"test-only": "jest", | ||
"tsc": "npm run clean && npm run tsc-es5 && npm run tsc-es6", | ||
"tsc-es5": "tsc", | ||
"tsc-es6": "tsc --project tsconfig.es6.json", | ||
"tslint": "tslint --project tsconfig.base.json", | ||
"tslint-fix": "npm run tslint -- --fix" | ||
"check-types": "tsc --noEmit", | ||
"clean": "rimraf lib lib-esm", | ||
"eslint": "eslint src", | ||
"eslint-fix": "npm run eslint -- --fix", | ||
"prepack": "npm run tsc", | ||
"prettier": "prettier --check src", | ||
"prettier-write": "prettier --write src", | ||
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types", | ||
"test-only": "vitest run --coverage", | ||
"tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm", | ||
"tsc-cjs": "tsc --project tsconfig.cjs.json", | ||
"tsc-esm": "tsc --project tsconfig.esm.json" | ||
}, | ||
@@ -44,25 +48,13 @@ "repository": { | ||
"homepage": "https://github.com/mljs/xsadd#readme", | ||
"jest": { | ||
"testEnvironment": "node", | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
] | ||
}, | ||
"devDependencies": { | ||
"jest": "^23.5.0", | ||
"rimraf": "^2.6.2", | ||
"ts-jest": "^23.1.3", | ||
"tslint": "^5.11.0", | ||
"tslint-config-prettier": "^1.14.0", | ||
"typescript": "^3.0.1" | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"eslint": "^9.12.0", | ||
"eslint-config-cheminfo-typescript": "^16.0.0", | ||
"prettier": "^3.3.3", | ||
"rimraf": "^6.0.1", | ||
"tslint": "^5.20.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^5.6.3", | ||
"vitest": "^2.1.3" | ||
} | ||
} |
@@ -1,6 +0,18 @@ | ||
# xsadd | ||
# ml-xsadd | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![npm download][download-image]][download-url] | ||
<h3 align="center"> | ||
<a href="https://www.zakodium.com"> | ||
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" /> | ||
</a> | ||
<p> | ||
Maintained by <a href="https://www.zakodium.com">Zakodium</a> | ||
</p> | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][ci-image]][ci-url] | ||
[![npm download][download-image]][download-url] | ||
</h3> | ||
@@ -17,2 +29,9 @@ JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator. | ||
```js | ||
const { XSadd } = require("ml-xsadd"); | ||
const gen = new XSadd(); | ||
const number = gen.getFloat(); | ||
``` | ||
### new XSadd([seed]) | ||
@@ -36,5 +55,5 @@ | ||
```js | ||
var XSadd = new XSadd(); | ||
var random = xsadd.random; | ||
var number = random(); | ||
const xsadd = new XSadd(); | ||
const random = xsadd.random; | ||
const number = random(); | ||
``` | ||
@@ -52,5 +71,5 @@ | ||
[npm-url]: https://npmjs.org/package/ml-xsadd | ||
[travis-image]: https://img.shields.io/travis/mljs/xsadd/master.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/mljs/xsadd | ||
[ci-image]: https://github.com/mljs/xsadd/workflows/Node.js%20CI/badge.svg?branch=main | ||
[ci-url]: https://github.com/mljs/xsadd/actions?query=workflow%3A%22Node.js+CI%22 | ||
[download-image]: https://img.shields.io/npm/dm/ml-xsadd.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/ml-xsadd |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22217
22
368
73
9
2