You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@prisma/param-graph

Package Overview
Dependencies
Maintainers
7
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/param-graph - npm Package Compare versions

Comparing version
7.3.0-integration-parameterization.7
to
7.3.0-integration-parameterization.8
+20
-15
dist/param-graph.d.ts

@@ -22,3 +22,3 @@ /**

*/
en: string[];
e: string[];
/**

@@ -124,11 +124,21 @@ * Input nodes used for argument objects and input types.

/**
* Field may be parameterized as an enum.
* Check enum ID to validate the value type.
*/
readonly ParamEnum: 2;
/**
* Field accepts list-of-scalar values.
* Parameterize the whole list if all elements match ScalarMask.
*/
readonly ListScalar: 2;
readonly ParamListScalar: 4;
/**
* Field accepts list-of-enum values.
* Parameterize the whole list if all elements match enum ID.
*/
readonly ParamListEnum: 8;
/**
* Field accepts list-of-object values.
* Recurse into each element using the child node.
*/
readonly ListObject: 4;
readonly ListObject: 16;
/**

@@ -138,9 +148,3 @@ * Field accepts object values.

*/
readonly Object: 8;
/**
* Field accepts null as a valid value.
* Note: Null values are NEVER parameterized at runtime regardless of this flag.
* This flag is informational only (reflects isNullable from DMMF).
*/
readonly Nullable: 16;
readonly Object: 32;
};

@@ -154,9 +158,10 @@ export type EdgeFlagValue = (typeof EdgeFlag)[keyof typeof EdgeFlag];

readonly String: 1;
readonly Number: 2;
readonly Boolean: 4;
readonly DateTime: 8;
readonly Int: 2;
readonly BigInt: 4;
readonly Float: 8;
readonly Decimal: 16;
readonly BigInt: 32;
readonly Bytes: 64;
readonly Boolean: 32;
readonly DateTime: 64;
readonly Json: 128;
readonly Bytes: 256;
};

@@ -163,0 +168,0 @@ export type ScalarMaskValue = (typeof ScalarMask)[keyof typeof ScalarMask];

@@ -35,11 +35,21 @@ "use strict";

/**
* Field may be parameterized as an enum.
* Check enum ID to validate the value type.
*/
ParamEnum: 2,
/**
* Field accepts list-of-scalar values.
* Parameterize the whole list if all elements match ScalarMask.
*/
ListScalar: 2,
ParamListScalar: 4,
/**
* Field accepts list-of-enum values.
* Parameterize the whole list if all elements match enum ID.
*/
ParamListEnum: 8,
/**
* Field accepts list-of-object values.
* Recurse into each element using the child node.
*/
ListObject: 4,
ListObject: 16,
/**

@@ -49,20 +59,14 @@ * Field accepts object values.

*/
Object: 8,
/**
* Field accepts null as a valid value.
* Note: Null values are NEVER parameterized at runtime regardless of this flag.
* This flag is informational only (reflects isNullable from DMMF).
*/
Nullable: 16
Object: 32
};
const ScalarMask = {
String: 1,
Number: 2,
// Int, Float
Boolean: 4,
DateTime: 8,
Int: 2,
BigInt: 4,
Float: 8,
Decimal: 16,
BigInt: 32,
Bytes: 64,
Json: 128
Boolean: 32,
DateTime: 64,
Json: 128,
Bytes: 256
};

@@ -78,6 +82,12 @@ function hasFlag(edge, flag) {

case "String":
case "UUID":
return ScalarMask.String;
case "Int":
return ScalarMask.Int;
case "BigInt":
return ScalarMask.BigInt;
case "Float":
return ScalarMask.Number;
return ScalarMask.Float;
case "Decimal":
return ScalarMask.Decimal;
case "Boolean":

@@ -87,10 +97,6 @@ return ScalarMask.Boolean;

return ScalarMask.DateTime;
case "Decimal":
return ScalarMask.Decimal;
case "BigInt":
return ScalarMask.BigInt;
case "Json":
return ScalarMask.Json;
case "Bytes":
return ScalarMask.Bytes;
case "Json":
return ScalarMask.Json;
default:

@@ -97,0 +103,0 @@ return 0;

@@ -8,11 +8,21 @@ const EdgeFlag = {

/**
* Field may be parameterized as an enum.
* Check enum ID to validate the value type.
*/
ParamEnum: 2,
/**
* Field accepts list-of-scalar values.
* Parameterize the whole list if all elements match ScalarMask.
*/
ListScalar: 2,
ParamListScalar: 4,
/**
* Field accepts list-of-enum values.
* Parameterize the whole list if all elements match enum ID.
*/
ParamListEnum: 8,
/**
* Field accepts list-of-object values.
* Recurse into each element using the child node.
*/
ListObject: 4,
ListObject: 16,
/**

@@ -22,20 +32,14 @@ * Field accepts object values.

*/
Object: 8,
/**
* Field accepts null as a valid value.
* Note: Null values are NEVER parameterized at runtime regardless of this flag.
* This flag is informational only (reflects isNullable from DMMF).
*/
Nullable: 16
Object: 32
};
const ScalarMask = {
String: 1,
Number: 2,
// Int, Float
Boolean: 4,
DateTime: 8,
Int: 2,
BigInt: 4,
Float: 8,
Decimal: 16,
BigInt: 32,
Bytes: 64,
Json: 128
Boolean: 32,
DateTime: 64,
Json: 128,
Bytes: 256
};

@@ -51,6 +55,12 @@ function hasFlag(edge, flag) {

case "String":
case "UUID":
return ScalarMask.String;
case "Int":
return ScalarMask.Int;
case "BigInt":
return ScalarMask.BigInt;
case "Float":
return ScalarMask.Number;
return ScalarMask.Float;
case "Decimal":
return ScalarMask.Decimal;
case "Boolean":

@@ -60,10 +70,6 @@ return ScalarMask.Boolean;

return ScalarMask.DateTime;
case "Decimal":
return ScalarMask.Decimal;
case "BigInt":
return ScalarMask.BigInt;
case "Json":
return ScalarMask.Json;
case "Bytes":
return ScalarMask.Bytes;
case "Json":
return ScalarMask.Json;
default:

@@ -70,0 +76,0 @@ return 0;

{
"name": "@prisma/param-graph",
"version": "7.3.0-integration-parameterization.7",
"version": "7.3.0-integration-parameterization.8",
"description": "This package is intended for Prisma's internal use",

@@ -5,0 +5,0 @@ "main": "dist/index.js",