Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webcrypto-liner

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webcrypto-liner - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

.travis.yml

28

package.json
{
"name": "webcrypto-liner",
"version": "0.1.4",
"description": "A polyfill for WebCrypto that smooths out the rough-edges in existing User Agent implementations.",
"main": "index.js",
"version": "0.1.5",
"description": "A WebCrypto pollyfill that \"smooths out\" the rough-edges in existing User Agent implementations.",
"main": "build/index.js",
"scripts": {
"build": "node scripts/copy && tsc && npm run minify && node scripts/install",
"minify": "uglifyjs build/webcrypto-liner.js -o build/webcrypto-liner.min.js -m -c",
"prepublish": "npm run build"
"build": "npm run build:es5",
"build:es5": "tsc --module commonjs --target es5",
"build:es2015": "tsc --module es2015 --target es2015",
"build:rollup": "npm run build:es2015 && rollup -o=index.js -i=build/index.js",
"build:webpack": "webpack",
"install": "npm run build",
"pub": "npm version patch && npm publish && git push"
},

@@ -15,8 +19,10 @@ "repository": {

},
"dependencies": {},
"dependencies": {
"@types/node": "*",
"webcrypto-core": "^0.1.3",
"asmcrypto.js": "*",
"elliptic": "*"
},
"devDependencies": {
"webcrypto-core": "latest",
"asmcrypto.js": "*",
"elliptic": "*",
"uglify-js": "*",
"ts-loader": "^0.9.5",
"typescript": "*"

@@ -23,0 +29,0 @@ },

@@ -5,2 +5,5 @@ # webcrypto-liner

[![NPM](https://nodei.co/npm-dl/webcrypto-liner.png?months=2&height=2)](https://nodei.co/npm/webcrypto-liner/)
A polyfill for WebCrypto that "smooths out" the rough-edges in existing User Agent implementations.

@@ -56,6 +59,2 @@

<script src="https://www.promisejs.org/polyfills/promise-7.0.4.min.js"></script>
<!-- asmcrypto.js is needed for AES and RSA crypto implementation -->
<script src="src/asmcrypto.js"></script>
<!-- elliptic.js is needed for EC crypto implementation -->
<script src="src/elliptic.js"></script>
<script src="src/webcrypto-liner.js"></script>

@@ -84,5 +83,2 @@ </head>

## Important
This library idoes not yet support any RSA related operations and we do not as of yet have regression tests for it. With that said it works, and you could start working with the library if you were so inclined.
## Dependencies

@@ -95,3 +91,3 @@ typescript

## Installation
Install dependencies and compile the project using the following commands:
The module has been designed to be useful in ES6 and ES5 projects. The default is ES5 with commonjs, to install and build you would run:

@@ -103,2 +99,16 @@ ```

The package also supports rollup and webpack, if you want a ES5 build with Webpack you would use the following commands:
```
npm install
npm run build:webpack
```
If you want a ES2015 build for rollup you would use the following commands:
```
npm install
npm run build:es2015
```
## FAQ

@@ -105,0 +115,0 @@ - **Do I need to use a promise library?** - No, not if your browser supports promises.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc