@enhance/arc-plugin-enhance
Advanced tools
Comparing version 2.0.3 to 2.1.0
{ | ||
"name": "@enhance/arc-plugin-enhance", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"main": "src/plugins/beginner.js", | ||
@@ -27,2 +27,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@architect/asap": "^5.0.1", | ||
"@architect/functions": "^5.2.2", | ||
@@ -29,0 +30,0 @@ "@architect/plugin-bundles": "^3.2.0", |
@@ -22,7 +22,7 @@ let path = require('path') | ||
set: { | ||
/** frontend logic will *only* be shared w ANY and GET handlers */ | ||
views () { | ||
views({ inventory }) { | ||
const cwd = inventory.inv._project.cwd | ||
return { | ||
src: 'app' | ||
src: path.join(cwd, 'app') | ||
} | ||
@@ -32,5 +32,6 @@ }, | ||
/** we want to share models business logic across all lambdas */ | ||
shared () { | ||
shared ({ inventory }) { | ||
const cwd = inventory.inv._project.cwd | ||
return { | ||
src: 'models' | ||
src: path.join(cwd, 'models') | ||
} | ||
@@ -43,8 +44,10 @@ }, | ||
* - userland can still add routes to override this! | ||
* - makes single responsiblity functions an opt-in rather than up front cost | ||
* - makes single responsibility functions an opt-in rather than up front cost | ||
*/ | ||
http () { | ||
let src = path.join(__dirname, '..', 'http', 'any-catchall') | ||
let rootCatchallSrcDir = path.join(__dirname, '..', 'http', 'any-catchall') | ||
let staticAssetSrcDir = path.join(__dirname, '..', 'http', 'get-_public-catchall') | ||
return [ | ||
{ method: 'any', path: '/*', src } | ||
{ method: 'any', path: '/*', src: rootCatchallSrcDir }, | ||
{ method: 'get', path: '/_public/*', src: staticAssetSrcDir }, | ||
] | ||
@@ -51,0 +54,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
36102
48
687
12
4
+ Added@architect/asap@^5.0.1
+ Added@architect/asap@5.1.1(transitive)