@prisma/cli-policy
Advanced tools
Comparing version 0.0.0-dev.202502191844 to 0.0.0-dev.202502192111
@@ -38,7 +38,7 @@ // @ts-check | ||
$allModels: { | ||
subscribe(/** @type {any} */ args) { | ||
async subscribe(/** @type {any} */ args) { | ||
// eslint-disable-next-line @typescript-eslint/no-this-alias | ||
const ctx = /** @type {any} */ (this); | ||
const sub = await ctx.$parent[ctx.$name].subscribe(args); | ||
(async () => { | ||
// eslint-disable-next-line @typescript-eslint/no-this-alias | ||
const ctx = /** @type {any} */ (this); | ||
const sub = await ctx.$parent[ctx.$name].subscribe(args); | ||
for await (const data of sub) { | ||
@@ -49,3 +49,3 @@ data.after &&= keepSelectedFields(data.after, args.select); | ||
data.deleted &&= keepSelectedFields(data.deleted, args.select); | ||
void env.EXECUTOR?.emitEvent({ send }, data); | ||
void env.EXECUTOR.emitEvent({ send }, data); | ||
} | ||
@@ -52,0 +52,0 @@ })(); |
{ | ||
"name": "@prisma/cli-policy", | ||
"version": "0.0.0-dev.202502191844", | ||
"version": "0.0.0-dev.202502192111", | ||
"sideEffects": false, | ||
@@ -35,4 +35,4 @@ "description": "Policy CLI for Prisma", | ||
"common-cli-utils": "^0.0.0", | ||
"policy-deployer": "^0.0.0-dev.202502191844", | ||
"policy-playground": "^0.0.0-dev.202502191844" | ||
"policy-deployer": "^0.0.0-dev.202502192111", | ||
"policy-playground": "^0.0.0-dev.202502192111" | ||
}, | ||
@@ -39,0 +39,0 @@ "peerDependencies": { |
40763