Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agreed/server

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agreed/server - npm Package Compare versions

Comparing version 0.1.0 to 0.2.2

11

bin/agreed-server.js

@@ -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) => {

});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc