...
 
Commits (4)
'use strict'
function oldBrowser () {
throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11')
throw new Error('Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11')
}
var Buffer = require('safe-buffer').Buffer
......
node-randombytes (2.0.6-1) unstable; urgency=medium
* Team upload
* New upstream version
* Move to salsa
* Bump policy and compat (no changes).
-- Bastien Roucariès <rouca@debian.org> Mon, 07 May 2018 23:19:40 +0200
node-randombytes (2.0.5-1) unstable; urgency=medium
* Team upload
* New upstream version
* Improve debian packaging
-- Bastien Roucariès <rouca@debian.org> Thu, 30 Nov 2017 16:11:10 +0100
......
......@@ -4,16 +4,16 @@ Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Sarath Madayil <debian@sarathms.me>
Build-Depends:
debhelper (>= 10)
debhelper (>= 11)
, dh-buildinfo
, nodejs (>= 6) <!nocheck>
, node-safe-buffer (>=5.1.0) <!nocheck>
, node-tape (>= 4.6) <!nocheck>
, node-tap (>= 10) <!nocheck>
Standards-Version: 4.1.1
Standards-Version: 4.1.4
Homepage: https://github.com/crypto-browserify/randombytes
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-randombytes.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-randombytes.git
Vcs-Git: https://salsa.debian.org/js-team/node-randombytes.git
Vcs-Browser: https://salsa.debian.org/js-team/node-randombytes
Package: node-randombytes
Architecture: all
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: randombytes
Upstream-Contact: https://github.com/crypto-browserify/randombytes/issues
Source: https://github.com/crypto-browserify/randombytes
Files: *
Copyright: 2016 Calvin Metcalf <cmetcalf@appgeo.com>
Copyright: 2016-2018 Calvin Metcalf <cmetcalf@appgeo.com>
License: Expat
Files: debian/*
Copyright: 2016 Sarath Madayil <debian@sarathms.me>
2017 Bastien Roucariès <rouca@debian.org>
2017-2018 Bastien Roucariès <rouca@debian.org>
License: Expat
License: Expat
......
Tests: require
Depends: node-randombytes, nodejs (>=6)
Tests: runtestsuite
Depends: node-randombytes, nodejs (>=6), node-tap (>= 10), node-tape (>= 4.6)
#!/bin/sh
set -e
# notice the / at end in order to load this module
PACKAGE='randombytes'
SEDCMD="s,require\s*[(]\s*'[.]/,require('$PACKAGE/,g"
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
cp test.js $tmpdir/test.js
echo 'test.js' | \
xargs -n1 \
sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
tap -R spec $tmpdir/test.js
{
"name": "randombytes",
"version": "2.0.5",
"version": "2.0.6",
"description": "random bytes from browserify stand alone",
"main": "index.js",
"scripts": {
......