Comparing version 1.2.61 to 1.3.0
{ | ||
"name": "jspdf", | ||
"version": "1.2.61", | ||
"version": "1.3.0", | ||
"homepage": "https://github.com/mrrio/jspdf", | ||
"description": "PDF Document creation from JavaScript", | ||
"main": "dist/jspdf.min.js", | ||
"main": "dist/jspdf.debug.js", | ||
"files": [ | ||
"dist/jspdf.min.js", | ||
"dist/jspdf.debug.js", | ||
"README.md" | ||
@@ -19,9 +19,19 @@ ], | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"adler32cs": "github:chick307/adler32cs.js", | ||
"cf-blob.js": "0.0.1", | ||
"filesaver.js": "github:andyinabox/FileSaver.js" | ||
}, | ||
"devDependencies": { | ||
"local-web-server": "^0.5.19" | ||
"babel-preset-es2015-rollup": "^1.1.1", | ||
"local-web-server": "^1.2.6", | ||
"rollup": "^0.31.1", | ||
"rollup-plugin-babel": "^2.4.0", | ||
"uglify-js": "^2.6.2" | ||
}, | ||
"scripts": { | ||
"start": "ws" | ||
"start": "ws", | ||
"build": "npm install && bower install && node build.js", | ||
"version": "npm run build && git add -A dist" | ||
} | ||
} |
@@ -14,3 +14,2 @@ #jsPDF | ||
```javascript | ||
var doc = new jsPDF(); | ||
@@ -23,34 +22,11 @@ doc.text(20, 20, 'Hello world.'); | ||
## Checking out the source | ||
## Contributing | ||
Build the library with `npm run build`. This will fetch all dependencies and then compile the `dist` files. To see the examples locally you can start a web server with `npm start` and go to `localhost:8000`. | ||
```bash | ||
git clone --recursive git://github.com/MrRio/jsPDF.git | ||
``` | ||
## Building | ||
To build, simply run the 'make' command. This will fetch all npm and bower deps, then compile minified JS files. | ||
## Running locally | ||
Due to certain restrictions that local files have, you'll need to run a web server. Just run: | ||
``` | ||
npm start | ||
``` | ||
You can then access the site at localhost:8000 | ||
## Credits | ||
- Big thanks to Daniel Dotsenko from [Willow Systems Corporation](http://willow-systems.com) for making huge contributions to the codebase. | ||
- Thanks to Ajaxian.com for [featuring us back in 2009](http://ajaxian.com/archives/dynamically-generic-pdfs-with-javascript). | ||
- Everyone else that's contributed patches or bug reports. You rock. | ||
Big thanks to Daniel Dotsenko from [Willow Systems Corporation](http://willow-systems.com) for making huge contributions to the codebase. | ||
Thanks to Ajaxian.com for [featuring us back in 2009](http://ajaxian.com/archives/dynamically-generic-pdfs-with-javascript). | ||
Everyone else that's contributed patches or bug reports. You rock. | ||
## License | ||
(MIT License) | ||
## License (MIT) | ||
Copyright (c) 2010-2016 James Hall, https://github.com/MrRio/jsPDF | ||
@@ -57,0 +33,0 @@ |
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
624140
14736
0
0
3
5
50
2
+ Addedcf-blob.js@0.0.1
+ Addedcf-blob.js@0.0.1(transitive)