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 7.0.0-RC.4 to 7.0.0

12

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

@@ -37,6 +37,6 @@ "homepage": "https://github.com/architect/functions",

"devDependencies": {
"@architect/asap": "^6.0.1",
"@architect/eslint-config": "2.0.1",
"@architect/asap": "^6.0.3",
"@architect/eslint-config": "2.1.1",
"@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git",
"@architect/sandbox": "^5.7.2",
"@architect/sandbox": "^5.7.4",
"@aws-sdk/client-apigatewaymanagementapi": "^3.319.0",

@@ -53,3 +53,3 @@ "@aws-sdk/client-dynamodb": "^3.319.0",

"cross-env": "~7.0.3",
"eslint": "^8.44.0",
"eslint": "^8.47.0",
"nyc": "~15.1.0",

@@ -59,3 +59,3 @@ "proxyquire": "~2.1.3",

"tap-spec": "~5.0.0",
"tape": "^5.6.4",
"tape": "^5.6.6",
"tiny-json-http": "^7.5.1",

@@ -62,0 +62,0 @@ "tsd": "^0.28.1"

@@ -12,3 +12,3 @@ <picture>

Check out the full docs: [arc.codes](https://arc.codes)
Check out the full docs for [this library](https://arc.codes/docs/en/reference/runtime-helpers/node.js) and [Architect](https://arc.codes)

@@ -18,5 +18,9 @@

Within your Architect project directory, add `@architect/function` to its root `package.json`:
`npm i @architect/functions`
> You may also add `@architect/function` to individual Lambda `package.json` files, but we suggest making use of Architect's automated Lambda treeshaking. See the [Architect dependency management guide](https://staging.arc.codes/docs/en/guides/developer-experience/dependency-management#node.js) for more details.
## Usage

@@ -39,38 +43,39 @@

**`@events` methods**
- [`events.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.subscribe)
- [`events.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.publish)
**[`@events` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events)**
- [`events.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.subscribe())
- [`events.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.publish())
**`@http` methods**
**[`@http` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http)**
- [`http()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http)
- [`http.session()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http.session)
- [`http` middleware](https://arc.codes/docs/en/reference/runtime-helpers/node.js#middleware)
- [`http.session`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http.session)
**`@queues` methods**
- [`queues.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.subscribe)
- [`queues.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.publish)
**[`@queues` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues)**
- [`queues.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.subscribe())
- [`queues.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.publish())
**Service discovery**
- [`services()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.services)
- [`services()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.services())
**`@static` methods**
- [`static()`]([#static](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.static))
**[`@static`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.static())**
- [`static()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.static())
**`@tables` methods**
- [`tables()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.delete()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.get()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.put()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.query()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.scan()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.scanAll()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.update()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.reflect()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table.name`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table._db`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
- [`table._doc`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables)
**[`@tables` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables())**
- [`tables()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables())
- [`table.delete()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.get()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.put()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.query()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.scan()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.scanAll()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table.update()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)
- [`table._db`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)
- [`table._doc`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)
- [`table.name`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)
- [`table.reflect()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)
**`@ws` methods**
- [`ws.send()`](#https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.send)
- [`ws.close()`](#https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.close)
- [`ws.info()`](#https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.info)
- [`ws._api`](#https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.api)
**[`@ws` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws)**
- [`ws.send()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.send())
- [`ws.close()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.close())
- [`ws.info()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.info())
- [`ws._api`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws._api())

@@ -75,4 +75,5 @@ let cookie = require('cookie')

ARC_SESSION_TABLE_NAME, SESSION_TABLE_NAME,
ARC_SESSION_DOMAIN, SESSION_DOMAIN,
ARC_SESSION_SAME_SITE,
ARC_SESSION_TTL, SESSION_TTL,
ARC_SESSION_DOMAIN, SESSION_DOMAIN,
} = process.env

@@ -90,4 +91,3 @@

// read dynamo session table
// TODO / FIXME I think this no longer works?
// Read DynamoDB session table
let name = ARC_SESSION_TABLE_NAME || SESSION_TABLE_NAME

@@ -105,2 +105,3 @@ if (name) {

let maxAge = ARC_SESSION_TTL || SESSION_TTL || twentyFiveYears
let sameSite = ARC_SESSION_SAME_SITE || 'lax'
let options = {

@@ -112,3 +113,3 @@ maxAge,

path: '/',
sameSite: 'lax',
sameSite,
}

@@ -115,0 +116,0 @@ if (ARC_SESSION_DOMAIN || SESSION_DOMAIN) {

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