ffjavascript
Advanced tools
Comparing version 0.2.60 to 0.2.62
{ | ||
"name": "ffjavascript", | ||
"type": "module", | ||
"version": "0.2.60", | ||
"version": "0.2.62", | ||
"description": "Finite Field Library in Javascript", | ||
@@ -9,8 +9,15 @@ "main": "./build/main.cjs", | ||
"exports": { | ||
"import": "./main.js", | ||
"require": "./build/main.cjs" | ||
".": { | ||
"node": { | ||
"import": "./main.js", | ||
"require": "./build/main.cjs" | ||
}, | ||
"browser": "./build/browser.esm.js" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "mocha", | ||
"build": "rollup -c rollup.cjs.config.js" | ||
"build:node": "rollup -c rollup.cjs.config.js", | ||
"build:browser": "rollup -c rollup.browser.esm.config.js", | ||
"build": "npm run build:node && npm run build:browser" | ||
}, | ||
@@ -41,2 +48,5 @@ "repository": { | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^25.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.1", | ||
"@rollup/plugin-replace": "^5.0.3", | ||
"blake2b": "^2.1.3", | ||
@@ -46,4 +56,4 @@ "chai": "^4.2.0", | ||
"mocha": "^10.0.0", | ||
"rollup": "^2.38.5" | ||
"rollup": "^3.29.4" | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
/* global navigator, WebAssembly */ | ||
/* | ||
@@ -98,8 +97,9 @@ Copyright 2019 0KIMS association. | ||
let concurrency; | ||
if ((typeof(navigator) === "object") && navigator.hardwareConcurrency) { | ||
let concurrency = 2; | ||
if (process.browser) { | ||
if (typeof navigator === "object" && navigator.hardwareConcurrency) { | ||
concurrency = navigator.hardwareConcurrency; | ||
} | ||
} else { | ||
concurrency = os.cpus().length; | ||
concurrency = os.cpus().length; | ||
} | ||
@@ -106,0 +106,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
995968
50
26228
8