Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Exported _lib_internal from library itself for tests, not documente…
Browse files Browse the repository at this point in the history
…d as public API.

Recompiled with Emscripten from emscripten-core/emscripten#5368 (recently rebased against incoming branch).
Version 0.1.0 is ready to be published to NPM.
  • Loading branch information
nazar-pc committed Oct 4, 2017
1 parent 060e2d4 commit 7a36521
Show file tree
Hide file tree
Showing 13 changed files with 169 additions and 253 deletions.
Binary file modified dist/noise-c.wasm
Binary file not shown.
279 changes: 100 additions & 179 deletions dist/noise-c.wasm.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/noise-c.wasm.browser.min.js

Large diffs are not rendered by default.

118 changes: 60 additions & 58 deletions noise-c.js

Large diffs are not rendered by default.

Binary file modified noise-c.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"wasm",
"emscripten"
],
"version" : "0.0.1",
"version" : "0.1.0",
"homepage" : "https://github.com/nazar-pc/noise-c.wasm",
"author" : {
"name" : "Nazar Mokrynskyi",
Expand Down
6 changes: 0 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ This project basically does 2 things:

When reading LiveScript code make sure to configure 1 tab to be 4 spaces (GitHub uses 8 by default), otherwise code might be hard to read.

## Current status

API should be near stable and unlikely to change.

Still considered unstable, so be careful and make sure to report any issues you encounter. Project is covered with a lot of tests though to ensure it works as intended (see `tests` directory).

## API

### lib.ready(callback)
Expand Down
3 changes: 2 additions & 1 deletion src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
constants = require('./constants')
lib = require('../noise-c')()

module.exports = {ready: lib.then, constants, CipherState, SymmetricState, HandshakeState}
module.exports = {ready : lib.then, constants, CipherState, SymmetricState, HandshakeState, _lib_internal : lib}

allocate = lib.allocateBytes
allocate_pointer = lib.allocatePointer
Expand Down
2 changes: 1 addition & 1 deletion tests/HandshakeState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/HandshakeState.ls
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* @license MIT License, see license.txt
*/
lib = require('..')
# Should be require()(), but https://github.com/kripken/emscripten/issues/5568
lib_internal = require('../noise-c')#()
lib_internal = lib._lib_internal
randombytes = require('crypto').randomBytes
test = require('tape')

Expand Down
2 changes: 1 addition & 1 deletion tests/vectors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/vectors.ls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
*/
fs = require('fs')
lib = require('..')
# Should be require()(), but https://github.com/kripken/emscripten/issues/5568
lib_internal = require('../noise-c')#()
lib_internal = lib._lib_internal
randombytes = require('crypto').randomBytes
test = require('tape')

Expand Down

0 comments on commit 7a36521

Please sign in to comment.