+7
-10
| { | ||
| "name": "vfile", | ||
| "version": "4.1.0", | ||
| "version": "4.1.1", | ||
| "description": "Virtual file format for text processing", | ||
@@ -51,8 +51,8 @@ "license": "MIT", | ||
| "nyc": "^15.0.0", | ||
| "prettier": "^1.0.0", | ||
| "remark-cli": "^7.0.0", | ||
| "remark-preset-wooorm": "^6.0.0", | ||
| "tape": "^4.0.0", | ||
| "prettier": "^2.0.0", | ||
| "remark-cli": "^8.0.0", | ||
| "remark-preset-wooorm": "^7.0.0", | ||
| "tape": "^5.0.0", | ||
| "tinyify": "^2.0.0", | ||
| "xo": "^0.27.0" | ||
| "xo": "^0.30.0" | ||
| }, | ||
@@ -87,9 +87,6 @@ "scripts": { | ||
| "ignores": [ | ||
| "types", | ||
| "vfile.js" | ||
| ], | ||
| "rules": { | ||
| "@typescript-eslint/explicit-function-return-type": "off", | ||
| "@typescript-eslint/member-ordering": "off", | ||
| "@typescript-eslint/no-empty-function": "off", | ||
| "@typescript-eslint/no-unused-vars": "off", | ||
| "unicorn/prefer-includes": "off", | ||
@@ -96,0 +93,0 @@ "unicorn/prefer-reflect-apply": "off" |
+2
-2
@@ -50,5 +50,5 @@ # [![vfile][]][unified] | ||
| <td width="20%" align="center"> | ||
| <a href="https://zeit.co"><img src="https://avatars1.githubusercontent.com/u/14985020?s=400&v=4"></a> | ||
| <a href="https://vercel.com"><img src="https://avatars1.githubusercontent.com/u/14985020?s=400&v=4"></a> | ||
| <br><br>🥇 | ||
| <a href="https://zeit.co">ZEIT</a> | ||
| <a href="https://vercel.com">Vercel</a> | ||
| </td> | ||
@@ -55,0 +55,0 @@ <td width="20%" align="center"> |
+26
-1
@@ -7,3 +7,28 @@ // TypeScript Version: 3.0 | ||
| declare namespace vfile { | ||
| type VFileContents = string | Buffer | ||
| /** | ||
| * Encodings supported by the buffer class | ||
| * | ||
| * @remarks | ||
| * This is a copy of the typing from Node, copied to prevent Node globals from being needed. | ||
| * Copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/a2bc1d868d81733a8969236655fa600bd3651a7b/types/node/globals.d.ts#L174 | ||
| */ | ||
| type BufferEncoding = | ||
| | 'ascii' | ||
| | 'utf8' | ||
| | 'utf-8' | ||
| | 'utf16le' | ||
| | 'ucs2' | ||
| | 'ucs-2' | ||
| | 'base64' | ||
| | 'latin1' | ||
| | 'binary' | ||
| | 'hex' | ||
| /** | ||
| * VFileContents can either be text, or a Buffer like structure | ||
| * @remarks | ||
| * This does not directly use type `Buffer, because it can also be used in a browser context. | ||
| * Instead this leverages `Uint8Array` which is the base type for `Buffer`, and a native JavaScript construct. | ||
| */ | ||
| type VFileContents = string | Uint8Array | ||
| type VFileCompatible = VFile | VFileOptions | VFileContents | ||
@@ -10,0 +35,0 @@ interface Settings { |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
27717
2.17%319
8.14%