@geekmidas/cloud 10.0.0-alpha.11 → 10.0.0-alpha.12
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 +7 -7
- package/src/sst/aws/Cache.ts +4 -4
- package/src/sst/fromManifest.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cloud",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"lodash.snakecase": "~4.1.1",
|
|
44
|
-
"@geekmidas/envkit": "10.0.0-alpha.
|
|
45
|
-
"@geekmidas/manifest": "10.0.0-alpha.
|
|
44
|
+
"@geekmidas/envkit": "10.0.0-alpha.12",
|
|
45
|
+
"@geekmidas/manifest": "10.0.0-alpha.12"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/lodash.get": "~4.4.9",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@pulumi/aws": ">=7.47.0",
|
|
59
59
|
"@pulumi/random": ">=4.21.2",
|
|
60
60
|
"@pulumi/pulumi": ">=3.263.0",
|
|
61
|
-
"@geekmidas/manifest": "^10.0.0-alpha.
|
|
62
|
-
"@geekmidas/storage": "^10.0.0-alpha.
|
|
63
|
-
"@geekmidas/events": "^10.0.0-alpha.
|
|
64
|
-
"@geekmidas/db": "^10.0.0-alpha.
|
|
61
|
+
"@geekmidas/manifest": "^10.0.0-alpha.12",
|
|
62
|
+
"@geekmidas/storage": "^10.0.0-alpha.12",
|
|
63
|
+
"@geekmidas/events": "^10.0.0-alpha.12",
|
|
64
|
+
"@geekmidas/db": "^10.0.0-alpha.12"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@geekmidas/manifest": {
|
package/src/sst/aws/Cache.ts
CHANGED
|
@@ -206,7 +206,7 @@ export function withCacheTable(url: string, table: string): string {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* `
|
|
209
|
+
* A `'db'` cache in an app that declares more than one database.
|
|
210
210
|
*
|
|
211
211
|
* Picking one would put the cache somewhere nobody chose, and the symptom —
|
|
212
212
|
* entries that are never found — appears long after the deploy reported
|
|
@@ -222,7 +222,7 @@ export class CacheIsAmbiguous extends Error {
|
|
|
222
222
|
`'${id}' is a cache backed by the database, and this app declares ` +
|
|
223
223
|
`${databases.length}: ${databases.join(', ')}. Declare the cache from ` +
|
|
224
224
|
`its database — e.g. ${databases[0]}.cache('${id}') — rather than ` +
|
|
225
|
-
`
|
|
225
|
+
`as a bare new Cache().`,
|
|
226
226
|
);
|
|
227
227
|
this.name = 'CacheIsAmbiguous';
|
|
228
228
|
}
|
|
@@ -232,8 +232,8 @@ export class CacheNeedsDatabase extends Error {
|
|
|
232
232
|
constructor(readonly id: string) {
|
|
233
233
|
super(
|
|
234
234
|
`'${id}' is a cache backed by the database, and this app declares no ` +
|
|
235
|
-
`database for it to live in. Declare one, or
|
|
236
|
-
`
|
|
235
|
+
`database for it to live in. Declare one, or declare the cache from ` +
|
|
236
|
+
`the database it belongs to.`,
|
|
237
237
|
);
|
|
238
238
|
this.name = 'CacheNeedsDatabase';
|
|
239
239
|
}
|
package/src/sst/fromManifest.ts
CHANGED
|
@@ -98,8 +98,8 @@ export interface ProvisionContext {
|
|
|
98
98
|
/**
|
|
99
99
|
* Where a declared cache lives, and who delivers mail.
|
|
100
100
|
*
|
|
101
|
-
* Deployment choices rather than declarations, for the same reason
|
|
102
|
-
*
|
|
101
|
+
* Deployment choices rather than declarations, for the same reason the
|
|
102
|
+
* event broker is: the same application code caches into any of them and
|
|
103
103
|
* sends through any of them. They reach the provisioner here because it is
|
|
104
104
|
* the only place that knows both the choice and the manifest.
|
|
105
105
|
*/
|