New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@qiskit/devs-anu

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiskit/devs-anu - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

lib/utils.js

6

index.js
/**
* @license
*
* Copyright (c) 2017-present, IBM Research.
* Copyright (c) 2017, IBM.
*
* This source code is licensed under the Apache license found in the
* LICENSE.txt file in the root directory of this source tree.
* This source code is licensed under the Apache License, Version 2.0 found in
* the LICENSE.txt file in the root directory of this source tree.
*/

@@ -9,0 +9,0 @@

/**
* @license
*
* Copyright (c) 2017-present, IBM Research.
* Copyright (c) 2017, IBM.
*
* This source code is licensed under the Apache license found in the
* LICENSE.txt file in the root directory of this source tree.
* This source code is licensed under the Apache License, Version 2.0 found in
* the LICENSE.txt file in the root directory of this source tree.
*/

@@ -14,13 +14,10 @@

const utils = require('@qiskit/utils');
const utils = require('./utils');
const qrand = util.promisify(require('qrand').getRandomHexOctets);
const { name } = require('../package');
const dbg = utils.dbg(__filename);
const dbg = utils.debug(name);
module.exports = async (len = 16) => {
// "/2" The library expecst the number of octects and we ask for number of
// hexadecimal digits (8 octets = 16 hex chars).
const octects = await qrand(len / 2);

@@ -27,0 +24,0 @@ dbg('Generated number (octects):', { octects, len: octects.length });

{
"name": "@qiskit/devs-anu",
"version": "0.3.0",
"description": "Australia National University engine for QISKit for developers",
"version": "0.4.0",
"description": "Australia National University engine for Qiskit for developers",
"author": {

@@ -9,13 +9,13 @@ "name": "IBM RESEARCH",

},
"homepage": "https://github.com/QISKit/qiskit-sdk-js",
"homepage": "https://github.com/Qiskit/qiskit-js",
"contributors": [
"https://github.com/QISKit/qiskit-sdk-js/graphs/contributors"
"https://github.com/Qiskit/qiskit-js/graphs/contributors"
],
"repository": {
"type": "git",
"url": "https://github.com/QISKit/qiskit-sdk-js"
"url": "https://github.com/Qiskit/qiskit-js"
},
"scripts": {
"dep-check": "depcheck",
"test": "mocha --recursive test --timeout 20000"
"test": "mocha --recursive test --timeout 20000 --color"
},

@@ -32,6 +32,6 @@ "keywords": [

"bugs": {
"url": "https://github.com/QISKit/qiskit-sdk-js/issues"
"url": "https://github.com/Qiskit/qiskit-js/issues"
},
"dependencies": {
"@qiskit/utils": "^0.3.0",
"@qiskit/utils": "^0.4.0",
"qrand": "^0.1.3"

@@ -38,0 +38,0 @@ },

@@ -1,4 +0,4 @@

# QISKit.js algorithms (ANU)
# Qiskit.js devs (ANU)
The [Australian National University](http://www.anu.edu.au) [Quantum Random Numbers Server](https://qrng.anu.edu.au) engine (chip) for the [QISKit algorithms package](https://github.com/QISKit/qiskit-sdk-js/tree/master/packages/qiskit-devs).
The [Australian National University](http://www.anu.edu.au) [Quantum Random Numbers Server](https://qrng.anu.edu.au) engine (chip) for the [Qiskit devs package](https://github.com/Qiskit/qiskit-js/tree/master/packages/qiskit-devs).

@@ -5,0 +5,0 @@ ## Install

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc