@iota/pow-neon.js
Advanced tools
Comparing version 1.9.0-stardust.4 to 1.9.0-stardust.5
@@ -11,3 +11,3 @@ 'use strict'; | ||
var module$1 = require("./native/index.node"); | ||
var module$1 = require("./native/_index_.node"); | ||
@@ -14,0 +14,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("os")),n=require("./native/index.node");exports.NeonPowProvider=class{constructor(e){this._numCpus=null!=e?e:t.default.cpus().length}async pow(e,t){const r=e.slice(0,-8),o=n.doPow(r.buffer,t,this._numCpus);return(BigInt(o[0])|BigInt(o[1])<<BigInt(32)).toString()}}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("os")),n=require("./native/_index_.node");exports.NeonPowProvider=class{constructor(e){this._numCpus=null!=e?e:t.default.cpus().length}async pow(e,t){const r=e.slice(0,-8),o=n.doPow(r.buffer,t,this._numCpus);return(BigInt(o[0])|BigInt(o[1])<<BigInt(32)).toString()}}; |
{ | ||
"name": "@iota/pow-neon.js", | ||
"description": "IOTA JavaScript Library for Performing Multi-Threaded PoW on NodeJS", | ||
"version": "1.9.0-stardust.4", | ||
"version": "1.9.0-stardust.5", | ||
"keywords": [ | ||
@@ -35,3 +35,4 @@ "iota", | ||
"neon-copy": "node ./copy-dist.js", | ||
"postinstall": "npm run neon-build && npm run neon-copy" | ||
"postinstall": "npm run neon-build && npm run neon-copy", | ||
"docs-wiki-build": "typedoc --githubPages false --disableSources --excludePrivate --excludeInternal --excludeNotDocumented --plugin typedoc-plugin-markdown --theme markdown --hideBreadcrumbs --entryDocument api_ref.md --readme none --hideGenerator --sort source-order --exclude ./**/src/index.ts --out ../../documentation/docs/references/pow-neon ./src/index.ts" | ||
}, | ||
@@ -81,5 +82,5 @@ "engines": { | ||
"dependencies": { | ||
"@iota/iota.js": "^1.9.0-stardust.4", | ||
"@iota/types": "latest", | ||
"neon-cli": "^0.10.0" | ||
} | ||
} |
// Copyright 2020 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
/* eslint-disable no-bitwise */ | ||
import type { IPowProvider } from "@iota/iota.js"; | ||
import type { IPowProvider } from "@iota/types"; | ||
import os from "os"; | ||
@@ -6,0 +6,0 @@ // eslint-disable-next-line unicorn/import-index |
export * from "./neonPowProvider"; |
@@ -1,2 +0,2 @@ | ||
import type { IPowProvider } from "@iota/iota.js"; | ||
import type { IPowProvider } from "@iota/types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Neon POW Provider. |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
29710
1
+ Added@iota/types@latest
+ Added@iota/types@2.0.0-rc.2(transitive)
- Removed@iota/iota.js@^1.9.0-stardust.4
- Removed@iota/crypto.js@2.0.0-rc.2(transitive)
- Removed@iota/iota.js@1.9.0-stardust.28(transitive)
- Removed@iota/util.js@2.0.0-rc.2(transitive)
- Removedbig-integer@1.6.52(transitive)
- Removednode-fetch@2.6.7(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)