@agreed/server
Advanced tools
Comparing version 0.1.0 to 0.2.2
@@ -15,10 +15,8 @@ #!/usr/bin/env node | ||
], | ||
boolean: [ | ||
'help', | ||
'version', | ||
'logging', | ||
'strict' | ||
], | ||
boolean: ['help', 'version', 'logging', 'strict', 'hot'], | ||
alias: { | ||
l: 'logging' | ||
}, | ||
default: { | ||
hot: true | ||
} | ||
@@ -48,2 +46,3 @@ }); | ||
--strict Run strict mode. | ||
--hot Hot Replacement agree files. Default true | ||
@@ -50,0 +49,0 @@ Examples: |
@@ -28,3 +28,3 @@ 'use strict'; | ||
app.use(bodyParser.urlencoded({ extended: true })); | ||
if (stat) { | ||
@@ -76,5 +76,5 @@ if (staticPrefixPath) { | ||
return { | ||
return { | ||
// low level | ||
app, | ||
app, | ||
// high level | ||
@@ -85,2 +85,1 @@ createServer, | ||
}; | ||
{ | ||
"name": "@agreed/server", | ||
"version": "0.1.0", | ||
"version": "0.2.2", | ||
"description": "agreed server", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@agreed/core": "^0.1.0", | ||
"@agreed/core": "^0.2.2", | ||
"body-parser": "^1.18.3", | ||
@@ -43,3 +43,3 @@ "express": "^4.16.4", | ||
}, | ||
"gitHead": "fa54d4ff903c55d32ec5ff29ac8a5883d11a14d3" | ||
"gitHead": "9c99999509aa808b756aa8005d04f9e316d49780" | ||
} |
@@ -24,2 +24,8 @@ # Agreed Server | ||
- if you want to boot agreed server as disable hot replacement. | ||
``` | ||
$ agreed-server --path ./test/agreed.json --port 10101 --hot false | ||
``` | ||
Usage as programming | ||
@@ -26,0 +32,0 @@ |
@@ -12,2 +12,3 @@ 'use strict'; | ||
port: '0', | ||
hot: false | ||
}); | ||
@@ -24,3 +25,3 @@ | ||
headers: { | ||
'Content-Type': 'application/json', | ||
'Content-Type': 'application/json' | ||
} | ||
@@ -43,3 +44,4 @@ }; | ||
port: '0', | ||
callNextWhenNotFound: true | ||
callNextWhenNotFound: true, | ||
hot: true | ||
}); | ||
@@ -58,3 +60,3 @@ | ||
path: '/foobarbaz', | ||
port: port, | ||
port: port | ||
}; | ||
@@ -69,2 +71,1 @@ http.get(options, (res) => { | ||
}); | ||
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
24393
604
146
+ Added@agreed/core@0.2.2(transitive)
- Removed@agreed/core@0.1.0(transitive)
Updated@agreed/core@^0.2.2