update
This commit is contained in:
21
package/node_modules/is-lambda/LICENSE
generated
vendored
Normal file
21
package/node_modules/is-lambda/LICENSE
generated
vendored
Normal file
@@ -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.
|
6
package/node_modules/is-lambda/index.js
generated
vendored
Normal file
6
package/node_modules/is-lambda/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = !!(
|
||||
(process.env.LAMBDA_TASK_ROOT && process.env.AWS_EXECUTION_ENV) ||
|
||||
false
|
||||
)
|
35
package/node_modules/is-lambda/package.json
generated
vendored
Normal file
35
package/node_modules/is-lambda/package.json
generated
vendored
Normal file
@@ -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
|
||||
]
|
||||
}
|
16
package/node_modules/is-lambda/test.js
generated
vendored
Normal file
16
package/node_modules/is-lambda/test.js
generated
vendored
Normal file
@@ -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)
|
Reference in New Issue
Block a user