@architect/asap
Advanced tools
Comparing version 7.0.8 to 7.0.9
{ | ||
"name": "@architect/asap", | ||
"version": "7.0.8", | ||
"version": "7.0.9", | ||
"description": "Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery", | ||
@@ -9,2 +9,3 @@ "main": "src/asap.js", | ||
"rc": "npm version prerelease --preid RC", | ||
"test:nolint": "npm run coverage", | ||
"test": "npm run lint && npm run coverage", | ||
@@ -29,12 +30,12 @@ "test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-arc", | ||
"dependencies": { | ||
"@aws-lite/client": "~0.20.0", | ||
"@aws-lite/s3": "^0.1.20" | ||
"@aws-lite/client": "~0.21.1", | ||
"@aws-lite/s3": "^0.1.21" | ||
}, | ||
"devDependencies": { | ||
"@architect/eslint-config": "~2.1.2", | ||
"@architect/eslint-config": "~3.0.0", | ||
"@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git", | ||
"cross-env": "7.0.3", | ||
"eslint": "~8.57.0", | ||
"eslint": "~9.1.1", | ||
"mime-types": "~2.1.35", | ||
"mock-tmp": "~0.0.3", | ||
"mock-tmp": "~0.0.4", | ||
"nyc": "~15.1.0", | ||
@@ -41,0 +42,0 @@ "proxyquire": "~2.1.3", |
@@ -15,3 +15,3 @@ let { | ||
br: compress ? brotliCompressSync : brotliDecompressSync, | ||
deflate: compress ? deflateSync : inflateSync | ||
deflate: compress ? deflateSync : inflateSync, | ||
} | ||
@@ -25,3 +25,3 @@ if (!exec[type]) throw ReferenceError('Invalid compression type specified, must be gzip, br, or deflate') | ||
compress: compressor.bind({}, 'compress'), | ||
decompress: compressor.bind({}, 'decompress') | ||
decompress: compressor.bind({}, 'decompress'), | ||
} |
@@ -6,3 +6,3 @@ /** | ||
httpError, | ||
proxyConfig: proxyConfig() | ||
proxyConfig: proxyConfig(), | ||
} | ||
@@ -31,3 +31,3 @@ | ||
'content-type': 'text/html; charset=utf8;', | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0' | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
}, | ||
@@ -101,4 +101,4 @@ body: ` | ||
</html> | ||
` | ||
`, | ||
} | ||
} |
@@ -5,7 +5,5 @@ let _s3 | ||
if (_s3) return _s3 | ||
// eslint-disable-next-line | ||
let awsLite = require('@aws-lite/client') | ||
let { s3 } = await awsLite({ | ||
region: process.env.AWS_REGION || 'us-west-2', | ||
// eslint-disable-next-line | ||
plugins: [ import('@aws-lite/s3') ], | ||
@@ -12,0 +10,0 @@ }) |
@@ -44,3 +44,3 @@ let { existsSync, readdirSync, readFileSync, statSync } = require('fs') | ||
else return { | ||
Body: readFileSync(file) | ||
Body: readFileSync(file), | ||
} | ||
@@ -90,6 +90,6 @@ } | ||
'content-type': 'text/html; charset=utf8;', | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0' | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
}, | ||
statusCode: 404, | ||
body | ||
body, | ||
} | ||
@@ -96,0 +96,0 @@ } |
@@ -60,4 +60,4 @@ let { existsSync, readFileSync } = require('fs') | ||
location, | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0' | ||
} | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
}, | ||
} | ||
@@ -91,3 +91,3 @@ } | ||
statusCode: 304, | ||
headers | ||
headers, | ||
} | ||
@@ -94,0 +94,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
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
31799
895
+ Added@aws-lite/client@0.21.10(transitive)
- Removed@aws-lite/client@0.20.0(transitive)
- Removedini@4.1.3(transitive)
Updated@aws-lite/client@~0.21.1
Updated@aws-lite/s3@^0.1.21