Comparing version 4.0.0 to 4.0.1
## Change Log | ||
### 4.0.0 (2019/02/03 15:57 +00:00) | ||
### 4.0.1 (2019/02/03 16:16 +00:00) | ||
- [#96](https://github.com/oncletom/crx/pull/96) Remove deprecated crx.writeFile() (@oncletom) | ||
### v4.0.0 (2019/02/03 15:57 +00:00) | ||
- [#95](https://github.com/oncletom/crx/pull/95) Release crx@4 (@oncletom) | ||
@@ -5,0 +8,0 @@ - [#93](https://github.com/oncletom/crx/pull/93) fix demo code (@g8up) |
@@ -5,3 +5,3 @@ { | ||
"description": "crx is a utility to package Google Chrome extensions via a Node API and the command line", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "homepage": "https://github.com/oncletom/crx", |
"use strict"; | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
@@ -87,25 +86,3 @@ var join = path.join; | ||
/** | ||
* Writes data into the extension workable directory. | ||
* | ||
* @deprecated | ||
* @param {string} path | ||
* @param {*} data | ||
* @returns {Promise} | ||
*/ | ||
writeFile (path, data) { | ||
var absPath = join(this.path, path); | ||
/* istanbul ignore next */ | ||
return new Promise(function(resolve, reject) { | ||
fs.writeFile(absPath, data, function(err) { | ||
if (err) { | ||
return reject(err); | ||
} | ||
resolve(); | ||
}); | ||
}); | ||
} | ||
/** | ||
@@ -112,0 +89,0 @@ * Generates a public key. |
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
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
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
2
0
24096
425