Socket
Socket
Sign inDemoInstall

@iota/pow-neon.js

Package Overview
Dependencies
78
Maintainers
12
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.0-stardust.4 to 1.9.0-stardust.5

2

dist/pow-neon.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc