Skip to content

Commit

Permalink
Merge pull request #328 from dduponchel/jszip_version
Browse files Browse the repository at this point in the history
Use a hard-coded JSZip.version.
  • Loading branch information
dduponchel committed Aug 7, 2016
2 parents daa866e + 8035771 commit d9ebd41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ JSZip.prototype = require('./object');
JSZip.prototype.loadAsync = require('./load');
JSZip.support = require('./support');
JSZip.defaults = require('./defaults');
JSZip.version = require('../package.json').version;

// TODO find a better way to handle this version,
// a require('package.json').version doesn't work with webpack, see #327
JSZip.version = "3.1.0";

JSZip.loadAsync = function (content, options) {
return new JSZip().loadAsync(content, options);
Expand Down

0 comments on commit d9ebd41

Please sign in to comment.