New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-systemic

Package Overview
Dependencies
Maintainers
7
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-systemic - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

generators/app/templates/lib/components/routes/admin-routes.js

@@ -0,1 +1,2 @@

const helmet = require('helmet');
const bodyParser = require('body-parser');

@@ -8,2 +9,3 @@ const validator = require('swagger-endpoint-validator');

app.use(bodyParser.json());
app.use(helmet());

@@ -10,0 +12,0 @@ await validator.init(app, config.swaggerValidator);

7

generators/app/templates/root/_package.json

@@ -24,4 +24,3 @@ {

"precommit": "npm run lint",
"prepush": "npm run test",
"postinstall": "node_modules/.bin/eslint . --fix && npm i --package-lock-only"
"prepush": "npm run test"
},

@@ -42,3 +41,2 @@ "husky": {

"husky": "^3.1.0",
"make-manifest": "^1.0.1",
"mocha": "^6.2.2",

@@ -60,4 +58,5 @@ "mocha-junit-reporter": "^1.23.1",

<%_ } -%>
"helmet": "^4.1.1",
"hogan.js": "^3.0.2",
"make-manifest": "^1.0.1",
"make-manifest": "^1.0.4",
"optimist": "^0.6.1",

@@ -64,0 +63,0 @@ "optional": "^0.1.4",

@@ -71,3 +71,3 @@ # <%= name %>

### __routes__
The component in charge of specifiyng the routes to be exposed by the express component.
The component in charge of specifiyng the routes to be exposed by the express component. Note that the express endpoints are secured thanks to [helmet](https://helmetjs.github.io/).

@@ -74,0 +74,0 @@ ### __routes.admin__

@@ -42,2 +42,7 @@ const expect = require('expect.js');

expect(response.headers['content-type']).to.equal('application/json; charset=utf-8');
expect(response.headers['x-frame-options']).to.equal('SAMEORIGIN');
expect(response.headers['x-download-options']).to.equal('noopen');
expect(response.headers['x-dns-prefetch-control']).to.equal('off');
expect(response.headers['x-content-type-options']).to.equal('nosniff');
expect(response.headers['strict-transport-security']).to.equal('max-age=15552000; includeSubDomains');
}));

@@ -44,0 +49,0 @@

{
"name": "generator-systemic",
"version": "2.3.0",
"version": "2.3.1",
"description": "A generator for a systemic microservice",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/guidesmiths/generator-systemic",

@@ -62,5 +62,13 @@ # GENERATOR-SYSTEMIC

# CONTRIBUTING
Consider following these guidelines if you want to contribute:
- Feature: [https://github.com/guidesmiths/generator-systemic/issues/new](https://github.com/guidesmiths/generator-systemic/issues/new?assignees=&labels=&template=feature_request.md&title=My%20Awesome%20Feature)
- Bug: [https://github.com/guidesmiths/generator-systemic/issues/new](https://github.com/guidesmiths/generator-systemic/issues/new?assignees=&labels=&template=bug_report.md&title=My%20Awesome%20Bug)
- Pull Request: [https://github.com/guidesmiths/generator-systemic/blob/master/.github/pull_request_template.md](https://github.com/guidesmiths/generator-systemic/blob/master/.github/pull_request_template.md)
# LICENSE
ISC © [Guidesmiths Ltd]()
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