Skip to content

Commit

Permalink
revert: bring back attribution comments ❤️ (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
naorpeled committed Jan 13, 2023
1 parent 21d17af commit e78a26b
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 3 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

const REQUEST = require('./lib/request');
const RESPONSE = require('./lib/response');
Expand Down
6 changes: 6 additions & 0 deletions lib/compression.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

const zlib = require('zlib');

const defaultEnabledEcodings = ['gzip', 'deflate'];
Expand Down
10 changes: 9 additions & 1 deletion lib/errors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
'use strict';
// Custom error types
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

/*
Custom error types
*/

class RouteError extends Error {
constructor(message, path) {
Expand Down
6 changes: 6 additions & 0 deletions lib/logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

// IDEA: add unique function identifier
// IDEA: response length
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference
Expand Down
10 changes: 9 additions & 1 deletion lib/mimemap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
'use strict';
// Minimal mime map for common file types
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

/*
Minimal mime map for common file types
*/

module.exports = {
// images
Expand Down
6 changes: 6 additions & 0 deletions lib/prettyPrint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

module.exports = (routes) => {
let out = '';

Expand Down
6 changes: 6 additions & 0 deletions lib/request.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

const QS = require('querystring'); // Require the querystring library
const UTILS = require('./utils'); // Require utils library
const LOGGER = require('./logger'); // Require logger library
Expand Down
6 changes: 6 additions & 0 deletions lib/response.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

const UTILS = require('./utils.js');

const fs = require('fs'); // Require Node.js file system
Expand Down
6 changes: 6 additions & 0 deletions lib/s3-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

// Require AWS SDK
const AWS = require('aws-sdk'); // AWS SDK

Expand Down
10 changes: 9 additions & 1 deletion lib/statusCodes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
'use strict';
// HTTP status code map (IANA Status Code Registry)
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

/*
HTTP status code map (IANA Status Code Registry)
*/

module.exports = {
// 1xx: Informational
Expand Down
6 changes: 6 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
/**
* Lightweight web framework for your serverless applications
* @author Jeremy Daly <jeremy@jeremydaly.com>
* @license MIT
*/

const QS = require('querystring'); // Require the querystring library
const crypto = require('crypto'); // Require Node.js crypto library
const { FileError } = require('./errors'); // Require custom errors
Expand Down

0 comments on commit e78a26b

Please sign in to comment.