@awsless/awsless 0.0.39 → 0.0.40
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.cjs +20 -11
- package/dist/bin.js +20 -11
- package/package.json +3 -3
package/dist/bin.cjs
CHANGED
|
@@ -1123,17 +1123,26 @@ var TypeGen = class {
|
|
|
1123
1123
|
if (this.types.size === 0) {
|
|
1124
1124
|
return;
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
|
|
1128
|
-
|
|
1126
|
+
const lines = [];
|
|
1127
|
+
if (this.imports.size > 0) {
|
|
1128
|
+
lines.push(...[
|
|
1129
|
+
"// Imports",
|
|
1130
|
+
...Array.from(this.imports.entries()).map(([varName, path]) => {
|
|
1131
|
+
return `import ${(0, import_change_case3.camelCase)(varName)} from '${path}'`;
|
|
1132
|
+
}),
|
|
1133
|
+
""
|
|
1134
|
+
]);
|
|
1135
|
+
}
|
|
1136
|
+
if (this.codes.size > 0) {
|
|
1137
|
+
lines.push(...[
|
|
1138
|
+
"// Types",
|
|
1139
|
+
...Array.from(this.codes).map((v) => v.trim()),
|
|
1140
|
+
""
|
|
1141
|
+
]);
|
|
1142
|
+
}
|
|
1129
1143
|
return [
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
"",
|
|
1133
|
-
"// Types",
|
|
1134
|
-
...Array.from(this.codes).map((v) => v.trim()),
|
|
1135
|
-
"",
|
|
1136
|
-
"// Module",
|
|
1144
|
+
...lines,
|
|
1145
|
+
"// Extend module",
|
|
1137
1146
|
`declare module '${this.module}' {`,
|
|
1138
1147
|
` interface ${this.interfaceName} {`,
|
|
1139
1148
|
...Array.from(this.types.entries()).map(([propName, type]) => {
|
|
@@ -1142,7 +1151,7 @@ var TypeGen = class {
|
|
|
1142
1151
|
` }`,
|
|
1143
1152
|
`}`,
|
|
1144
1153
|
"",
|
|
1145
|
-
"//
|
|
1154
|
+
"// Export fix",
|
|
1146
1155
|
`export {}`
|
|
1147
1156
|
].join("\n");
|
|
1148
1157
|
}
|
package/dist/bin.js
CHANGED
|
@@ -1100,17 +1100,26 @@ var TypeGen = class {
|
|
|
1100
1100
|
if (this.types.size === 0) {
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
const lines = [];
|
|
1104
|
+
if (this.imports.size > 0) {
|
|
1105
|
+
lines.push(...[
|
|
1106
|
+
"// Imports",
|
|
1107
|
+
...Array.from(this.imports.entries()).map(([varName, path]) => {
|
|
1108
|
+
return `import ${camelCase(varName)} from '${path}'`;
|
|
1109
|
+
}),
|
|
1110
|
+
""
|
|
1111
|
+
]);
|
|
1112
|
+
}
|
|
1113
|
+
if (this.codes.size > 0) {
|
|
1114
|
+
lines.push(...[
|
|
1115
|
+
"// Types",
|
|
1116
|
+
...Array.from(this.codes).map((v) => v.trim()),
|
|
1117
|
+
""
|
|
1118
|
+
]);
|
|
1119
|
+
}
|
|
1106
1120
|
return [
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
"",
|
|
1110
|
-
"// Types",
|
|
1111
|
-
...Array.from(this.codes).map((v) => v.trim()),
|
|
1112
|
-
"",
|
|
1113
|
-
"// Module",
|
|
1121
|
+
...lines,
|
|
1122
|
+
"// Extend module",
|
|
1114
1123
|
`declare module '${this.module}' {`,
|
|
1115
1124
|
` interface ${this.interfaceName} {`,
|
|
1116
1125
|
...Array.from(this.types.entries()).map(([propName, type]) => {
|
|
@@ -1119,7 +1128,7 @@ var TypeGen = class {
|
|
|
1119
1128
|
` }`,
|
|
1120
1129
|
`}`,
|
|
1121
1130
|
"",
|
|
1122
|
-
"//
|
|
1131
|
+
"// Export fix",
|
|
1123
1132
|
`export {}`
|
|
1124
1133
|
].join("\n");
|
|
1125
1134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
+
"@awsless/sqs": "^0.0.5",
|
|
28
29
|
"@awsless/lambda": "^0.0.5",
|
|
29
|
-
"@awsless/sns": "^0.0.5"
|
|
30
|
-
"@awsless/sqs": "^0.0.5"
|
|
30
|
+
"@awsless/sns": "^0.0.5"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@aws-sdk/client-cloudformation": "^3.369.0",
|