sst 2.21.3 → 2.21.4

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.
@@ -196,6 +196,7 @@ export async function useLocalServer(opts) {
196
196
  false,
197
197
  ],
198
198
  ]);
199
+ publish("function.invoked", evt.properties);
199
200
  updateFunction(evt.properties.functionID, (draft) => {
200
201
  if (draft.invocations.length >= 25)
201
202
  draft.invocations.pop();
@@ -235,6 +236,7 @@ export async function useLocalServer(opts) {
235
236
  publish("log", [
236
237
  ["e", Date.now(), evt.properties.functionID, evt.properties.requestID],
237
238
  ]);
239
+ publish("function.success", evt.properties);
238
240
  updateFunction(evt.properties.functionID, (draft) => {
239
241
  const invocation = draft.invocations.find((x) => x.id === evt.properties.requestID);
240
242
  if (!invocation)
@@ -250,6 +252,7 @@ export async function useLocalServer(opts) {
250
252
  publish("log", [
251
253
  ["e", Date.now(), evt.properties.functionID, evt.properties.requestID],
252
254
  ]);
255
+ publish("function.error", evt.properties);
253
256
  updateFunction(evt.properties.functionID, (draft) => {
254
257
  const invocation = draft.invocations.find((x) => x.id === evt.properties.requestID);
255
258
  if (!invocation)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.21.3",
4
+ "version": "2.21.4",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/sst.mjs CHANGED
@@ -7176,6 +7176,7 @@ async function useLocalServer(opts) {
7176
7176
  false
7177
7177
  ]
7178
7178
  ]);
7179
+ publish("function.invoked", evt.properties);
7179
7180
  updateFunction(evt.properties.functionID, (draft) => {
7180
7181
  if (draft.invocations.length >= 25)
7181
7182
  draft.invocations.pop();
@@ -7217,6 +7218,7 @@ async function useLocalServer(opts) {
7217
7218
  publish("log", [
7218
7219
  ["e", Date.now(), evt.properties.functionID, evt.properties.requestID]
7219
7220
  ]);
7221
+ publish("function.success", evt.properties);
7220
7222
  updateFunction(evt.properties.functionID, (draft) => {
7221
7223
  const invocation = draft.invocations.find(
7222
7224
  (x) => x.id === evt.properties.requestID
@@ -7234,6 +7236,7 @@ async function useLocalServer(opts) {
7234
7236
  publish("log", [
7235
7237
  ["e", Date.now(), evt.properties.functionID, evt.properties.requestID]
7236
7238
  ]);
7239
+ publish("function.error", evt.properties);
7237
7240
  updateFunction(evt.properties.functionID, (draft) => {
7238
7241
  const invocation = draft.invocations.find(
7239
7242
  (x) => x.id === evt.properties.requestID