2019-03-17 08:40:35 +00:00
|
|
|
{
|
|
|
|
"name": "bigint-mod-arith",
|
2022-09-12 09:00:16 +00:00
|
|
|
"version": "3.1.1",
|
2020-04-08 09:53:15 +00:00
|
|
|
"description": "Some common functions for modular arithmetic using native JS implementation of BigInt",
|
2019-03-17 08:40:35 +00:00
|
|
|
"keywords": [
|
|
|
|
"modular arithmetics",
|
|
|
|
"BigInt",
|
|
|
|
"lcm",
|
|
|
|
"gcd",
|
|
|
|
"egcd",
|
2019-04-25 15:24:29 +00:00
|
|
|
"modinv",
|
2019-03-17 08:40:35 +00:00
|
|
|
"modular inverse",
|
2019-04-25 15:24:29 +00:00
|
|
|
"modpow",
|
2019-03-17 08:40:35 +00:00
|
|
|
"modular exponentiation"
|
|
|
|
],
|
|
|
|
"license": "MIT",
|
|
|
|
"author": {
|
|
|
|
"name": "Juan Hernández Serrano",
|
2020-04-18 23:13:29 +00:00
|
|
|
"email": "j.hernandez@upc.edu",
|
2019-03-17 08:40:35 +00:00
|
|
|
"url": "https://github.com/juanelas"
|
|
|
|
},
|
|
|
|
"repository": "github:juanelas/bigint-mod-arith",
|
2021-03-24 13:04:30 +00:00
|
|
|
"engines": {
|
|
|
|
"node": ">=10.4.0"
|
|
|
|
},
|
2022-08-01 02:04:00 +00:00
|
|
|
"type": "module",
|
2021-08-06 22:14:30 +00:00
|
|
|
"types": "./types/index.d.ts",
|
2021-03-24 13:04:30 +00:00
|
|
|
"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",
|
2022-08-01 02:04:00 +00:00
|
|
|
"import": "./dist/esm/index.node.js",
|
|
|
|
"module": "./dist/esm/index.node.js"
|
2021-03-24 13:04:30 +00:00
|
|
|
},
|
|
|
|
"default": "./dist/esm/index.browser.js"
|
|
|
|
},
|
2022-01-17 10:04:55 +00:00
|
|
|
"./esm-browser-bundle": "./dist/bundles/esm.min.js",
|
2021-08-06 22:14:30 +00:00
|
|
|
"./iife-browser-bundle": "./dist/bundles/iife.js",
|
|
|
|
"./umd-browser-bundle": "./dist/bundles/umd.js",
|
|
|
|
"./types": "./types/index.d.ts"
|
2021-03-24 13:04:30 +00:00
|
|
|
},
|
2022-10-03 15:35:35 +00:00
|
|
|
"imports": {
|
|
|
|
"#pkg": {
|
|
|
|
"import": "./dist/esm/index.node.js",
|
|
|
|
"require": "./dist/cjs/index.node.cjs"
|
|
|
|
}
|
|
|
|
},
|
2019-03-17 08:40:35 +00:00
|
|
|
"directories": {
|
2019-04-06 08:08:31 +00:00
|
|
|
"build": "./build",
|
2021-03-24 13:04:30 +00:00
|
|
|
"dist": "./dist",
|
|
|
|
"docs": "./docs",
|
2020-04-06 22:49:13 +00:00
|
|
|
"src": "./src",
|
2022-10-03 15:35:35 +00:00
|
|
|
"test": "./test",
|
|
|
|
"benchmark": "./benchmark",
|
|
|
|
"mocha-ts": "./.mocha-ts"
|
2020-04-18 23:31:14 +00:00
|
|
|
},
|
2019-03-17 08:40:35 +00:00
|
|
|
"scripts": {
|
2022-01-17 10:04:55 +00:00
|
|
|
"build": "run-s lint build:js docs",
|
2020-04-06 22:49:13 +00:00
|
|
|
"build:js": "rollup -c build/rollup.config.js",
|
2022-10-03 15:35:35 +00:00
|
|
|
"clean": "rimraf .mocha-ts coverage dist types docs",
|
|
|
|
"coverage": "c8 --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:04:00 +00:00
|
|
|
"docs": "node build/build.docs.cjs",
|
2021-08-06 22:14:30 +00:00
|
|
|
"git:add": "git add -A",
|
2021-03-24 13:04:30 +00:00
|
|
|
"lint": "ts-standard --fix",
|
2022-10-03 15:35:35 +00:00
|
|
|
"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 ",
|
2022-08-01 02:04:00 +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 build:js coverage test:browser-headless",
|
|
|
|
"version": "run-s docs git:add",
|
2021-08-06 22:14:30 +00:00
|
|
|
"postversion": "git push --follow-tags",
|
2022-10-03 15:35:35 +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 "
|
2020-04-06 22:49:13 +00:00
|
|
|
},
|
2021-03-24 13:04:30 +00:00
|
|
|
"ts-standard": {
|
2020-04-06 22:49:13 +00:00
|
|
|
"env": [
|
|
|
|
"mocha"
|
|
|
|
],
|
|
|
|
"globals": [
|
2021-03-24 13:04:30 +00:00
|
|
|
"IS_BROWSER",
|
|
|
|
"browser",
|
|
|
|
"page",
|
|
|
|
"chai"
|
2020-04-06 22:49:13 +00:00
|
|
|
],
|
2022-10-03 15:35:35 +00:00
|
|
|
"project": "tsconfig.json",
|
2020-04-06 22:49:13 +00:00
|
|
|
"ignore": [
|
2022-01-17 10:04:55 +00:00
|
|
|
"dist/**/*",
|
2022-10-03 15:35:35 +00:00
|
|
|
"examples/**/*",
|
2022-01-17 10:04:55 +00:00
|
|
|
"types/**/*",
|
2022-10-03 15:35:35 +00:00
|
|
|
"build/testing/mocha/mocha-init.js"
|
2020-04-06 22:49:13 +00:00
|
|
|
]
|
2019-03-17 08:40:35 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-08-01 02:04:00 +00:00
|
|
|
"@rollup/plugin-commonjs": "^22.0.0",
|
2022-01-17 10:04:55 +00:00
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
2021-03-24 13:04:30 +00:00
|
|
|
"@rollup/plugin-multi-entry": "^4.0.0",
|
2022-10-03 15:35:35 +00:00
|
|
|
"@rollup/plugin-node-resolve": "^14.1.0",
|
2022-08-01 02:04:00 +00:00
|
|
|
"@rollup/plugin-replace": "^4.0.0",
|
2021-03-24 13:04:30 +00:00
|
|
|
"@rollup/plugin-typescript": "^8.2.0",
|
2022-01-17 10:04:55 +00:00
|
|
|
"@types/chai": "^4.2.22",
|
2022-10-03 15:35:35 +00:00
|
|
|
"@types/mocha": "^10.0.0",
|
|
|
|
"c8": "^7.12.0",
|
2021-03-24 13:04:30 +00:00
|
|
|
"chai": "^4.3.3",
|
2022-10-03 15:35:35 +00:00
|
|
|
"dotenv": "^16.0.3",
|
2022-08-01 02:04:00 +00:00
|
|
|
"glob": "^8.0.1",
|
2021-03-24 13:04:30 +00:00
|
|
|
"json5": "^2.2.0",
|
2022-08-01 02:04:00 +00:00
|
|
|
"minimatch": "^5.0.1",
|
|
|
|
"mocha": "^10.0.0",
|
2020-04-06 22:49:13 +00:00
|
|
|
"npm-run-all": "^4.1.5",
|
2021-03-24 13:04:30 +00:00
|
|
|
"pirates": "^4.0.1",
|
2022-10-03 15:35:35 +00:00
|
|
|
"puppeteer": "^18.0.5",
|
2021-03-24 13:04:30 +00:00
|
|
|
"rimraf": "^3.0.2",
|
2022-01-17 10:04:55 +00:00
|
|
|
"rollup": "^2.57.0",
|
2021-03-24 13:04:30 +00:00
|
|
|
"rollup-plugin-terser": "^7.0.2",
|
2022-01-17 10:04:55 +00:00
|
|
|
"ts-standard": "^11.0.0",
|
|
|
|
"tslib": "^2.3.1",
|
2022-08-01 02:04:00 +00:00
|
|
|
"typedoc": "^0.23.0",
|
2022-01-17 10:04:55 +00:00
|
|
|
"typedoc-plugin-markdown": "^3.11.0",
|
|
|
|
"typescript": "^4.4.3"
|
2019-03-17 08:40:35 +00:00
|
|
|
}
|
2022-01-17 10:05:33 +00:00
|
|
|
}
|