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

@architect/functions

Package Overview
Dependencies
Maintainers
6
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/functions - npm Package Compare versions

Comparing version 8.0.0-RC.1 to 8.0.0-RC.3

23

package.json
{
"name": "@architect/functions",
"version": "8.0.0-RC.1",
"version": "8.0.0-RC.3",
"description": "Runtime utility library for Functional Web Apps (FWAs) built with Architect (https://arc.codes)",

@@ -15,4 +15,4 @@ "homepage": "https://github.com/architect/functions",

"lint": "eslint --fix .",
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-spec",
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-spec",
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-arc",
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-arc",
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",

@@ -29,5 +29,5 @@ "test": "npm run lint && npm run test:integration && npm run coverage",

"dependencies": {
"@aws-lite/apigatewaymanagementapi": "^0.0.6",
"@aws-lite/client": "^0.13.1",
"@aws-lite/dynamodb": "^0.3.1",
"@aws-lite/apigatewaymanagementapi": "^0.0.7",
"@aws-lite/client": "^0.15.0",
"@aws-lite/dynamodb": "^0.3.3",
"@aws-lite/sns": "^0.0.4",

@@ -45,7 +45,7 @@ "@aws-lite/sqs": "^0.2.0",

"devDependencies": {
"@architect/asap": "^6.0.4",
"@architect/asap": "^7.0.0-RC.1",
"@architect/eslint-config": "2.1.1",
"@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git",
"@architect/sandbox": "^5.9.4",
"@types/aws-lambda": "^8.10.130",
"@architect/sandbox": "^6.0.0-RC.1",
"@types/aws-lambda": "^8.10.133",
"@types/node": "18",

@@ -58,6 +58,5 @@ "cross-env": "~7.0.3",

"tap-arc": "^1.2.2",
"tap-spec": "^5.0.0",
"tape": "^5.7.2",
"tape": "^5.7.4",
"tiny-json-http": "^7.5.1",
"tsd": "^0.30.3"
"tsd": "^0.30.4"
},

@@ -64,0 +63,0 @@ "files": [

@@ -33,6 +33,3 @@ let { getAwsClient, useAWS } = require('../lib')

config = {
endpointPrefix: '/_arc/ssm',
host: `localhost`,
port,
protocol: 'http',
endpoint: `http://localhost:${port}/_arc/ssm`,
plugins,

@@ -39,0 +36,0 @@ }

@@ -14,3 +14,12 @@ let getPorts = require('./_get-ports')

.then(client => callback(null, client))
.catch(callback)
.catch(err => {
if (err.message.includes('AWS credentials') && !useAWS()) {
let accessKeyId = 'arc_dummy_access_key'
let secretAccessKey = 'arc_dummy_secret_key'
awsLite({ ...params, accessKeyId, secretAccessKey })
.then(client => callback(null, client))
.catch(callback)
}
else callback(err)
})
}

@@ -22,3 +31,3 @@

if (ARC_ENV === 'testing') return false
// Local, but using AWS resources
// Local, but using !testing environments
if (nonLocalEnvs.includes(ARC_ENV) && ARC_SANDBOX && !ARC_LOCAL) return false

@@ -25,0 +34,0 @@ // Assumed to be AWS

@@ -31,5 +31,3 @@ let { getAwsClient, getPorts, useAWS } = require('../lib')

let config = {
host: `localhost`,
port,
protocol: 'http',
endpoint: `http://localhost:${port}`,
region,

@@ -36,0 +34,0 @@ plugins,

@@ -15,3 +15,5 @@ let { isNode18, useAWS } = require('../lib')

if (isNode18) {
// eslint-disable-next-line
let dynamo = require('@aws-sdk/client-dynamodb')
// eslint-disable-next-line
let docclient = require('@aws-sdk/lib-dynamodb')

@@ -22,2 +24,3 @@ DB = dynamo.DynamoDB

else {
// eslint-disable-next-line
let dynamo = require('aws-sdk/clients/dynamodb')

@@ -55,2 +58,3 @@ DB = dynamo

let http = require('http')
// eslint-disable-next-line
let { NodeHttpHandler } = require('@smithy/node-http-handler')

@@ -57,0 +61,0 @@ config.requestHandler = new NodeHttpHandler({

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