@ampless/backend 0.2.0-alpha.1 → 0.2.0-alpha.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SQSHandler } from 'aws-lambda';
|
|
2
|
-
import {
|
|
2
|
+
import { Config } from 'ampless';
|
|
3
3
|
|
|
4
4
|
interface CreateProcessorTrustedHandlerOpts {
|
|
5
5
|
/**
|
|
@@ -7,8 +7,12 @@ interface CreateProcessorTrustedHandlerOpts {
|
|
|
7
7
|
* trusted plugins itself so callers don't need to remember the
|
|
8
8
|
* filter, and so adding `privileged` later only touches the handler
|
|
9
9
|
* code in this package.
|
|
10
|
+
*
|
|
11
|
+
* Accepts the raw `Config['plugins']` shape (which permits string
|
|
12
|
+
* entries for future dynamic loading) — the runtime filter discards
|
|
13
|
+
* anything that isn't a plugin object.
|
|
10
14
|
*/
|
|
11
|
-
plugins?:
|
|
15
|
+
plugins?: Config['plugins'];
|
|
12
16
|
/**
|
|
13
17
|
* The `cms.config.site` block, surfaced to plugin hooks via
|
|
14
18
|
* `ctx.site`. Pass through from the thin shell — handlers must
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { SQSHandler } from 'aws-lambda';
|
|
2
|
-
import {
|
|
2
|
+
import { Config } from 'ampless';
|
|
3
3
|
|
|
4
4
|
interface CreateProcessorUntrustedHandlerOpts {
|
|
5
5
|
/**
|
|
6
6
|
* The full `cms.config.plugins` array. The handler filters down to
|
|
7
7
|
* untrusted plugins itself.
|
|
8
|
+
*
|
|
9
|
+
* Accepts the raw `Config['plugins']` shape (which permits string
|
|
10
|
+
* entries for future dynamic loading) — the runtime filter discards
|
|
11
|
+
* anything that isn't a plugin object.
|
|
8
12
|
*/
|
|
9
|
-
plugins?:
|
|
13
|
+
plugins?: Config['plugins'];
|
|
10
14
|
/**
|
|
11
15
|
* The `cms.config.site` block, surfaced to plugin hooks via
|
|
12
16
|
* `ctx.site` (read-only — untrusted plugins have no AWS-touching
|
package/package.json
CHANGED