prisma-client-lib-browser

1.0.12 • Public • Published

Making Prisma Client on Browser

Change on node_modules/prettier/index.js

  1. import { inspect } from 'util'; //line: 2 add this to top of file

  2. // var utilInspect = eval(require('util').inspect); //line: 40636 change with var utilInspect = inspect;

  3. // var prettier = src; // module.exports = prettier; //line: 42448 change with export const prettier = src;

Change on node_modules/prisma-client-lib/dist/Client.js

  1. var token = secret jsonwebtoken_1.sign({}, secret) : undefined; //line: 167 change this with var token = secret //? jsonwebtoken_1.sign({}, secret) : undefined;
  2. var WS = require("ws"); Change ws with isomorphic-ws on line: 73 with token var WS = require("isomorphic-ws");

Change on prisma-client/index.js

  1. Change secret on line: 85 with token
  2. prisma-client-lib change with prisma-client-lib-browser/src/prisma-client-lib

Readme

Keywords

none

Package Sidebar

Install

npm i prisma-client-lib-browser

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

1.09 MB

Total Files

5

Last publish

Collaborators

  • creativescienceworker