diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/is-lambda')
7 files changed, 114 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/.npmignore b/sandbox/testAppNevena/Front/node_modules/is-lambda/.npmignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/.npmignore @@ -0,0 +1 @@ +node_modules diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/.travis.yml b/sandbox/testAppNevena/Front/node_modules/is-lambda/.travis.yml new file mode 100644 index 00000000..03dcca57 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/.travis.yml @@ -0,0 +1,8 @@ +language: node_js +node_js: +- '7' +- '6' +- '5' +- '4' +- '0.12' +- '0.10' diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/LICENSE b/sandbox/testAppNevena/Front/node_modules/is-lambda/LICENSE new file mode 100644 index 00000000..4a59c941 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016-2017 Thomas Watson Steen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/README.md b/sandbox/testAppNevena/Front/node_modules/is-lambda/README.md new file mode 100644 index 00000000..31a8f566 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/README.md @@ -0,0 +1,27 @@ +# is-lambda + +Returns `true` if the current environment is an [AWS +Lambda](https://aws.amazon.com/lambda/) server. + +[](https://travis-ci.org/watson/is-lambda) +[](https://github.com/feross/standard) + +## Installation + +``` +npm install is-lambda +``` + +## Usage + +```js +var isLambda = require('is-lambda') + +if (isLambda) { + console.log('The code is running on a AWS Lambda') +} +``` + +## License + +MIT diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/index.js b/sandbox/testAppNevena/Front/node_modules/is-lambda/index.js new file mode 100644 index 00000000..b245ab1c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/index.js @@ -0,0 +1,6 @@ +'use strict' + +module.exports = !!( + (process.env.LAMBDA_TASK_ROOT && process.env.AWS_EXECUTION_ENV) || + false +) diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/package.json b/sandbox/testAppNevena/Front/node_modules/is-lambda/package.json new file mode 100644 index 00000000..d8550898 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/package.json @@ -0,0 +1,35 @@ +{ + "name": "is-lambda", + "version": "1.0.1", + "description": "Detect if your code is running on an AWS Lambda server", + "main": "index.js", + "dependencies": {}, + "devDependencies": { + "clear-require": "^1.0.1", + "standard": "^10.0.2" + }, + "scripts": { + "test": "standard && node test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/watson/is-lambda.git" + }, + "keywords": [ + "aws", + "hosting", + "hosted", + "lambda", + "detect" + ], + "author": "Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)", + "license": "MIT", + "bugs": { + "url": "https://github.com/watson/is-lambda/issues" + }, + "homepage": "https://github.com/watson/is-lambda", + "coordinates": [ + 37.3859955, + -122.0838831 + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/is-lambda/test.js b/sandbox/testAppNevena/Front/node_modules/is-lambda/test.js new file mode 100644 index 00000000..e8e73257 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/is-lambda/test.js @@ -0,0 +1,16 @@ +'use strict' + +var assert = require('assert') +var clearRequire = require('clear-require') + +process.env.AWS_EXECUTION_ENV = 'AWS_Lambda_nodejs6.10' +process.env.LAMBDA_TASK_ROOT = '/var/task' + +var isCI = require('./') +assert(isCI) + +delete process.env.AWS_EXECUTION_ENV + +clearRequire('./') +isCI = require('./') +assert(!isCI) |