@friggframework/core 2.0.0--canary.686.ba9ded3.0 → 2.0.0--canary.686.45cab16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.686.
|
|
4
|
+
"version": "2.0.0--canary.686.45cab16.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@friggframework/eslint-config": "2.0.0--canary.686.
|
|
52
|
-
"@friggframework/prettier-config": "2.0.0--canary.686.
|
|
53
|
-
"@friggframework/test": "2.0.0--canary.686.
|
|
51
|
+
"@friggframework/eslint-config": "2.0.0--canary.686.45cab16.0",
|
|
52
|
+
"@friggframework/prettier-config": "2.0.0--canary.686.45cab16.0",
|
|
53
|
+
"@friggframework/test": "2.0.0--canary.686.45cab16.0",
|
|
54
54
|
"@prisma/client": "^6.19.3",
|
|
55
55
|
"@types/lodash": "4.17.15",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "45cab161a94a4023c0a35a47dbe27a6c559ea25b"
|
|
94
94
|
}
|
|
@@ -91,12 +91,28 @@ function resolveActiveProvider(env = process.env, { appDefinition, resolve = res
|
|
|
91
91
|
function isDeployedRuntime(env = process.env, { provider, appDefinition } = {}) {
|
|
92
92
|
if (isLocalRun(env)) return false;
|
|
93
93
|
if (isAwsLambdaRuntime(env)) return true;
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
if (provider === undefined) {
|
|
95
|
+
// A named non-AWS provider whose package cannot be loaded (or has no
|
|
96
|
+
// detect()) cannot say where we run. Fail closed: provider-netlify's
|
|
97
|
+
// generated entry points set FRIGG_PROVIDER, so treating that as local
|
|
98
|
+
// would let a deployed function accept unsigned queue messages.
|
|
99
|
+
const name = appDefinition?.provider || env.FRIGG_PROVIDER;
|
|
100
|
+
if (isSet(name) && name !== 'aws') {
|
|
101
|
+
const active = resolveActiveProvider(env, { appDefinition });
|
|
102
|
+
if (!active || typeof active.detect !== 'function') return true;
|
|
103
|
+
return askProvider(active, env, true);
|
|
104
|
+
}
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
if (!provider || typeof provider.detect !== 'function') return false;
|
|
108
|
+
return askProvider(provider, env, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function askProvider(active, env, onError) {
|
|
96
112
|
try {
|
|
97
113
|
return active.detect(env) === true;
|
|
98
114
|
} catch (_) {
|
|
99
|
-
return
|
|
115
|
+
return onError;
|
|
100
116
|
}
|
|
101
117
|
}
|
|
102
118
|
|