@awsless/awsless 0.0.357 → 0.0.359
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/dist/bin.js +2 -2
- package/dist/server.js +2 -2
- package/package.json +4 -4
package/dist/bin.js
CHANGED
|
@@ -10998,7 +10998,7 @@ var createAsyncLambdaFunction = (group, ctx, ns, id, local2) => {
|
|
|
10998
10998
|
var authFeature = defineFeature({
|
|
10999
10999
|
name: "auth",
|
|
11000
11000
|
async onTypeGen(ctx) {
|
|
11001
|
-
const gen = new TypeFile("@awsless/awsless
|
|
11001
|
+
const gen = new TypeFile("@awsless/awsless");
|
|
11002
11002
|
const resources = new TypeObject(1);
|
|
11003
11003
|
for (const name of Object.keys(ctx.appConfig.defaults.auth)) {
|
|
11004
11004
|
resources.addType(name, `{ readonly userPoolId: string, readonly clientId: string }`);
|
|
@@ -11045,7 +11045,7 @@ var authFeature = defineFeature({
|
|
|
11045
11045
|
item.lambda.addEnvironment(`AUTH_${constantCase2(id)}_USER_POOL_ID`, userPoolId);
|
|
11046
11046
|
item.lambda.addEnvironment(`AUTH_${constantCase2(id)}_CLIENT_ID`, clientId);
|
|
11047
11047
|
item.policy.addStatement({
|
|
11048
|
-
actions: ["cognito:*"],
|
|
11048
|
+
actions: ["cognito-idp:*"],
|
|
11049
11049
|
resources: [
|
|
11050
11050
|
// Not yet known if this is correct way to grant access to all resources
|
|
11051
11051
|
userPoolArn
|
package/dist/server.js
CHANGED
|
@@ -254,8 +254,8 @@ var mockTopic = (cb) => {
|
|
|
254
254
|
import { constantCase as constantCase2 } from "change-case";
|
|
255
255
|
var getAuthProps = (name) => {
|
|
256
256
|
return {
|
|
257
|
-
userPoolId: process.env[
|
|
258
|
-
clientId: process.env[
|
|
257
|
+
userPoolId: process.env[`AUTH_${constantCase2(name)}_USER_POOL_ID`],
|
|
258
|
+
clientId: process.env[`AUTH_${constantCase2(name)}_CLIENT_ID`]
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
var Auth = /* @__PURE__ */ createProxy((name) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.359",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@awsless/lambda": "^0.0.26",
|
|
33
33
|
"@awsless/open-search": "^0.0.15",
|
|
34
34
|
"@awsless/redis": "^0.0.12",
|
|
35
|
+
"@awsless/s3": "^0.0.18",
|
|
35
36
|
"@awsless/sns": "^0.0.7",
|
|
36
|
-
"@awsless/ssm": "^0.0.7",
|
|
37
37
|
"@awsless/sqs": "^0.0.7",
|
|
38
|
-
"@awsless/s3": "^0.0.18",
|
|
39
38
|
"@awsless/validate": "^0.0.15",
|
|
39
|
+
"@awsless/ssm": "^0.0.7",
|
|
40
40
|
"@awsless/weak-cache": "^0.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"zod": "^3.21.4",
|
|
109
109
|
"zod-to-json-schema": "^3.22.3",
|
|
110
110
|
"@awsless/code": "^0.0.10",
|
|
111
|
-
"@awsless/graphql": "^0.0.9",
|
|
112
111
|
"@awsless/duration": "^0.0.1",
|
|
113
112
|
"@awsless/formation": "^0.0.55",
|
|
113
|
+
"@awsless/graphql": "^0.0.9",
|
|
114
114
|
"@awsless/size": "^0.0.1",
|
|
115
115
|
"@awsless/ts-file-cache": "^0.0.9",
|
|
116
116
|
"@awsless/validate": "^0.0.15"
|