@prisma/client
Advanced tools
Comparing version 4.4.0 to 4.11.0
{ | ||
"name": "@prisma/client", | ||
"version": "4.4.0", | ||
"version": "4.11.0", | ||
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports MySQL, PostgreSQL, MariaDB, SQLite databases.", | ||
@@ -40,2 +40,3 @@ "keywords": [ | ||
"runtime", | ||
"!runtime/*.map", | ||
"scripts", | ||
@@ -50,33 +51,24 @@ "generator-build", | ||
"devDependencies": { | ||
"@faker-js/faker": "7.5.0", | ||
"@fast-check/jest": "1.0.1", | ||
"@jest/test-sequencer": "28.1.3", | ||
"@microsoft/api-extractor": "7.31.2", | ||
"@opentelemetry/api": "1.2.0", | ||
"@opentelemetry/context-async-hooks": "1.7.0", | ||
"@opentelemetry/instrumentation": "0.33.0", | ||
"@opentelemetry/resources": "1.7.0", | ||
"@opentelemetry/sdk-trace-base": "1.7.0", | ||
"@opentelemetry/semantic-conventions": "1.7.0", | ||
"@prisma/debug": "4.4.0", | ||
"@prisma/engine-core": "4.4.0", | ||
"@prisma/engines": "4.4.0", | ||
"@prisma/fetch-engine": "4.4.0", | ||
"@prisma/generator-helper": "4.4.0", | ||
"@prisma/get-platform": "4.4.0", | ||
"@prisma/instrumentation": "4.4.0", | ||
"@prisma/internals": "4.4.0", | ||
"@prisma/migrate": "4.4.0", | ||
"@prisma/mini-proxy": "0.1.2", | ||
"@swc-node/register": "1.5.1", | ||
"@swc/core": "1.3.2", | ||
"@swc/jest": "0.2.22", | ||
"@faker-js/faker": "7.6.0", | ||
"@fast-check/jest": "1.6.0", | ||
"@jest/globals": "29.4.1", | ||
"@jest/test-sequencer": "29.4.1", | ||
"@opentelemetry/api": "1.4.0", | ||
"@opentelemetry/context-async-hooks": "1.9.1", | ||
"@opentelemetry/instrumentation": "0.35.1", | ||
"@opentelemetry/resources": "1.9.1", | ||
"@opentelemetry/sdk-trace-base": "1.9.1", | ||
"@opentelemetry/semantic-conventions": "1.9.1", | ||
"@prisma/mini-proxy": "0.6.4", | ||
"@swc-node/register": "1.5.5", | ||
"@swc/core": "1.3.32", | ||
"@swc/jest": "0.2.24", | ||
"@timsuchanek/copy": "1.4.5", | ||
"@types/debug": "4.1.7", | ||
"@types/fs-extra": "9.0.13", | ||
"@types/jest": "28.1.8", | ||
"@types/jest": "29.4.0", | ||
"@types/js-levenshtein": "1.1.1", | ||
"@types/mssql": "8.1.1", | ||
"@types/node": "14.18.29", | ||
"@types/pg": "8.6.5", | ||
"@types/mssql": "8.1.2", | ||
"@types/node": "14.18.36", | ||
"@types/pg": "8.6.6", | ||
"@types/yeoman-generator": "5.2.11", | ||
@@ -86,9 +78,8 @@ "arg": "5.0.2", | ||
"chalk": "4.1.2", | ||
"cuid": "2.1.8", | ||
"decimal.js": "10.4.1", | ||
"esbuild": "0.15.8", | ||
"decimal.js": "10.4.3", | ||
"esbuild": "0.15.13", | ||
"execa": "5.1.1", | ||
"expect-type": "0.14.2", | ||
"expect-type": "0.15.0", | ||
"flat-map-polyfill": "0.3.8", | ||
"fs-extra": "10.1.0", | ||
"fs-extra": "11.1.0", | ||
"fs-monkey": "1.0.3", | ||
@@ -100,19 +91,18 @@ "get-own-enumerable-property-symbols": "3.0.2", | ||
"is-regexp": "2.1.0", | ||
"jest": "28.1.3", | ||
"jest-junit": "14.0.1", | ||
"jest-snapshot": "28.1.3", | ||
"jest": "29.4.1", | ||
"jest-junit": "15.0.0", | ||
"jest-snapshot": "29.4.1", | ||
"js-levenshtein": "1.1.6", | ||
"klona": "2.0.5", | ||
"klona": "2.0.6", | ||
"lz-string": "1.4.4", | ||
"make-dir": "3.1.0", | ||
"mariadb": "3.0.1", | ||
"memfs": "3.4.7", | ||
"mssql": "9.0.1", | ||
"pg": "8.8.0", | ||
"mariadb": "3.0.2", | ||
"memfs": "3.4.13", | ||
"mssql": "9.1.1", | ||
"node-fetch": "2.6.9", | ||
"pg": "8.9.0", | ||
"pkg-up": "3.1.0", | ||
"pluralize": "8.0.0", | ||
"replace-string": "3.1.0", | ||
"resolve": "1.22.1", | ||
"rimraf": "3.0.2", | ||
"simple-statistics": "7.7.6", | ||
"simple-statistics": "7.8.2", | ||
"sort-keys": "4.2.0", | ||
@@ -124,8 +114,19 @@ "source-map-support": "0.5.21", | ||
"strip-indent": "3.0.0", | ||
"ts-jest": "28.0.8", | ||
"ts-jest": "29.0.5", | ||
"ts-node": "10.9.1", | ||
"ts-pattern": "4.1.3", | ||
"tsd": "0.21.0", | ||
"typescript": "4.8.3", | ||
"typescript": "4.9.5", | ||
"yeoman-generator": "5.7.0", | ||
"yo": "4.3.0" | ||
"yo": "4.3.1", | ||
"zx": "7.1.1", | ||
"@prisma/debug": "4.11.0", | ||
"@prisma/engine-core": "4.11.0", | ||
"@prisma/engines": "4.11.0", | ||
"@prisma/fetch-engine": "4.11.0", | ||
"@prisma/generator-helper": "4.11.0", | ||
"@prisma/get-platform": "4.11.0", | ||
"@prisma/instrumentation": "4.11.0", | ||
"@prisma/internals": "4.11.0", | ||
"@prisma/migrate": "4.11.0" | ||
}, | ||
@@ -141,3 +142,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@prisma/engines-version": "4.4.0-66.f352a33b70356f46311da8b00d83386dd9f145d6" | ||
"@prisma/engines-version": "4.11.0-57.8fde8fef4033376662cad983758335009d522acb" | ||
}, | ||
@@ -149,2 +150,3 @@ "sideEffects": false, | ||
"test": "jest --verbose", | ||
"test:e2e": "node -r esbuild-register tests/e2e/_utils/run.ts", | ||
"test:functional": "node -r esbuild-register helpers/functional-test/run-tests.ts", | ||
@@ -151,0 +153,0 @@ "test:memory": "node -r esbuild-register helpers/memory-tests.ts", |
@@ -32,3 +32,2 @@ declare class AnyNull extends NullTypesEnumValue { | ||
readonly s: number; | ||
private readonly toStringTag: string; | ||
@@ -242,3 +241,3 @@ constructor(n: Decimal.Value); | ||
static set(object: Decimal.Config): Decimal.Constructor; | ||
static sign(n: Decimal.Value): Decimal; | ||
static sign(n: Decimal.Value): number; | ||
static sin(n: Decimal.Value): Decimal; | ||
@@ -245,0 +244,0 @@ static sinh(n: Decimal.Value): Decimal; |
@@ -0,1 +1,3 @@ | ||
import * as runtime from '@prisma/client/runtime' | ||
/** | ||
@@ -13,5 +15,6 @@ * ## Prisma Client ʲˢ | ||
* | ||
* Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md). | ||
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client). | ||
*/ | ||
export declare const PrismaClient: any | ||
/** | ||
@@ -29,6 +32,22 @@ * ## Prisma Client ʲˢ | ||
* | ||
* Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md). | ||
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client). | ||
*/ | ||
export declare type PrismaClient = any | ||
export declare type PrismaClientExtends< | ||
ExtArgs extends runtime.Types.Extensions.Args = runtime.Types.Extensions.DefaultArgs, | ||
> = { | ||
$extends: { extArgs: ExtArgs } & (< | ||
R extends runtime.Types.Extensions.UserArgs['result'] = {}, | ||
M extends runtime.Types.Extensions.UserArgs['model'] = {}, | ||
Q extends runtime.Types.Extensions.UserArgs['query'] = {}, | ||
C extends runtime.Types.Extensions.UserArgs['client'] = {}, | ||
Args extends runtime.Types.Extensions.Args = runtime.Types.Extensions.InternalArgs<R, M, Q, C>, | ||
>( | ||
args: | ||
| ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } }) | ||
| { name?: string; result?: R; model?: M; query?: Q; client?: C }, | ||
) => PrismaClientExtends<Args & ExtArgs>) | ||
} | ||
export declare const dmmf: any | ||
@@ -46,1 +65,25 @@ export declare type dmmf = any | ||
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>> | ||
export namespace Prisma { | ||
export type TransactionClient = any | ||
export function defineExtension< | ||
R extends runtime.Types.Extensions.UserArgs['result'] = {}, | ||
M extends runtime.Types.Extensions.UserArgs['model'] = {}, | ||
Q extends runtime.Types.Extensions.UserArgs['query'] = {}, | ||
C extends runtime.Types.Extensions.UserArgs['client'] = {}, | ||
Args extends runtime.Types.Extensions.Args = runtime.Types.Extensions.InternalArgs<R, M, Q, C>, | ||
>( | ||
args: | ||
| ((client: PrismaClientExtends) => { $extends: { extArgs: Args } }) | ||
| { name?: string; result?: R; model?: M; query?: Q; client?: C }, | ||
): (client: any) => PrismaClientExtends<Args> | ||
export type Extension = runtime.Types.Extensions.UserArgs | ||
export import getExtensionContext = runtime.Extensions.getExtensionContext | ||
export type Args<T, F extends runtime.Types.Public.Operation> = runtime.Types.Public.Args<T, F> & {} | ||
export type Payload<T, F extends runtime.Types.Public.Operation> = runtime.Types.Public.Payload<T, F> & {} | ||
export type Result<T, A, F extends runtime.Types.Public.Operation> = runtime.Types.Public.Result<T, A, F> & {} | ||
export type Exact<T, W> = runtime.Types.Public.Exact<T, W> & {} | ||
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T> & {} | ||
} |
@@ -10,4 +10,20 @@ class PrismaClient { | ||
function defineExtension(ext) { | ||
if (typeof ext === 'function') { | ||
return ext | ||
} | ||
return (client) => client.$extends(ext) | ||
} | ||
function getExtensionContext(that) { | ||
return that | ||
} | ||
module.exports = { | ||
PrismaClient, | ||
Prisma: { | ||
defineExtension, | ||
getExtensionContext, | ||
}, | ||
} |
@@ -212,3 +212,6 @@ // @ts-check | ||
const defaultEdgeIndexDtsPath = path.join(dotPrismaClientDir, 'edge.d.ts') | ||
const defaultDenoClientDir = path.join(dotPrismaClientDir, 'deno') | ||
const defaultDenoEdgeIndexPath = path.join(defaultDenoClientDir, 'edge.ts') | ||
await makeDir(dotPrismaClientDir) | ||
await makeDir(defaultDenoClientDir) | ||
@@ -234,2 +237,6 @@ if (!fs.existsSync(defaultNodeIndexPath)) { | ||
} | ||
if (!fs.existsSync(defaultDenoEdgeIndexPath)) { | ||
await copyFile(path.join(__dirname, 'default-deno-edge.ts'), defaultDenoEdgeIndexPath) | ||
} | ||
} catch (e) { | ||
@@ -287,3 +294,3 @@ console.error(e) | ||
* This information is just necessary for telemetry. | ||
* This get's passed in to Generate, which then automatically get's propagated to telemetry. | ||
* This is passed to `prisma generate` as a string like `--postinstall value`. | ||
*/ | ||
@@ -290,0 +297,0 @@ function getPostInstallTrigger() { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 3 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 19 instances in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
3630567
31
41906
5
352
47