@spaship/sync-service
Advanced tools
Comparing version 0.0.11 to 0.0.13
@@ -5,2 +5,28 @@ # Changelog | ||
### [0.0.13](https://github.com/spaship/sync-service/compare/v0.0.12...v0.0.13) (2019-09-25) | ||
### Bug Fixes | ||
* **deps:** correct two misplaced dependencies ([918c7db](https://github.com/spaship/sync-service/commit/918c7db)) | ||
### Features | ||
* **autosync:** provide startup options for autosync ([cc98051](https://github.com/spaship/sync-service/commit/cc98051)) | ||
* print autosync configuration at startup ([4edecac](https://github.com/spaship/sync-service/commit/4edecac)) | ||
### [0.0.12](https://github.com/spaship/sync-service/compare/v0.0.11...v0.0.12) (2019-09-25) | ||
Note, the project is renamed in this release, from "spandx-sync-service" to "@spaship/sync-service". The rename covers the github repo, NPM package, and all internal logging and code. | ||
### Features | ||
* display version number when starting the service ([91a21b5](https://github.com/spaship/sync-service/commit/d6e8faebbde4fa9b0ca33318ebb03acd782611da)) | ||
### Bug Fixes | ||
* **list:** only list directories in the webroot ([#17](https://github.com/spaship/sync-service/issues/17)) ([07edf29](https://github.com/spaship/sync-service/commit/07edf29)) | ||
### [0.0.11](https://github.com/spaship/sync-service/compare/v0.0.10...v0.0.11) (2019-09-24) | ||
@@ -7,0 +33,0 @@ |
@@ -10,3 +10,10 @@ const path = require("path"); | ||
const validOptions = ["config_file", "upload_dir", "webroot", "host", "port"]; | ||
const validOptions = [ | ||
"config_file", | ||
"upload_dir", | ||
"webroot", | ||
"host", | ||
"port", | ||
"autosync" | ||
]; | ||
const filepathOptions = ["config_file", "upload_dir", "webroot"]; // config options that represent filepaths | ||
@@ -13,0 +20,0 @@ |
13
index.js
@@ -7,4 +7,4 @@ #!/usr/bin/env node | ||
const routes = require("./routes/routes"); | ||
const Autosync = require("./background/autosync"); | ||
const package = require("./package.json"); | ||
const Autosync = require("./lib/background/autosync"); | ||
const npmPackage = require("./package.json"); | ||
@@ -26,3 +26,3 @@ const app = express(); | ||
console.log( | ||
`Starting SPAship version ${package.version} with configuration:\n` | ||
`Starting SPAship version ${npmPackage.version} with configuration:\n` | ||
); | ||
@@ -33,2 +33,7 @@ console.log(config.toString()); | ||
autosync.start(); | ||
if (config.get("autosync:enabled")) { | ||
autosync.start(); | ||
if (config.get("autosync:onstartup")) { | ||
autosync.forceSyncAll(); | ||
} | ||
} |
{ | ||
"name": "@spaship/sync-service", | ||
"version": "0.0.11", | ||
"version": "0.0.13", | ||
"description": "The file synchronization service for the SPAship platform.", | ||
@@ -32,2 +32,3 @@ "homepage": "https://github.com/spaship/sync-service", | ||
"axios": "^0.19.0", | ||
"cors": "^2.8.5", | ||
"decompress": "^4.2.0", | ||
@@ -38,2 +39,3 @@ "decompress-bzip2": "^4.0.0", | ||
"express": "^4.17.1", | ||
"lodash": "^4.17.15", | ||
"ms": "^2.1.2", | ||
@@ -45,3 +47,2 @@ "multer": "^1.4.2", | ||
"devDependencies": { | ||
"cors": "2.8.5", | ||
"eslint": "6.4.0", | ||
@@ -48,0 +49,0 @@ "eslint-config-prettier": "6.3.0", |
@@ -1,8 +0,10 @@ | ||
const deploy = require("./deploy/deploy"); | ||
const list = require("./list/list"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const forceSyncAll = require("./forceSyncAll/forceSyncAll"); | ||
const corsMiddleware = require("cors"); | ||
// include our middlewares | ||
const forceSyncAll = require("./forceSyncAll/forceSyncAllMiddleware"); | ||
const deploy = require("./deploy/deployMiddleware"); | ||
const list = require("./list/listMiddleware"); | ||
const cors = corsMiddleware({ | ||
@@ -9,0 +11,0 @@ origin: true, |
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
31932
6
18
382
12
1
+ Addedcors@^2.8.5
+ Addedlodash@^4.17.15
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcors@2.8.5(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedcall-bind-apply-helpers@1.0.2(transitive)