Comparing version 3.0.2 to 3.0.3
@@ -31,3 +31,3 @@ /** | ||
if (uploadPath) { | ||
fs.readJsonFile(uploadPath, function (err, actualConfig) { | ||
fs.readJson(uploadPath, function (err, actualConfig) { | ||
if (err) { | ||
@@ -34,0 +34,0 @@ if (err instanceof SyntaxError) { |
@@ -166,3 +166,3 @@ /** | ||
function (dirName, callback) { | ||
fs.readJsonFile(self.defaultFileName, function (err, defaultConf) { | ||
fs.readJson(self.defaultFileName, function (err, defaultConf) { | ||
callback(err, defaultConf); | ||
@@ -175,3 +175,3 @@ }); | ||
if( diff === undefined) { | ||
fs.delete(self.localFileName, callback); | ||
fs.remove(self.localFileName, callback); | ||
} else { | ||
@@ -178,0 +178,0 @@ fs.writeFile(self.localFileName, JSON.stringify(diff, null, ' '), callback); |
{ | ||
"name": "e2e-conf", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"main": "conf.js", | ||
"dependencies": { | ||
"nconf": "^0.7.1", | ||
"fs-extra": "^0.16.3", | ||
"async": "^0.9.0", | ||
"nconf": "^0.10.0", | ||
"fs-extra": "^8.1.0", | ||
"async": "^3.1.0", | ||
"exit": "^0.1.2", | ||
@@ -13,3 +13,3 @@ "argparse": "^1.0.10" | ||
"devDependencies": { | ||
"nodeunit": "^0.9.0" | ||
"nodeunit": "^0.11.3" | ||
}, | ||
@@ -16,0 +16,0 @@ "author": { |
@@ -0,0 +0,0 @@ # e2e-conf - Easy Configuration for E2E Bridge Node.js Services |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ /** |
{ | ||
"hello": "changed" | ||
} |
no JSON |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -24,3 +24,3 @@ /** | ||
this.conf.cleanUp(); | ||
fs.deleteSync(this.basePath); | ||
fs.removeSync(this.basePath); | ||
@@ -27,0 +27,0 @@ callback(); |
@@ -0,0 +0,0 @@ /** |
@@ -24,3 +24,3 @@ /** | ||
this.conf.cleanUp(); | ||
fs.deleteSync(this.basePath); | ||
fs.removeSync(this.basePath); | ||
@@ -44,3 +44,3 @@ callback(); | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -88,3 +88,3 @@ hello: 'changed' | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -91,0 +91,0 @@ "hello": "changed", |
@@ -24,3 +24,3 @@ /** | ||
this.conf.cleanUp(); | ||
fs.deleteSync(this.basePath); | ||
fs.removeSync(this.basePath); | ||
@@ -73,3 +73,3 @@ callback(); | ||
conf.init(self.basePath); | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -131,3 +131,3 @@ hello: 'changed' | ||
this.conf.cleanUp(); | ||
fs.deleteSync(this.basePath); | ||
fs.removeSync(this.basePath); | ||
@@ -154,3 +154,3 @@ callback(); | ||
conf.init(self.basePath); | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -182,3 +182,3 @@ connection: {user: 'changed', passwd: 'changed'} | ||
conf.init(self.basePath); | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -213,3 +213,3 @@ connection: {user: 'local', passwd: 'local'}, | ||
conf.init(self.basePath); | ||
test.deepEqual(fs.readJsonFileSync(conf.localFile()), | ||
test.deepEqual(fs.readJsonSync(conf.localFile()), | ||
{ | ||
@@ -216,0 +216,0 @@ connection: {user: 'local', passwd: 'local'}, |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
32303
+ Addedansi-regex@2.1.1(transitive)
+ Addedasync@1.5.23.2.6(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcliui@3.2.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addednconf@0.10.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedsecure-keys@1.0.0(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedwrap-ansi@2.1.0(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.32.0(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedasync@0.9.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedcliui@2.1.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs-extra@0.16.5(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlongest@1.0.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednatives@1.1.6(transitive)
- Removednconf@0.7.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedright-align@0.1.3(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyargs@3.15.0(transitive)
Updatedasync@^3.1.0
Updatedfs-extra@^8.1.0
Updatednconf@^0.10.0