@architect/asap
Advanced tools
Comparing version 5.0.3-RC.1 to 5.1.0
{ | ||
"name": "@architect/asap", | ||
"version": "5.0.3-RC.1", | ||
"version": "5.1.0", | ||
"description": "Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery", | ||
@@ -33,3 +33,3 @@ "main": "src/asap.js", | ||
"cross-env": "7.0.3", | ||
"eslint": "~8.27.0", | ||
"eslint": "~8.28.0", | ||
"mime-types": "~2.1.35", | ||
@@ -36,0 +36,0 @@ "mock-fs": "~5.2.0", |
@@ -0,6 +1,13 @@ | ||
let isNode18 = require('./_is-node-18') | ||
let { existsSync, readFileSync } = require('fs') | ||
let { join } = require('path') | ||
let { httpError } = require('../lib/error') | ||
let isNode18 = require('./_is-node-18') | ||
let s3 | ||
if (process.env.__TESTING__) { | ||
// eslint-disable-next-line | ||
let S3 = require('aws-sdk/clients/s3') | ||
s3 = new S3 | ||
} | ||
/** | ||
@@ -50,5 +57,7 @@ * Peek into a dir without a trailing slash to see if it's got an index.html file | ||
else { | ||
// eslint-disable-next-line | ||
let S3 = require('aws-sdk/clients/s3') | ||
let s3 = new S3 | ||
if (!process.env.__TESTING__) { | ||
// eslint-disable-next-line | ||
let S3 = require('aws-sdk/clients/s3') | ||
s3 = new S3 | ||
} | ||
return s3.getObject({ Bucket, Key }).promise() | ||
@@ -55,0 +64,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
31640
888
0
12