Comparing version 2.0.0-preview024 to 2.0.0-preview025
120
package.json
{ | ||
"name": "prisma2", | ||
"version": "2.0.0-preview024", | ||
"main": "build/index.js", | ||
"repository": "git@github.com:prisma/prisma2-cli.git", | ||
"author": "Tim Suchanek <suchanek@prisma.io>", | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"files": [ | ||
"build", | ||
"download-build", | ||
"runtime/*.js", | ||
"runtime/*.d.ts", | ||
"runtime/utils", | ||
"runtime/dist", | ||
"prisma-client" | ||
], | ||
"pkg": { | ||
"assets": [ | ||
"build/**/*", | ||
"runtime/**/*", | ||
"prisma-client/**/*", | ||
"download-build/**/*", | ||
"query-engine*", | ||
"migration-engine*", | ||
"introspection-engine*" | ||
] | ||
}, | ||
"bin": "build/index.js", | ||
"prisma": { | ||
"version": "377df4fe30aa992f13f1ba152cf83d5770bdbc85" | ||
}, | ||
"devDependencies": { | ||
"@prisma/ci-info": "^2.1.1", | ||
"@prisma/cli": "2.0.0-preview024", | ||
"@prisma/client": "2.0.0-preview024", | ||
"@prisma/fetch-engine": "2.0.0-preview024", | ||
"@prisma/generator-helper": "2.0.0-preview024", | ||
"@prisma/introspection": "2.0.0-preview024", | ||
"@prisma/migrate": "2.0.0-preview024", | ||
"@prisma/sdk": "2.0.0-preview024", | ||
"@prisma/studio": "0.206.0", | ||
"@prisma/studio-server": "0.206.0", | ||
"@prisma/studio-transports": "0.206.0", | ||
"@prisma/studio-types": "0.206.0", | ||
"@sentry/node": "5.12.4", | ||
"@types/debug": "^4.1.5", | ||
"@types/mocha": "^5.2.7", | ||
"@types/mysql2": "github:types/mysql2", | ||
"@types/sqlite3": "^3.1.6", | ||
"@zeit/ncc": "0.21.0", | ||
"checkpoint-client": "^1.0.7", | ||
"dotenv": "^8.2.0", | ||
"jest": "^25.1.0", | ||
"log-update": "^3.3.0", | ||
"make-dir": "^3.0.0", | ||
"mocha": "6.2.2", | ||
"mysql2": "^2.1.0", | ||
"mz": "2.7.0", | ||
"open": "^7.0.0", | ||
"pg": "^7.14.0", | ||
"pkg": "^4.4.0", | ||
"pkg-up": "3.1.0", | ||
"resolve-pkg": "^2.0.0", | ||
"rimraf": "^3.0.0", | ||
"serialize-error": "^5.0.0", | ||
"snap-shot-it": "^7.9.2", | ||
"sqlite-async": "^1.0.12", | ||
"sqlite3": "^4.1.1", | ||
"strip-ansi": "^6.0.0", | ||
"strip-indent": "3.0.0", | ||
"terminal-link": "^2.0.0", | ||
"tmp": "^0.1.0", | ||
"ts-jest": "^25.2.1", | ||
"ts-mocha": "6.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"scripts": { | ||
"test-sqlite": "./node_modules/.bin/mocha src/__tests__/integrate.sqlite.test.ts --require ts-mocha src/__tests__/integrate.sqlite.test.ts --timeout 10s", | ||
"test-mysql": "./node_modules/.bin/mocha src/__tests__/integrate.mysql.test.ts --require ts-mocha src/__tests__/integrate.mysql.test.ts --timeout 10s", | ||
"test-postgresql": "./node_modules/.bin/mocha src/__tests__/integrate.postgresql.test.ts --require ts-mocha src/__tests__/integrate.postgresql.test.ts --timeout 10s", | ||
"test": "./fixtures/test.sh && pnpm run test-postgresql && pnpm run test-sqlite && pnpm run test-mysql", | ||
"test:debug": "./node_modules/.bin/mocha --inspect-brk src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s", | ||
"test:mocha": "./node_modules/.bin/mocha src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s", | ||
"test:update-snapshots": "SNAPSHOT_UPDATE=1 ./node_modules/.bin/mocha src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s", | ||
"install": "node download-build/index.js", | ||
"download": "rm -f download-done && node scripts/updateTag.js && node scripts/download.js || echo \"\"", | ||
"tsc": "tsc -d && cp src/capture-worker.js dist/capture-worker.js && bash scripts/copy-runtime-dist.sh", | ||
"ncc": "ncc build dist/bin.js -o build -m", | ||
"ncc:download": "rm -rf download-build && ncc build scripts/download.js -o download-build --minify", | ||
"build": "pnpm run tsc && pnpm run ncc:download && rm -rf build && pnpm run ncc && sed -i.bak 's/env ts-node/env node/g' 'build/index.js' && rm -f build/index.js.bak && bash scripts/copy-runtime.sh", | ||
"pkg": "pkg . -o pkg-build" | ||
} | ||
"name": "prisma2", | ||
"version": "2.0.0-preview025", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"preinstall": "node index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/prisma/prisma2.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/prisma/prisma2/issues" | ||
}, | ||
"homepage": "https://github.com/prisma/prisma2#readme", | ||
"np": { | ||
"yarn": false, | ||
"anyBranch": true, | ||
"cleanup": false | ||
}, | ||
"devDependencies": { | ||
"np": "^6.2.0" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
} | ||
} |
@@ -1,55 +0,21 @@ | ||
# Prisma 2 CLI | ||
# ~~prisma2~~ => @prisma/cli | ||
Learn more about Prisma 2 in the [docs](https://github.com/prisma/prisma2). | ||
The package `prisma2` has been renamed to [`@prisma/cli`](https://www.npmjs.com/package/@prisma/cli) | ||
## Getting started | ||
Please uninstall `prisma2` from your project or globally. | ||
Then install [`@prisma/cli`](https://www.npmjs.com/package/@prisma/cli) to continue using **Prisma 2.0**: | ||
Check out the [**"Getting Started"-guide**](https://github.com/prisma/prisma2/blob/master/docs/getting-started.md) to get started with Prisma 2. | ||
## Installation | ||
The Prisma 2 CLI currently requires [Node.js 10](https://nodejs.org/en/download/releases/) (or higher). | ||
### npm | ||
``` | ||
npm install -g prisma2 | ||
``` | ||
# Uninstall old CLI | ||
npm uninstall prisma2 | ||
### Yarn | ||
# Install new CLI | ||
npm install @prisma/cli --save-dev | ||
# Invoke via npx | ||
npx prisma2 --help | ||
``` | ||
yarn global add prisma2 | ||
``` | ||
## General | ||
### `prisma2 init` | ||
Sets up a `prisma/schema.prisma` file in the current directory. | ||
### `prisma2 generate` | ||
Invokes the generators specified in the Prisma project file. | ||
### `prisma2 generate --watch` | ||
Watches the Prisma project file and runs `generate` when the file changes. | ||
### `prisma2 introspect` | ||
Introspects the database and generates a data model from it. | ||
## Migrate | ||
### `prisma2 migrate save --experimental` | ||
Creates a new migration folder based on current data model changes. | ||
### `prisma2 migrate up --experimental` | ||
Apply any migrations that have not been applied yet. | ||
### `prisma2 migrate down --experimental` | ||
Undo migrations. | ||
Learn more here: | ||
https://pris.ly/preview025 | ||
https://www.npmjs.com/package/@prisma/cli |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 5 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance 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 24 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
1
1
0
1
3701
4
1
38
21