Comparing version 1.6.0 to 2.0.0
{ | ||
"name": "runscript", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"description": "Run script easy!", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "npm run lint && egg-bin test", | ||
"test-cov": "egg-bin cov", | ||
"lint": "eslint index.js test --fix", | ||
"ci": "npm run lint && npm run test-cov", | ||
"contributor": "git-contributor" | ||
"lint": "eslint --cache src test --ext .ts", | ||
"pretest": "npm run prepublishOnly", | ||
"test": "npm run lint -- --fix && egg-bin test", | ||
"test:node14": "egg-bin test", | ||
"preci": "npm run prepublishOnly", | ||
"ci": "npm run lint && egg-bin cov && attw --pack", | ||
"prepublishOnly": "tshy && tshy-after" | ||
}, | ||
"dependencies": { | ||
"is-type-of": "^1.1.0" | ||
"is-type-of": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^12.0.8", | ||
"@arethetypeswrong/cli": "^0.15.3", | ||
"@eggjs/tsconfig": "1", | ||
"@types/mocha": "10", | ||
"@types/node": "22", | ||
"autod": "^3.1.2", | ||
"egg-bin": "^1.11.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-egg": "^6.0.0", | ||
"git-contributor": "^2.1.5", | ||
"typescript": "^3.9.3" | ||
"egg-bin": "6", | ||
"eslint": "8", | ||
"eslint-config-egg": "14", | ||
"tshy": "2", | ||
"tshy-after": "1", | ||
"typescript": "5" | ||
}, | ||
@@ -32,4 +33,3 @@ "homepage": "https://github.com/node-modules/runscript", | ||
"type": "git", | ||
"url": "git://github.com/node-modules/runscript.git", | ||
"web": "https://github.com/node-modules/runscript" | ||
"url": "git://github.com/node-modules/runscript.git" | ||
}, | ||
@@ -45,6 +45,33 @@ "bugs": { | ||
"engines": { | ||
"node": ">=4.2.3" | ||
"node": ">=16.0.0" | ||
}, | ||
"author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"type": "module", | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"types": "./dist/commonjs/index.d.ts", | ||
"main": "./dist/commonjs/index.js", | ||
"module": "./dist/esm/index.js" | ||
} |
@@ -1,3 +0,2 @@ | ||
runscript | ||
======= | ||
# runscript | ||
@@ -25,3 +24,3 @@ 📢📢📢📢📢 You should use [execa](https://github.com/sindresorhus/execa) instead. 📢📢📢📢 | ||
```bash | ||
$ npm install runscript | ||
npm install runscript | ||
``` | ||
@@ -32,3 +31,3 @@ | ||
```js | ||
const runScript = require('runscript'); | ||
const { runScript } = require('runscript'); | ||
@@ -49,3 +48,3 @@ runScript('node -v', { stdio: 'pipe' }) | ||
```js | ||
const runScript = require('runscript'); | ||
const { runScript } = require('runscript'); | ||
@@ -65,12 +64,6 @@ runScript('node user-script.js', { stdio: 'pipe' }, { timeout: 10000 }) | ||
<!-- GITCONTRIBUTOR_START --> | ||
## Contributors | ||
|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/8433821?v=4" width="100px;"/><br/><sub><b>lusyn</b></sub>](https://github.com/lusyn)<br/>|[<img src="https://avatars.githubusercontent.com/u/9939767?v=4" width="100px;"/><br/><sub><b>walkthunder</b></sub>](https://github.com/walkthunder)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/1622697?v=4" width="100px;"/><br/><sub><b>ottomao</b></sub>](https://github.com/ottomao)<br/>|[<img src="https://avatars.githubusercontent.com/u/227713?v=4" width="100px;"/><br/><sub><b>atian25</b></sub>](https://github.com/atian25)<br/>| | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
[<img src="https://avatars.githubusercontent.com/u/47808321?v=4" width="100px;"/><br/><sub><b>akitaSummer</b></sub>](https://github.com/akitaSummer)<br/>|[<img src="https://avatars.githubusercontent.com/in/17324?v=4" width="100px;"/><br/><sub><b>lgtm-com[bot]</b></sub>](https://github.com/apps/lgtm-com)<br/>|[<img src="https://avatars.githubusercontent.com/u/32174276?v=4" width="100px;"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|[<img src="https://avatars.githubusercontent.com/u/5856440?v=4" width="100px;"/><br/><sub><b>whxaxes</b></sub>](https://github.com/whxaxes)<br/> | ||
[![Contributors](https://contrib.rocks/image?repo=node-modules/runscript)](https://github.com/node-modules/runscript/graphs/contributors) | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Jan 11 2024 16:25:27 GMT+0800`. | ||
<!-- GITCONTRIBUTOR_END --> | ||
Made with [contributors-img](https://contrib.rocks). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance 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
41527
11
591
1
Yes
11
66
4
+ Addedis-type-of@2.2.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedis-class-hotfix@0.0.6(transitive)
- Removedis-type-of@1.4.0(transitive)
- Removedisstream@0.1.2(transitive)
Updatedis-type-of@^2.2.0