Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "read", | ||
"version": "2.1.0", | ||
"main": "lib/read.js", | ||
"version": "3.0.0", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/read.d.ts", | ||
"default": "./dist/esm/read.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/read.d.ts", | ||
"default": "./dist/commonjs/read.js" | ||
} | ||
} | ||
}, | ||
"type": "module", | ||
"tshy": { | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./src/read.ts" | ||
} | ||
}, | ||
"dependencies": { | ||
"mute-stream": "~1.0.0" | ||
"mute-stream": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "4.13.0", | ||
"tap": "^16.3.0" | ||
"@npmcli/eslint-config": "^4.0.2", | ||
"@npmcli/template-oss": "4.20.0", | ||
"@types/mute-stream": "^0.0.4", | ||
"@types/tap": "^15.0.11", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"c8": "^8.0.1", | ||
"eslint-import-resolver-typescript": "^3.6.1", | ||
"tap": "^16.3.9", | ||
"ts-node": "^10.9.1", | ||
"tshy": "^1.8.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -24,25 +51,30 @@ "engines": { | ||
"scripts": { | ||
"test": "tap", | ||
"lint": "eslint \"**/*.js\"", | ||
"prepare": "tshy", | ||
"pretest": "npm run prepare", | ||
"presnap": "npm run prepare", | ||
"test": "c8 tap", | ||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", | ||
"postlint": "template-oss-check", | ||
"template-oss-apply": "template-oss-apply --force", | ||
"lintfix": "npm run lint -- --fix", | ||
"snap": "tap", | ||
"snap": "c8 tap", | ||
"posttest": "npm run lint" | ||
}, | ||
"files": [ | ||
"bin/", | ||
"lib/" | ||
], | ||
"templateOSS": { | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "4.13.0", | ||
"publish": "true" | ||
"version": "4.20.0", | ||
"publish": true, | ||
"typescript": true, | ||
"content": "./scripts/template-oss" | ||
}, | ||
"main": "./dist/commonjs/read.js", | ||
"types": "./dist/commonjs/read.d.ts", | ||
"tap": { | ||
"statements": 77, | ||
"branches": 75, | ||
"functions": 57, | ||
"lines": 78, | ||
"test-ignore": "fixtures/", | ||
"coverage": false, | ||
"node-arg": [ | ||
"--no-warnings", | ||
"--loader", | ||
"ts-node/esm" | ||
], | ||
"ts": false, | ||
"nyc-arg": [ | ||
@@ -49,0 +81,0 @@ "--exclude", |
@@ -11,5 +11,6 @@ ## read | ||
```javascript | ||
var read = require("read") | ||
const { read } = require('read') | ||
// or with ESM: import { read } from 'read' | ||
try { | ||
const result = await read(options, callback) | ||
const result = await read(options) | ||
} catch (er) { | ||
@@ -16,0 +17,0 @@ console.error(er) |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22823660
76
6468
41
Yes
11
1
Updatedmute-stream@^1.0.0