New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cwqt/refract

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cwqt/refract - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

2

dist/public/fields/enums.d.ts
import * as Types from '../../types';
export declare const Key: <T extends string>(...args: [name: T, ...modifiers: Types.Modifier<"EnumKey", "map" | "comment">[]] | [name: T, ...modifiers: Types.Modifier<"EnumKey", "map" | "comment">[], comment: string]) => Types.Fields.EnumKey<T>;
declare type R<E extends Types.Fields.EnumKey[]> = (<M extends Types.Modifiers<'Enum'>>(initial?: E[number]['name'] | null, ...modifiers: Types.Modifier<'Enum', M>[]) => Types.Fields.Field<'Enum', M>) & Types.Blocks.Enum;
declare type R<E extends Types.Fields.EnumKey[]> = (<M extends Types.Modifiers<'Enum'>>(initial?: E[number]['name'] | null | undefined, ...modifiers: Types.Modifier<'Enum', M>[]) => Types.Fields.Field<'Enum', M>) & Types.Blocks.Enum;
export declare function Enum<E extends Types.Fields.EnumKey[]>(name: string, ...keys: E): R<E>;
export declare function Enum<E extends Types.Fields.EnumKey[]>(name: string, comment: string, ...keys: E): R<E>;
export {};

@@ -6,3 +6,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

const [name, ...modifiers] = args;
return (0, utils_1.isString)(args[args.length - 1])
return args.length >= 2 && (0, utils_1.isString)(args[args.length - 1])
? {

@@ -41,3 +41,3 @@ name,

}
_call(initial = null, ...modifiers) {
_call(initial = undefined, ...modifiers) {
return {

@@ -51,3 +51,4 @@ type: 'Enum',

? { type: 'nullable', value: true }
: null,
:
undefined,
...modifiers,

@@ -54,0 +55,0 @@ ].filter((v, i, a) => (0, utils_1.nonNullable)(v) && a.findIndex(m => m.type == v.type) === i),

@@ -49,3 +49,3 @@ import { Types } from '..';

}, {
nullable?: true;
nullable?: boolean;
map?: string;

@@ -60,3 +60,3 @@ ignore?: true;

id?: true;
nullable?: true;
nullable?: boolean;
default?: string;

@@ -83,3 +83,3 @@ ignore?: true;

onDelete?: ReferentialAction;
nullable?: true;
nullable?: boolean;
};

@@ -91,3 +91,3 @@ ManyToOne: {

onDelete?: ReferentialAction;
nullable?: true;
nullable?: boolean;
};

@@ -123,3 +123,3 @@ }, {

unsupported: string;
nullable?: true;
nullable?: boolean;
};

@@ -126,0 +126,0 @@ };

{
"name": "@cwqt/refract",
"version": "1.3.6",
"version": "1.3.7",
"description": "Generate Prisma from TypeScript",

@@ -14,2 +14,3 @@ "author": "cwqt",

"test": "jest",
"test:update": "jest --updateSnapshot",
"build": "tsc"

@@ -16,0 +17,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc