Skip to content

Commit

Permalink
1.0.3 add missing randombytes dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
smcatala committed Jan 1, 2017
1 parent 8bb26bb commit 6c1201e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4,457 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const words = randomwords(8) // Uint16Array with 8 cryptographically-secure rand
words.forEach(log)
```

a live version of this example can be viewed [here](https://cdn.rawgit.com/ZenyWay/randomwords/v1.0.2/spec/example/index.html)
a live version of this example can be viewed [here](https://cdn.rawgit.com/ZenyWay/randomwords/v1.0.3/spec/example/index.html)
in the browser console,
or by cloning this repository and running the following commands from a terminal:
```bash
Expand All @@ -32,7 +32,7 @@ the files of this example are available [here](./spec/example).
coded in `Typescript 2`, transpiled to `ES5`.

for a detailed specification of the API,
run the [unit tests](https://cdn.rawgit.com/ZenyWay/randomwords/v1.0.2/spec/web/index.html)
run the [unit tests](https://cdn.rawgit.com/ZenyWay/randomwords/v1.0.3/spec/web/index.html)
in your browser.

# <a name="contributing"></a> CONTRIBUTING
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "randomwords",
"version": "1.0.2",
"version": "1.0.3",
"description": "generate Uint16Array with cryptographically-secure random 16-bit integer (word) entries, like randombytes for words",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -10,7 +10,7 @@
"example": "npm run example:bundle && npm run example:serve",
"example:serve": "http-server -c-1 -i -e html -o -p 6510 spec/example",
"preexample:bundle": "rimraf spec/example/*.js",
"example:bundle": "browserify spec/example/index.ts -p [ tsify -p spec/example ] --exclude debug -t uglifyify -o spec/example/index.js",
"example:bundle": "browserify spec/example/index.ts -p [ tsify -p spec/example ] --exclude debug --exclude randombytes -t uglifyify -o spec/example/index.js",
"prepublish": "npm run dist",
"pretest": "mkdirp spec/reports && rimraf spec/reports/*",
"test": "karma start spec/karma.conf.js --single-run",
Expand All @@ -21,7 +21,7 @@
"test:ci": "karma start spec/karma-coverage.conf.js --single-run && remap-istanbul -i spec/reports/coverage/chrom*/coverage.json -o spec/reports/coverage/lcov.info -t lcovonly",
"test:web:serve": "http-server -c-1 -o -p 6510 spec/web",
"pretest:web": "rimraf spec/web/*.js",
"test:web": "browserify spec/*.spec.ts -p [ tsify -p spec ] --exclude tslib -o spec/web/index.spec.js && npm run test:web:serve"
"test:web": "browserify spec/*.spec.ts -p [ tsify -p spec ] --exclude tslib --exclude randombytes -o spec/web/index.spec.js && npm run test:web:serve"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,5 +71,8 @@
"typescript": "^2.1.4",
"uglifyify": "^3.0.4",
"watchify": "^3.8.0"
},
"dependencies": {
"randombytes": "^2.0.3"
}
}
1 change: 1 addition & 0 deletions spec/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ <h2>
</h2>
<pre>please open the console</pre>
<script src="https://wzrd.in/bundle/debug" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/randombytes" type="text/javascript"></script>
<script src="./index.js" type="text/javascript"></script>
</body>

0 comments on commit 6c1201e

Please sign in to comment.