Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
* bump csrkey-cache to 2.0.0 and add required lru-cache dependency
* replace Buffer dependency with base64-js in LiveKey source and unit tests
* update build scripts for web example and tests accordingly
* add new dependency links in html of web example and tests
* update CDN links in README
  • Loading branch information
smcatala committed Nov 22, 2016
1 parent dc09266 commit d1a4281
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 4,367 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ const plain = Promise.join(unlocked, cipher,
.tap(log) // 'rob says wow!'
```

run the [above example](https://cdn.rawgit.com/ZenyWay/opgp-service/v2.0.0/spec/example/index.html)
run the [above example](https://cdn.rawgit.com/ZenyWay/opgp-service/v2.0.1/spec/example/index.html)
in your browser.

# <a name="api"></a> API
run the [unit tests](https://cdn.rawgit.com/ZenyWay/opgp-service/v2.0.0/spec/web/index.html)
run the [unit tests](https://cdn.rawgit.com/ZenyWay/opgp-service/v2.0.1/spec/web/index.html)
in your browser.

note that [openpgp](https://npmjs.com/package/openpgp) is defined as a
Expand Down
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opgp-service",
"version": "2.0.0",
"version": "2.0.1",
"description": "a fully async API for openpgp that builds on ephemeral immutable keys and that does not leak cryptographic material.",
"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 --project spec/example ] -t brfs --exclude 'openpgp' --exclude 'bluebird' --exclude 'csrkey-cache' --exclude 'tslib' -o spec/example/index.js",
"example:bundle": "browserify spec/example/index.ts -p [ tsify --project spec/example ] -t brfs --exclude 'openpgp' --exclude 'bluebird' --exclude 'csrkey-cache' --exclude 'lru-cache' --exclude 'base64-js' --exclude 'tslib' -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 --project spec ] --exclude 'openpgp' --exclude 'bluebird' --exclude 'csrkey-cache' --exclude 'tslib' -t uglifyify -o spec/web/index.spec.js && npm run test:web:serve"
"test:web": "browserify spec/*.spec.ts -p [ tsify --project spec ] --exclude 'openpgp' --exclude 'bluebird' --exclude 'csrkey-cache' --exclude 'lru-cache' --exclude 'base64-js' --exclude 'tslib' -t aliasify -t uglifyify -o spec/web/index.spec.js && npm run test:web:serve"
},
"repository": {
"type": "git",
Expand All @@ -48,14 +48,18 @@
"openpgp": ">= 2.x"
},
"dependencies": {
"@types/base64-js": "^1.2.5",
"base64-js": "^1.2.0",
"bluebird": "^3.4.6",
"csrkey-cache": "^1.0.1",
"csrkey-cache": "^2.0.0",
"lru-cache": "^4.0.1",
"tslib": "^1.1.0"
},
"devDependencies": {
"@types/bluebird": "^3.0.35",
"@types/jasmine": "^2.5.38",
"@types/node": "^6.0.49",
"aliasify": "^2.1.0",
"brfs": "^1.4.3",
"browserify": "^13.1.1",
"browserify-istanbul": "^2.0.0",
Expand Down Expand Up @@ -84,5 +88,11 @@
"typescript": "^2.1.1",
"uglifyify": "^3.0.4",
"watchify": "^3.7.0"
},
"aliasify": {
"aliases": {
"base64-js": "base64Js",
"lru-cache": "lruCache"
}
}
}
2 changes: 2 additions & 0 deletions spec/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ <h2>
<script src="https://wzrd.in/bundle/debug" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/tslib" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/bluebird" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/lru-cache" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/csrkey-cache" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/base64-js" type="text/javascript"></script>
<script src="https://wzrd.in/bundle/openpgp" type="text/javascript"></script>
<script src="./index.js" type="text/javascript"></script>
</body>

0 comments on commit d1a4281

Please sign in to comment.