2019-03-17 08:40:35 +00:00
|
|
|
{
|
|
|
|
"name": "bigint-mod-arith",
|
2023-06-28 15:04:17 +00:00
|
|
|
"version": "3.3.0",
|
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",
|
2023-04-13 16:30:48 +00:00
|
|
|
"main": "./dist/index.node.cjs",
|
|
|
|
"browser": "./dist/index.browser.esm.js",
|
|
|
|
"types": "./dist/index.d.ts",
|
2021-03-24 13:04:30 +00:00
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"node": {
|
2023-04-13 16:30:48 +00:00
|
|
|
"module": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.esm.js"
|
2023-04-11 08:43:47 +00:00
|
|
|
},
|
|
|
|
"import": {
|
2023-04-13 16:30:48 +00:00
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.esm.js"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.cjs"
|
2023-04-11 08:43:47 +00:00
|
|
|
}
|
2021-03-24 13:04:30 +00:00
|
|
|
},
|
2023-04-13 16:30:48 +00:00
|
|
|
"script": "./dist/bundle.iife.js",
|
2023-04-11 08:43:47 +00:00
|
|
|
"default": {
|
2023-04-13 16:30:48 +00:00
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.browser.esm.js"
|
2023-04-11 08:43:47 +00:00
|
|
|
}
|
2021-03-24 13:04:30 +00:00
|
|
|
},
|
2023-04-13 16:30:48 +00:00
|
|
|
"./esm-browser-bundle": "./dist/bundle.esm.min.js",
|
2023-06-28 14:42:09 +00:00
|
|
|
"./dist/bundle.esm.min.js": "./dist/bundle.esm.min.js",
|
2023-04-13 16:30:48 +00:00
|
|
|
"./esm-browser-bundle-nomin": "./dist/bundle.esm.js",
|
2023-06-28 14:42:09 +00:00
|
|
|
"./dist/bundle.esm.js": "./dist/bundle.esm.js",
|
2023-04-13 16:30:48 +00:00
|
|
|
"./iife-browser-bundle": "./dist/bundle.iife.js",
|
2023-06-28 14:42:09 +00:00
|
|
|
"./dist/bundle.iife.js": "./dist/bundle.iife.js",
|
2023-04-13 16:30:48 +00:00
|
|
|
"./umd-browser-bundle": "./dist/bundle.umd.js",
|
2023-06-28 14:42:09 +00:00
|
|
|
"./dist/bundle.umd.js": "./dist/bundle.umd.js",
|
|
|
|
"./dist/index.node": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.cjs"
|
|
|
|
},
|
|
|
|
"./dist/index.node.esm": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.esm.js"
|
|
|
|
},
|
|
|
|
"./dist/index.browser.esm": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.browser.esm.js"
|
|
|
|
},
|
|
|
|
"./package.json": "./package.json"
|
2021-03-24 13:04:30 +00:00
|
|
|
},
|
2022-10-03 15:35:35 +00:00
|
|
|
"imports": {
|
|
|
|
"#pkg": {
|
2023-04-11 08:43:47 +00:00
|
|
|
"require": {
|
2023-04-13 16:30:48 +00:00
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.cjs"
|
2023-04-11 08:43:47 +00:00
|
|
|
},
|
|
|
|
"import": {
|
2023-04-13 16:30:48 +00:00
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.node.esm.js"
|
2023-04-11 08:43:47 +00:00
|
|
|
},
|
|
|
|
"default": {
|
2023-06-28 14:42:09 +00:00
|
|
|
"types": "./dist/index.d.ts",
|
2023-04-13 16:30:48 +00:00
|
|
|
"default": "./dist/index.browser.esm.js"
|
2023-04-11 08:43:47 +00:00
|
|
|
}
|
2022-10-03 15:35:35 +00:00
|
|
|
}
|
|
|
|
},
|
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": {
|
2023-04-11 08:43:47 +00:00
|
|
|
"build": "run-s lint:src build:js lint:test docs",
|
2020-04-06 22:49:13 +00:00
|
|
|
"build:js": "rollup -c build/rollup.config.js",
|
2023-04-13 16:30:48 +00:00
|
|
|
"postbuild:js": "rimraf .types",
|
|
|
|
"clean": "rimraf .mocha-ts coverage dist .types docs",
|
2023-04-11 08:43:47 +00:00
|
|
|
"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: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",
|
2023-04-11 08:43:47 +00:00
|
|
|
"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 15:35:35 +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:04:00 +00:00
|
|
|
"mocha-ts:browser": "node build/testing/browser/index.cjs ",
|
|
|
|
"mocha-ts:browser-headless": "node build/testing/browser/index.cjs headless ",
|
2023-04-11 08:43:47 +00:00
|
|
|
"preversion": "run-s clean lint:src build:js lint:test coverage test:browser-headless",
|
2022-08-01 02:04:00 +00:00
|
|
|
"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": {
|
2023-04-11 08:43:47 +00:00
|
|
|
"project": "tsconfig.json",
|
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
|
|
|
],
|
|
|
|
"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/**/*",
|
2023-04-11 08:43:47 +00:00
|
|
|
"benchmark/**/*"
|
2020-04-06 22:49:13 +00:00
|
|
|
]
|
2019-03-17 08:40:35 +00:00
|
|
|
},
|
2023-04-11 08:43:47 +00:00
|
|
|
"nodeBrowserSkel": {
|
|
|
|
"badges": {
|
|
|
|
"workflow": true,
|
|
|
|
"coveralls": true
|
|
|
|
},
|
|
|
|
"git": {
|
|
|
|
"branch": "main"
|
|
|
|
}
|
|
|
|
},
|
2019-03-17 08:40:35 +00:00
|
|
|
"devDependencies": {
|
2023-06-28 14:42:09 +00:00
|
|
|
"@rollup/plugin-commonjs": "^25.0.2",
|
2023-04-11 08:43:47 +00:00
|
|
|
"@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-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",
|
2023-06-28 14:42:09 +00:00
|
|
|
"c8": "^8.0.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",
|
2023-04-13 16:30:48 +00:00
|
|
|
"glob": "^10.0.0",
|
2021-03-24 13:04:30 +00:00
|
|
|
"json5": "^2.2.0",
|
2023-04-13 16:30:48 +00:00
|
|
|
"minimatch": "^9.0.0",
|
2022-08-01 02:04:00 +00:00
|
|
|
"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",
|
2023-06-28 14:42:09 +00:00
|
|
|
"puppeteer": "^20.7.3",
|
2023-04-13 16:30:48 +00:00
|
|
|
"rimraf": "^5.0.0",
|
2023-04-11 08:43:47 +00:00
|
|
|
"rollup": "^3.20.2",
|
2023-04-13 16:30:48 +00:00
|
|
|
"rollup-plugin-dts": "^5.3.0",
|
2023-04-11 08:43:47 +00:00
|
|
|
"ts-standard": "^12.0.2",
|
2022-01-17 10:04:55 +00:00
|
|
|
"tslib": "^2.3.1",
|
2023-04-11 08:43:47 +00:00
|
|
|
"typedoc": "~0.23.0",
|
|
|
|
"typedoc-plugin-markdown": "~3.14.0",
|
|
|
|
"typescript": "^5.0.3"
|
2019-03-17 08:40:35 +00:00
|
|
|
}
|
2022-01-17 10:05:33 +00:00
|
|
|
}
|