Skip to content

Commit

Permalink
[meta] update repo URLs
Browse files Browse the repository at this point in the history
Fixes #228.
  • Loading branch information
ljharb committed Nov 27, 2023
1 parent 5757219 commit 7223ce7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A port of node's `crypto` module to the browser.

[![Build Status](https://travis-ci.org/crypto-browserify/crypto-browserify.svg?branch=master)](https://travis-ci.org/crypto-browserify/crypto-browserify)
[![Build Status](https://travis-ci.org/browserify/crypto-browserify.svg?branch=master)](https://travis-ci.org/browserify/crypto-browserify)
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/crypto-browserify.svg)](https://saucelabs.com/u/crypto-browserify)

Expand Down
6 changes: 1 addition & 5 deletions example/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,7 @@ require.define('/node_modules/crypto-browserify/index.js', function (require, mo

function error() {
var m = Array.prototype.slice.call(arguments).join(' ');
throw new Error([
m,
'we accept pull requests',
'http://github.com/dominictarr/crypto-browserify'
].join('\n'));
throw new Error(m+'\nwe accept pull requests\nhttp://github.com/browserify/crypto-browserify'.join('\n'));
}

exports.createHash = function (alg) {
Expand Down
16 changes: 6 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ exports.publicDecrypt = publicEncrypt.publicDecrypt;
exports.privateDecrypt = publicEncrypt.privateDecrypt;

// the least I can do is make error messages for the rest of the node.js/crypto api.
// ;[
// 'createCredentials'
// [
// 'createCredentials'
// ].forEach(function (name) {
// exports[name] = function () {
// throw new Error('sorry, ' + name + ' is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify');
// };
// exports[name] = function () {
// throw new Error('sorry, ' + name + ' is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
// };
// });

var rf = require('randomfill');
Expand All @@ -81,11 +81,7 @@ exports.randomFill = rf.randomFill;
exports.randomFillSync = rf.randomFillSync;

exports.createCredentials = function () {
throw new Error([
'sorry, createCredentials is not implemented yet',
'we accept pull requests',
'https://github.com/crypto-browserify/crypto-browserify'
].join('\n'));
throw new Error('sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
};

exports.constants = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"name": "crypto-browserify",
"description": "implementation of crypto for the browser",
"version": "3.12.0",
"homepage": "https://github.com/crypto-browserify/crypto-browserify",
"homepage": "https://github.com/browserify/crypto-browserify",
"repository": {
"type": "git",
"url": "git://github.com/crypto-browserify/crypto-browserify.git"
"url": "git://github.com/browserify/crypto-browserify.git"
},
"scripts": {
"lint": "eslint --ext=js,mjs .",
Expand Down
2 changes: 1 addition & 1 deletion test/random-bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Object.entries(randomBytesFunctions).forEach(function (entry) {
// test that the random numbers are plausably random.
// Math.random() will pass this, but this will catch
// terrible mistakes such as this blunder:
// https://github.com/dominictarr/crypto-browserify/commit/3267955e1df7edd1680e52aeede9a89506ed2464#commitcomment-7916835
// https://github.com/browserify/crypto-browserify/commit/3267955e1df7edd1680e52aeede9a89506ed2464#commitcomment-7916835

// this doesn't check that the bytes are in a random *order*
// but it's better than nothing.
Expand Down
2 changes: 1 addition & 1 deletion test/random-fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test('seems random', function (t) {
// test that the random numbers are plausably random.
// Math.random() will pass this, but this will catch
// terrible mistakes such as this blunder:
// https://github.com/dominictarr/crypto-browserify/commit/3267955e1df7edd1680e52aeede9a89506ed2464#commitcomment-7916835
// https://github.com/browserify/crypto-browserify/commit/3267955e1df7edd1680e52aeede9a89506ed2464#commitcomment-7916835

// this doesn't check that the bytes are in a random *order*
// but it's better than nothing.
Expand Down

0 comments on commit 7223ce7

Please sign in to comment.