Socket
Socket
Sign inDemoInstall

next-prisma-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.2.0-next.1

dist/__tests__/index.test.d.ts

6

dist/index.d.ts

@@ -1,2 +0,6 @@

export {};
/**
* Actual Next.js plugin
*/
declare const withPrismaPlugin: (nextConfig?: {}) => (phase: 'phase-export' | 'phase-production-build' | 'phase-production-server' | 'phase-development-server', thing: any) => any;
export default withPrismaPlugin;
//# sourceMappingURL=index.d.ts.map

15

dist/index.js

@@ -38,3 +38,3 @@ "use strict";

return function (phase, thing) {
if (phase === "phase-development-server") {
if (phase === 'phase-development-server') {
return Object.assign({}, nextConfig, {

@@ -45,13 +45,13 @@ webpack: function (config, options) {

var excludes = [new RegExp("node_modules(?!/(" + ignore.join('|') + ")(?!.*node_modules))")];
var ignored = config.watchOptions.ignored.filter(function (ignored) { return ignored !== '**/node_modules/**'; }).concat(excludes);
var ignored = config.watchOptions.ignored
.filter(function (ignored) { return ignored !== '**/node_modules/**'; })
.concat(excludes);
return Object.assign(config, {
plugins: __spreadArrays(config.plugins, [new webpack_plugin_1.default()]),
watchOptions: __assign(__assign({}, config.watchOptions), { ignored: ignored })
watchOptions: __assign(__assign({}, config.watchOptions), { ignored: ignored }),
});
}
},
});
}
var internalConfigObj = typeof nextConfig === "function"
? nextConfig(phase, thing)
: nextConfig;
var internalConfigObj = typeof nextConfig === 'function' ? nextConfig(phase, thing) : nextConfig;
return internalConfigObj;

@@ -61,2 +61,3 @@ };

module.exports = withPrismaPlugin;
exports.default = withPrismaPlugin;
//# sourceMappingURL=index.js.map
{
"name": "next-prisma-plugin",
"version": "0.1.1",
"version": "0.2.0-next.1",
"main": "dist/index.js",

@@ -33,3 +33,5 @@ "license": "MIT",

"build": "rimraf ./dist && tsc",
"stable": "dripip stable"
"stable": "dripip stable",
"test": "jest",
"test:watch": "jest --watch"
},

@@ -39,2 +41,3 @@ "dependencies": {},

"@prisma-labs/prettier-config": "0.1.0",
"@types/jest": "^26.0.15",
"@types/webpack": "4.41.22",

@@ -44,5 +47,7 @@ "dripip": "0.10.0",

"eslint-config-prettier": "6.12.0",
"jest": "^26.6.0",
"prettier": "2.1.2",
"prettier-eslint": "11.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.1",
"typescript": "4.0.3",

@@ -49,0 +54,0 @@ "webpack": "4.44.2"

@@ -1,3 +0,4 @@

# NextJS Plugin for Prisma
# NextJS Plugin for Prisma (Very Experimental)
[![Here Be Dragons](http://img.shields.io/badge/%F0%9F%90%89-Here%20be%20Dragons-green?style=flat-square)](https://en.wikipedia.org/wiki/Here_be_dragons)
![npm](https://img.shields.io/npm/v/next-prisma-plugin?style=flat-square)

@@ -4,0 +5,0 @@ ![npm (tag)](https://img.shields.io/npm/v/next-prisma-plugin/next?style=flat-square)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc