Skip to content

Commit e78a26b

Browse files
authored
revert: bring back attribution comments ❤️ (#226)
1 parent 21d17af commit e78a26b

11 files changed

+74
-3
lines changed

Diff for: index.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
27

38
const REQUEST = require('./lib/request');
49
const RESPONSE = require('./lib/response');

Diff for: lib/compression.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
const zlib = require('zlib');
39

410
const defaultEnabledEcodings = ['gzip', 'deflate'];

Diff for: lib/errors.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
'use strict';
2-
// Custom error types
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
8+
/*
9+
Custom error types
10+
*/
311

412
class RouteError extends Error {
513
constructor(message, path) {

Diff for: lib/logger.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
// IDEA: add unique function identifier
39
// IDEA: response length
410
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference

Diff for: lib/mimemap.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
'use strict';
2-
// Minimal mime map for common file types
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
8+
/*
9+
Minimal mime map for common file types
10+
*/
311

412
module.exports = {
513
// images

Diff for: lib/prettyPrint.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
module.exports = (routes) => {
39
let out = '';
410

Diff for: lib/request.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
const QS = require('querystring'); // Require the querystring library
39
const UTILS = require('./utils'); // Require utils library
410
const LOGGER = require('./logger'); // Require logger library

Diff for: lib/response.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
const UTILS = require('./utils.js');
39

410
const fs = require('fs'); // Require Node.js file system

Diff for: lib/s3-service.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
// Require AWS SDK
39
const AWS = require('aws-sdk'); // AWS SDK
410

Diff for: lib/statusCodes.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
'use strict';
2-
// HTTP status code map (IANA Status Code Registry)
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
8+
/*
9+
HTTP status code map (IANA Status Code Registry)
10+
*/
311

412
module.exports = {
513
// 1xx: Informational

Diff for: lib/utils.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
'use strict';
2+
/**
3+
* Lightweight web framework for your serverless applications
4+
* @author Jeremy Daly <[email protected]>
5+
* @license MIT
6+
*/
7+
28
const QS = require('querystring'); // Require the querystring library
39
const crypto = require('crypto'); // Require Node.js crypto library
410
const { FileError } = require('./errors'); // Require custom errors

0 commit comments

Comments
 (0)