Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/asap

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/asap - npm Package Compare versions

Comparing version 5.0.3-RC.1 to 5.1.0

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc