bigint-crypto-utils/package.json

166 lines
5.0 KiB
JSON
Raw Normal View History

2019-04-19 07:42:28 +00:00
{
2019-04-19 10:04:06 +00:00
"name": "bigint-crypto-utils",
2023-04-11 09:02:48 +00:00
"version": "3.2.0",
2020-04-20 22:53:58 +00:00
"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",
2019-04-19 07:42:28 +00:00
"keywords": [
"modular arithmetics",
2019-04-19 10:04:06 +00:00
"crypto",
2019-04-19 07:42:28 +00:00
"prime",
2019-04-19 10:04:06 +00:00
"random",
2019-04-19 07:42:28 +00:00
"rng",
"prng",
"primality test",
"BigInt",
"angular",
"react"
2019-04-19 07:42:28 +00:00
],
"license": "MIT",
"author": {
"name": "Juan Hernández Serrano",
"email": "j.hernandez@upc.edu",
2019-04-19 07:42:28 +00:00
"url": "https://github.com/juanelas"
},
2019-04-19 10:04:06 +00:00
"repository": "github:juanelas/bigint-crypto-utils",
2021-03-25 12:40:04 +00:00
"engines": {
"node": ">=10.4.0"
},
2022-08-01 02:19:48 +00:00
"type": "module",
2021-03-25 12:40:04 +00:00
"main": "./dist/cjs/index.node.cjs",
"types": "./types/index.d.cts",
"browser": "./dist/esm/index.browser.js",
2021-03-25 12:40:04 +00:00
"module": "./dist/esm/index.node.js",
"exports": {
".": {
"node": {
"require": {
"default": "./dist/cjs/index.node.cjs",
"types": "./types/index.d.cts"
},
"import": {
"default": "./dist/esm/index.node.js",
"types": "./types/index.d.ts"
}
2021-03-25 12:40:04 +00:00
},
"default": {
"default": "./dist/esm/index.browser.js",
"types": "./types/index.d.ts"
}
2021-03-25 12:40:04 +00:00
},
2022-08-01 02:19:48 +00:00
"./esm-browser-bundle": "./dist/bundles/esm.min.js",
"./esm-browser-bundle-nomin": "./dist/bundles/esm.js",
2021-08-06 08:10:32 +00:00
"./iife-browser-bundle": "./dist/bundles/iife.js",
"./umd-browser-bundle": "./dist/bundles/umd.js",
"./types": "./types/index.d.cts"
2021-03-25 12:40:04 +00:00
},
2022-10-03 17:57:08 +00:00
"imports": {
"#pkg": {
"require": {
"default": "./dist/cjs/index.node.cjs",
"types": "./types/index.d.cts"
},
"import": {
"default": "./dist/esm/index.node.js",
"types": "./types/index.d.ts"
},
"default": {
"default": "./dist/esm/index.browser.js",
"types": "./types/index.d.ts"
}
2022-10-03 17:57:08 +00:00
}
},
2019-04-19 07:42:28 +00:00
"directories": {
"build": "./build",
2021-03-25 12:40:04 +00:00
"dist": "./dist",
"docs": "./docs",
2019-04-19 07:42:28 +00:00
"src": "./src",
2022-10-03 17:57:08 +00:00
"test": "./test",
"benchmark": "./benchmark",
"mocha-ts": "./.mocha-ts"
},
2019-04-19 07:42:28 +00:00
"scripts": {
"build": "run-s lint:src build:js lint:test docs",
"build:js": "rollup -c build/rollup.config.js",
2022-08-01 17:10:00 +00:00
"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 ",
2022-08-01 02:19:48 +00:00
"docs": "node build/build.docs.cjs",
2021-08-06 17:17:16 +00:00
"git:add": "git add -A",
2021-03-25 12:40:04 +00:00
"lint": "ts-standard --fix",
"lint:src": "ts-standard --fix \"src/**/!(*.spec).ts\"",
"lint:test": "ts-standard --fix \"{test/**/*.ts,src/**/*.spec.ts}\"",
"mocha-ts": "node --experimental-modules --experimental-json-modules --es-module-specifier-resolution=node ./build/bin/mocha-ts.cjs ",
2022-10-03 17:57:08 +00:00
"mocha-ts:cjs": "node ./build/bin/mocha-ts.cjs --commonjs ",
"mocha-ts:watch": "npm run mocha-ts:cjs -- --watch ",
2022-08-01 02:19:48 +00:00
"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:src build:js lint:test coverage test:browser-headless",
2022-04-20 21:55:44 +00:00
"version": "run-s docs git:add",
2021-08-06 17:17:16 +00:00
"postversion": "git push --follow-tags",
2022-10-03 17:57:08 +00:00
"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 "
2019-04-19 07:42:28 +00:00
},
2021-03-25 12:40:04 +00:00
"ts-standard": {
2022-10-03 17:57:08 +00:00
"project": "tsconfig.json",
"env": [
"mocha"
],
"globals": [
2021-03-25 12:40:04 +00:00
"IS_BROWSER",
"browser",
"page",
"chai"
],
"ignore": [
2021-03-25 12:40:04 +00:00
"dist/**/*",
2021-08-06 15:29:23 +00:00
"examples/**/*",
2022-10-03 17:57:08 +00:00
"types/**/*",
"benchmark/**/*"
]
},
"nodeBrowserSkel": {
"badges": {
"workflow": true,
"coveralls": true
},
"git": {
"branch": "main"
}
},
2019-04-19 07:42:28 +00:00
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.1.0",
2022-08-01 02:19:48 +00:00
"@types/chai": "^4.2.22",
2022-10-03 17:57:08 +00:00
"@types/mocha": "^10.0.0",
2022-08-01 17:10:00 +00:00
"c8": "^7.12.0",
2021-03-25 12:40:04 +00:00
"chai": "^4.3.3",
2022-10-03 17:57:08 +00:00
"dotenv": "^16.0.3",
"glob": "^9.3.4",
2021-03-25 12:40:04 +00:00
"json5": "^2.2.0",
"minimatch": "^8.0.3",
2022-08-01 02:19:48 +00:00
"mocha": "^10.0.0",
"npm-run-all": "^4.1.5",
2021-03-25 12:40:04 +00:00
"pirates": "^4.0.1",
"puppeteer": "^19.1.2",
"rimraf": "^4.4.1",
"rollup": "^3.20.2",
"ts-standard": "^12.0.2",
2022-08-01 02:19:48 +00:00
"tslib": "^2.3.1",
"typedoc": "~0.23.0",
"typedoc-plugin-markdown": "~3.14.0",
"typescript": "^5.0.3"
},
"dependencies": {
"bigint-mod-arith": "^3.2.0"
2019-04-19 07:42:28 +00:00
}
2019-04-20 20:13:13 +00:00
}