Skip to content

Commit

Permalink
1.0.0-beta.53
Browse files Browse the repository at this point in the history
  • Loading branch information
maoosi committed Apr 26, 2021
1 parent bcf326e commit f63a951
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 53 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ app.registerCustomResolvers({ incrementPostsViews })
### Non-breaking

- Feat: For contributors, running `yarn create prisma-appsync-app . --test` now also creates a custom resolver for testing purpose.
- Fix: PNPM install not running `prisma generate` by default ([issues/11](https://github.com/maoosi/prisma-appsync/issues/11))

## Version 1.0.0-beta.52

Expand Down
5 changes: 3 additions & 2 deletions dist/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -316575,7 +316575,7 @@ var require_package2 = __commonJS2((exports2, module2) => {
module2.exports = {
name: "prisma-appsync",
description: "\u26A1 AppSync GraphQL API Generator for \u25ED Prisma 2, the next-gen ORM.",
version: "1.0.0-beta.52",
version: "1.0.0-beta.53",
bin: "./dist/generator.js",
repository: "git@github.com:maoosi/prisma-appsync.git",
author: "maoosi <hello@sylvainsimao.fr>",
Expand All @@ -316591,7 +316591,8 @@ var require_package2 = __commonJS2((exports2, module2) => {
"docs:build": "vuepress build docs",
test: "pnpm test:generate && jest test/ -e",
"test:generate": "pnpm build && prisma generate --schema=./test/schema.prisma",
prepare: "pnpm test"
prepare: "pnpm test",
postinstall: "prisma generate"
},
engines: {
node: ">=10",
Expand Down
4 changes: 2 additions & 2 deletions dist/prisma-appsync/_adapter.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RequestProps, PrivateOptions, AuthType, Operation } from './_types';
import { RequestProps, AdapterOptions, AuthType, Operation } from './_types';
export declare class PrismaAppSyncAdapter {
private customResolvers;
private debug;
Expand All @@ -8,7 +8,7 @@ export declare class PrismaAppSyncAdapter {
requestSetPaths: string[];
authIdentityType: AuthType;
authIdentityObj: any;
constructor(event: any, options?: PrivateOptions);
constructor(event: any, options: AdapterOptions);
private detectCallerIdentity;
private verifyIntegrity;
private parseRequest;
Expand Down
4 changes: 2 additions & 2 deletions dist/prisma-appsync/_resolver.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrivateOptions, RequestProps, AuthType, CaslRule } from './_types';
import { RequestProps, AuthType, CaslRule, ResolverOptions } from './_types';
export declare class PrismaAppSyncResolver {
private debug;
private authIdentity;
Expand All @@ -7,7 +7,7 @@ export declare class PrismaAppSyncResolver {
private afterResolveHook;
private prisma;
private authorizationRules;
constructor(options: PrivateOptions);
constructor(options: ResolverOptions);
private getRequestSetPaths;
private getAbilitySubjectEntity;
private isAuthorizedQuery;
Expand Down
17 changes: 7 additions & 10 deletions dist/prisma-appsync/_types.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { PrismaClient } from '@prisma/client';
import { AuthModes, Operations, AuthActions } from './_constants';
export declare type ExperimentalOptions = {
dateTimeFieldsRegex?: RegExp | boolean;
};
export declare type CustomPrismaClientOptions = {
connectionUrl: string;
debug?: boolean;
Expand All @@ -11,20 +8,20 @@ export declare type Options = {
connectionUrl: string;
debug?: boolean;
sanitize?: boolean;
experimental?: ExperimentalOptions;
};
export declare type PrivateOptions = {
customResolvers: any;
connectionUrl: string;
debug: boolean;
sanitize: boolean;
prisma: PrismaClient;
experimental?: ExperimentalOptions;
};
export declare type AdapterOptions = {
customResolvers?: any;
debug?: boolean;
sanitize?: boolean;
customResolvers: any;
debug: boolean;
};
export declare type ResolverOptions = {
prisma: PrismaClient;
customResolvers: any;
debug: boolean;
};
export declare type CustomResolverProps = {
args?: RequestProps;
Expand Down
1 change: 0 additions & 1 deletion dist/prisma-appsync/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export declare class PrismaAppSync {
allow(authorizationRule: AuthRule): void;
deny(authorizationRule: AuthRule): void;
private addAuthorizationRule;
private experimentalDateTimeFieldsRegex;
resolve(): Promise<any>;
beforeResolve(callbackFunc: Function): this;
afterResolve(callbackFunc: Function): this;
Expand Down
4 changes: 2 additions & 2 deletions dist/prisma-appsync/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "prisma-appsync",
"description": "⚡ AppSync GraphQL API Generator for ◭ Prisma 2, the next-gen ORM.",
"version": "1.0.0-beta.52",
"version": "1.0.0-beta.53",
"bin": "./dist/generator.js",
"repository": "git@github.com:maoosi/prisma-appsync.git",
"author": "maoosi <hello@sylvainsimao.fr>",
Expand Down
33 changes: 0 additions & 33 deletions test/experimental.test.ts

This file was deleted.

1 comment on commit f63a951

@vercel
Copy link

@vercel vercel bot commented on f63a951 Apr 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.