Comparing version 4.0.0-8 to 4.0.0
10
docs.js
@@ -10,4 +10,6 @@ const { execSync } = require('child_process') | ||
const commandDir = './src/commands' | ||
const mainCommands = readdirSync(commandDir) | ||
const subCommands = mainCommands | ||
const allFiles = readdirSync(commandDir) | ||
const mainCommands = allFiles | ||
.filter(isFile) | ||
const subCommands = allFiles | ||
.filter(isDir) | ||
@@ -30,2 +32,6 @@ .map(findSubCommands) | ||
function isFile (path) { | ||
return statSync(`${commandDir}/${path}`).isFile() | ||
} | ||
function findSubCommands (path) { | ||
@@ -32,0 +38,0 @@ return readdirSync(`${commandDir}/${path}`) |
27
DOCS.md
@@ -49,16 +49,2 @@ ### `shep` | ||
``` | ||
#### `shep config` | ||
``` | ||
shep config | ||
Commands: | ||
list List environment variables on AWS for an alias | ||
remove <vars...> Remove environment variables for alias on AWS | ||
set <vars...> Set environment variables for alias on AWS | ||
sync Syncs environments across all functions on a shep project | ||
Options: | ||
--version Show version number [boolean] | ||
--help Show help [boolean] | ||
``` | ||
#### `shep config list` | ||
@@ -163,15 +149,2 @@ ``` | ||
``` | ||
#### `shep generate` | ||
``` | ||
shep generate | ||
Commands: | ||
endpoint [path] Generate a new API endpoint | ||
function [name] Generate a new function | ||
webpack Generates a webpack.config.js with default template | ||
Options: | ||
--version Show version number [boolean] | ||
--help Show help [boolean] | ||
``` | ||
#### `shep generate endpoint` | ||
@@ -178,0 +151,0 @@ ``` |
@@ -50,3 +50,3 @@ 'use strict'; | ||
var timer = setTimeout(function () { | ||
if (!callbackCalled && ctx.getRemainingTimeInMillis() === 0) { | ||
if (!callbackCalled) { | ||
throw new Error(`Lambda function ${functionName} timed out`); | ||
@@ -53,0 +53,0 @@ } |
{ | ||
"name": "shep", | ||
"version": "4.0.0-8", | ||
"version": "4.0.0", | ||
"description": "A framework for building JavaScript APIs with AWS API Gateway and Lambda", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3580
1
172622
1