webcrypto-liner
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
30
2921
122
148960
4
3
70
2
1
1
+ Added@types/node@*
+ Addedasmcrypto.js@*
+ Addedelliptic@*
+ Addedwebcrypto-core@^0.1.3
+ Added@types/node@22.10.2(transitive)
+ Addedasmcrypto.js@2.3.2(transitive)
+ Addedbn.js@4.12.1(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedwebcrypto-core@0.1.27(transitive)