@architect/functions
Advanced tools
Comparing version 5.3.3 to 5.3.4-RC.1
{ | ||
"name": "@architect/functions", | ||
"version": "5.3.3", | ||
"version": "5.3.4-RC.1", | ||
"description": "Cloud function signatures for HTTP handlers, pub/sub + scheduled, queued functions, table triggers, and more", | ||
@@ -37,6 +37,6 @@ "homepage": "https://github.com/architect/functions", | ||
"devDependencies": { | ||
"@architect/asap": "^5.1.0", | ||
"@architect/asap": "^5.1.1", | ||
"@architect/eslint-config": "2.0.1", | ||
"@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git", | ||
"@architect/sandbox": "^5.4.1", | ||
"@architect/sandbox": "^5.5.1", | ||
"@aws-sdk/client-apigatewaymanagementapi": "^3.213.0", | ||
@@ -48,13 +48,13 @@ "@aws-sdk/client-dynamodb": "^3.213.0", | ||
"@aws-sdk/lib-dynamodb": "^3.214.0", | ||
"@types/aws-lambda": "^8.10.109", | ||
"@types/node": "^18.11.13", | ||
"@types/aws-lambda": "^8.10.110", | ||
"@types/node": "^18.13.0", | ||
"aws-sdk": "2.1055.0", | ||
"cross-env": "~7.0.3", | ||
"eslint": "^8.29.0", | ||
"eslint": "^8.34.0", | ||
"mock-fs": "~5.2.0", | ||
"nyc": "~15.1.0", | ||
"proxyquire": "~2.1.3", | ||
"sinon": "~15.0.0", | ||
"sinon": "~15.0.1", | ||
"tap-spec": "~5.0.0", | ||
"tape": "~5.6.1", | ||
"tape": "~5.6.3", | ||
"tiny-json-http": "~7.4.2", | ||
@@ -61,0 +61,0 @@ "tsd": "^0.25.0" |
@@ -1,2 +0,2 @@ | ||
const isNode18 = require('../_node-version') | ||
let { isNode18 } = require('../lib') | ||
@@ -9,5 +9,5 @@ /** | ||
let { ARC_APP_NAME: app, ARC_ENV: env, ARC_SANDBOX, ARC_STACK_NAME: stack, AWS_REGION } = process.env | ||
let { ARC_APP_NAME: app, ARC_ENV: env, ARC_LOCAL, ARC_SANDBOX, ARC_STACK_NAME: stack, AWS_REGION } = process.env | ||
let local = env === 'testing' | ||
let local = env === 'testing' || ARC_LOCAL || ARC_SANDBOX | ||
@@ -14,0 +14,0 @@ if (!local && !app && !stack) { |
@@ -1,4 +0,3 @@ | ||
let isNode18 = require('../_node-version') | ||
let http = require('http') | ||
let getPorts = require('../_get-ports') | ||
let { getPorts, isNode18, useAWS } = require('../lib') | ||
let ledger = { events: {}, queues: {} } | ||
@@ -31,5 +30,4 @@ let port | ||
} | ||
let { ARC_ENV, ARC_LOCAL } = process.env | ||
let local = ARC_ENV === 'testing' || ARC_LOCAL | ||
let local = !useAWS() | ||
if (local && port) { | ||
@@ -36,0 +34,0 @@ _publishSandbox(type, params, callback) |
/** | ||
* no magic url helper | ||
* No magic url helper for legacy REST APIs | ||
* Given path `/`, it returns: | ||
* | ||
* given a path / returns | ||
* | ||
* - / if ARC_ENV === testing | ||
* - /staging if ARC_ENV === staging | ||
* - /production if ARC_ENV === production | ||
* - `/` if ARC_ENV === testing | ||
* - `/staging` if ARC_ENV === staging | ||
* - `/production` if ARC_ENV === production | ||
*/ | ||
@@ -10,0 +9,0 @@ module.exports = function url (url) { |
@@ -1,2 +0,2 @@ | ||
let sandboxVersionAtLeast = require('./_sandbox-version') | ||
let { sandboxVersionAtLeast } = require('./lib') | ||
@@ -3,0 +3,0 @@ /** |
let https = require('https') | ||
let isNode18 = require('../_node-version') | ||
let getPorts = require('../_get-ports') | ||
let { getPorts, isNode18, useAWS } = require('../lib') | ||
@@ -15,3 +14,3 @@ /** | ||
let { ARC_ENV, ARC_LOCAL, AWS_REGION } = process.env | ||
let { AWS_REGION } = process.env | ||
@@ -39,4 +38,3 @@ if (db && type === 'db') { | ||
let local = ARC_ENV === 'testing' || ARC_LOCAL | ||
if (!local) { | ||
if (useAWS()) { | ||
let config = { | ||
@@ -43,0 +41,0 @@ httpOptions: { |
@@ -1,3 +0,2 @@ | ||
const isNode18 = require('../_node-version') | ||
let { isNode18, useAWS } = require('../lib') | ||
let _api, _send, _close, _info | ||
@@ -8,9 +7,3 @@ | ||
let { | ||
ARC_ENV, | ||
ARC_LOCAL, | ||
ARC_WSS_URL, | ||
AWS_REGION, | ||
ARC_SANDBOX, | ||
} = process.env | ||
let { ARC_WSS_URL, AWS_REGION, ARC_SANDBOX } = process.env | ||
@@ -29,4 +22,9 @@ if (isNode18) { | ||
let local = ARC_ENV === 'testing' || ARC_LOCAL | ||
if (local) { | ||
if (useAWS()) { | ||
_api = new ApiGatewayManagementApi({ | ||
apiVersion: '2018-11-29', | ||
endpoint: `${ARC_WSS_URL.replace(/^ws/, 'http')}`, | ||
}) | ||
} | ||
else { | ||
let { ports } = JSON.parse(ARC_SANDBOX) | ||
@@ -42,9 +40,4 @@ let port = ports._arc | ||
} | ||
else { | ||
_api = new ApiGatewayManagementApi({ | ||
apiVersion: '2018-11-29', | ||
endpoint: `${ARC_WSS_URL.replace(/^ws/, 'http')}`, | ||
}) | ||
} | ||
/** idk.. **/ | ||
@@ -51,0 +44,0 @@ _send = (params, callback) => { |
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
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
72108
2090
1