tap-parser
Advanced tools
Comparing version 16.0.1 to 17.0.0
@@ -1,4 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -5,0 +2,0 @@ import { FinalResults } from './final-results.js'; |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Static `parse()` and `stringify()` methods | ||
*/ | ||
import etoa from 'events-to-array'; | ||
type EventLog = ReturnType<typeof etoa>; | ||
import { ParserOptions } from './index.js'; | ||
@@ -5,7 +10,7 @@ /** | ||
*/ | ||
export declare const parse: (str: string, options: ParserOptions) => [event: string, ...data: any[]][]; | ||
export declare const parse: (str: string, options: ParserOptions) => EventLog; | ||
/** | ||
* Turn an EventLog from {@link tap-parser!statics.parse} into a TAP string | ||
*/ | ||
export declare const stringify: (msg: [event: string, ...data: any[]][], { flat, indent, id }: { | ||
export declare const stringify: (msg: EventLog, { flat, indent, id }: { | ||
flat?: boolean | undefined; | ||
@@ -18,2 +23,3 @@ indent?: string | undefined; | ||
}) => string; | ||
export {}; | ||
//# sourceMappingURL=statics.d.ts.map |
@@ -1,4 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { EventEmitter } from 'events'; | ||
@@ -5,0 +2,0 @@ import { FinalResults } from './final-results.js'; |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Static `parse()` and `stringify()` methods | ||
*/ | ||
import etoa from 'events-to-array'; | ||
type EventLog = ReturnType<typeof etoa>; | ||
import { ParserOptions } from './index.js'; | ||
@@ -5,7 +10,7 @@ /** | ||
*/ | ||
export declare const parse: (str: string, options: ParserOptions) => [event: string, ...data: any[]][]; | ||
export declare const parse: (str: string, options: ParserOptions) => EventLog; | ||
/** | ||
* Turn an EventLog from {@link tap-parser!statics.parse} into a TAP string | ||
*/ | ||
export declare const stringify: (msg: [event: string, ...data: any[]][], { flat, indent, id }: { | ||
export declare const stringify: (msg: EventLog, { flat, indent, id }: { | ||
flat?: boolean | undefined; | ||
@@ -18,2 +23,3 @@ indent?: string | undefined; | ||
}) => string; | ||
export {}; | ||
//# sourceMappingURL=statics.d.ts.map |
{ | ||
"name": "tap-parser", | ||
"version": "16.0.1", | ||
"version": "17.0.0", | ||
"description": "parse the test anything protocol", | ||
@@ -22,2 +22,3 @@ "tshy": { | ||
"import": { | ||
"source": "./src/index.ts", | ||
"types": "./dist/esm/index.d.ts", | ||
@@ -27,2 +28,3 @@ "default": "./dist/esm/index.js" | ||
"require": { | ||
"source": "./src/index.ts", | ||
"types": "./dist/commonjs/index.d.ts", | ||
@@ -49,3 +51,3 @@ "default": "./dist/commonjs/index.js" | ||
"events-to-array": "^2.0.3", | ||
"tap-yaml": "2.2.2" | ||
"tap-yaml": "3.0.0" | ||
}, | ||
@@ -64,9 +66,9 @@ "tap": { | ||
], | ||
"engines": { | ||
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/tapjs/tapjs.git" | ||
}, | ||
"engines": { | ||
"node": ">= 18.6.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
315951
3345
+ Addedtap-yaml@3.0.0(transitive)
- Removedtap-yaml@2.2.2(transitive)
Updatedtap-yaml@3.0.0