@replayio-app-building/netlify-recorder 0.15.0 → 0.15.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1174,13 +1174,12 @@ async function databaseAuditMonitorTable(sql, tableName) {
1174
1174
  throw new Error(`Invalid table name: ${tableName}`);
1175
1175
  }
1176
1176
  const triggerName = `audit_trigger_${tableName}`;
1177
+ const asTemplate = (s) => Object.assign([s], { raw: [s] });
1177
1178
  await sql(
1178
- `DROP TRIGGER IF EXISTS ${triggerName} ON "${tableName}"`,
1179
- []
1179
+ asTemplate(`DROP TRIGGER IF EXISTS ${triggerName} ON "${tableName}"`)
1180
1180
  );
1181
1181
  await sql(
1182
- `CREATE TRIGGER ${triggerName} AFTER INSERT OR UPDATE OR DELETE ON "${tableName}" FOR EACH ROW EXECUTE FUNCTION audit_trigger_function()`,
1183
- []
1182
+ asTemplate(`CREATE TRIGGER ${triggerName} AFTER INSERT OR UPDATE OR DELETE ON "${tableName}" FOR EACH ROW EXECUTE FUNCTION audit_trigger_function()`)
1184
1183
  );
1185
1184
  }
1186
1185
  async function databaseAuditDumpLogTable(sql) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio-app-building/netlify-recorder",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Capture and replay Netlify function executions as Replay recordings",
5
5
  "type": "module",
6
6
  "exports": {