code-excerpt
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "code-excerpt", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Extract code excerpts", | ||
@@ -12,20 +12,33 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"engines": { | ||
"node": ">=10" | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
"scripts": { | ||
"test": "tsd && xo && ava" | ||
"build": "tsc", | ||
"dev": "tsc --watch", | ||
"prepare": "npm run build", | ||
"pretest": "npm run build", | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
"dist" | ||
], | ||
"dependencies": { | ||
"convert-to-spaces": "^1.0.1" | ||
"convert-to-spaces": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.9.0", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.32.0" | ||
} | ||
"@sindresorhus/tsconfig": "^2.0.0", | ||
"@vdemedes/prettier-config": "^2.0.1", | ||
"ava": "^4.0.1", | ||
"prettier": "^2.5.1", | ||
"typescript": "^4.5.5", | ||
"xo": "^0.47.0" | ||
}, | ||
"xo": { | ||
"prettier": true | ||
}, | ||
"prettier": "@vdemedes/prettier-config" | ||
} |
@@ -14,3 +14,3 @@ # code-excerpt ![test](https://github.com/vadimdemedes/code-excerpt/workflows/test/badge.svg) | ||
```js | ||
const codeExcerpt = require('code-excerpt'); | ||
import codeExcerpt from 'code-excerpt'; | ||
@@ -17,0 +17,0 @@ const source = ` |
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
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
4215
Yes
6
36
+ Addedconvert-to-spaces@2.0.1(transitive)
- Removedconvert-to-spaces@1.0.2(transitive)
Updatedconvert-to-spaces@^2.0.1