136 lines
4.2 KiB
JSON
136 lines
4.2 KiB
JSON
{
|
|
"name": "bigint-crypto-utils",
|
|
"version": "3.1.7",
|
|
"description": "Arbitrary precision modular arithmetic, cryptographically secure random numbers and strong probable prime generation/testing. It works in modern browsers, Angular, React, Node.js, etc. since it uses the native JS implementation of BigInt",
|
|
"keywords": [
|
|
"modular arithmetics",
|
|
"crypto",
|
|
"prime",
|
|
"random",
|
|
"rng",
|
|
"prng",
|
|
"primality test",
|
|
"BigInt",
|
|
"angular",
|
|
"react"
|
|
],
|
|
"license": "MIT",
|
|
"author": {
|
|
"name": "Juan Hernández Serrano",
|
|
"email": "j.hernandez@upc.edu",
|
|
"url": "https://github.com/juanelas"
|
|
},
|
|
"repository": "github:juanelas/bigint-crypto-utils",
|
|
"engines": {
|
|
"node": ">=10.4.0"
|
|
},
|
|
"type": "module",
|
|
"types": "./types/index.d.ts",
|
|
"main": "./dist/cjs/index.node.cjs",
|
|
"browser": "./dist/esm/index.browser.js",
|
|
"module": "./dist/esm/index.node.js",
|
|
"exports": {
|
|
".": {
|
|
"node": {
|
|
"require": "./dist/cjs/index.node.cjs",
|
|
"import": "./dist/esm/index.node.js",
|
|
"module": "./dist/esm/index.node.js"
|
|
},
|
|
"default": "./dist/esm/index.browser.js"
|
|
},
|
|
"./esm-browser-bundle": "./dist/bundles/esm.min.js",
|
|
"./iife-browser-bundle": "./dist/bundles/iife.js",
|
|
"./umd-browser-bundle": "./dist/bundles/umd.js",
|
|
"./types": "./types/index.d.ts"
|
|
},
|
|
"imports": {
|
|
"#pkg": {
|
|
"import": "./dist/esm/index.node.js",
|
|
"require": "./dist/cjs/index.node.cjs"
|
|
}
|
|
},
|
|
"directories": {
|
|
"build": "./build",
|
|
"dist": "./dist",
|
|
"docs": "./docs",
|
|
"src": "./src",
|
|
"test": "./test",
|
|
"benchmark": "./benchmark",
|
|
"mocha-ts": "./.mocha-ts"
|
|
},
|
|
"scripts": {
|
|
"build": "run-s lint build:js docs",
|
|
"build:js": "rollup -c build/rollup.config.js",
|
|
"clean": "rimraf .mocha-ts coverage dist types docs",
|
|
"coverage": "c8 --clean --check-coverage --exclude '{src/ts/**/*.spec.ts,test,test-vectors,build}' --exclude-after-remap --reporter=text --reporter=lcov node ./build/bin/mocha-ts.cjs --commonjs ",
|
|
"docs": "node build/build.docs.cjs",
|
|
"git:add": "git add -A",
|
|
"lint": "ts-standard --fix",
|
|
"mocha-ts": "node --experimental-modules --es-module-specifier-resolution=node ./build/bin/mocha-ts.cjs ",
|
|
"mocha-ts:cjs": "node ./build/bin/mocha-ts.cjs --commonjs ",
|
|
"mocha-ts:watch": "npm run mocha-ts:cjs -- --watch ",
|
|
"mocha-ts:browser": "node build/testing/browser/index.cjs ",
|
|
"mocha-ts:browser-headless": "node build/testing/browser/index.cjs headless ",
|
|
"preversion": "run-s clean lint build:js coverage test:browser-headless",
|
|
"version": "run-s docs git:add",
|
|
"postversion": "git push --follow-tags",
|
|
"test": "run-s test:node test:browser-headless",
|
|
"test:browser": "npm run mocha-ts:browser",
|
|
"test:browser-headless": "npm run mocha-ts:browser-headless",
|
|
"test:node": "run-s test:node-cjs test:node-esm",
|
|
"test:node-cjs": "npm run mocha-ts:cjs ",
|
|
"test:node-esm": "npm run mocha-ts ",
|
|
"watch": "npm run mocha-ts:watch "
|
|
},
|
|
"ts-standard": {
|
|
"project": "tsconfig.json",
|
|
"env": [
|
|
"mocha"
|
|
],
|
|
"globals": [
|
|
"IS_BROWSER",
|
|
"browser",
|
|
"page",
|
|
"chai"
|
|
],
|
|
"ignore": [
|
|
"dist/**/*",
|
|
"examples/**/*",
|
|
"types/**/*",
|
|
"build/testing/mocha/mocha-init.js"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
"@rollup/plugin-json": "^4.1.0",
|
|
"@rollup/plugin-multi-entry": "^4.0.0",
|
|
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
"@rollup/plugin-replace": "^4.0.0",
|
|
"@rollup/plugin-typescript": "^8.2.0",
|
|
"@types/chai": "^4.2.22",
|
|
"@types/mocha": "^10.0.0",
|
|
"c8": "^7.12.0",
|
|
"chai": "^4.3.3",
|
|
"dotenv": "^16.0.3",
|
|
"fs-extra": "^10.1.0",
|
|
"glob": "^8.0.1",
|
|
"json5": "^2.2.0",
|
|
"minimatch": "^5.0.1",
|
|
"mocha": "^10.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"pirates": "^4.0.1",
|
|
"puppeteer": "^18.0.5",
|
|
"rimraf": "^3.0.2",
|
|
"rollup": "^2.57.0",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"ts-standard": "^11.0.0",
|
|
"tslib": "^2.3.1",
|
|
"typedoc": "^0.23.0",
|
|
"typedoc-plugin-markdown": "^3.11.0",
|
|
"typescript": "^4.4.3"
|
|
},
|
|
"dependencies": {
|
|
"bigint-mod-arith": "^3.1.0"
|
|
}
|
|
}
|