@testring/plugin-api
Advanced tools
@@ -5,2 +5,5 @@ "use strict"; | ||
| class TestWorkerAPI extends abstract_1.AbstractAPI { | ||
| beforeCompile(handler) { | ||
| this.registryWritePlugin("beforeCompile" /* beforeCompile */, handler); | ||
| } | ||
| compile(handler) { | ||
@@ -7,0 +10,0 @@ this.registryWritePlugin("compile" /* compile */, handler); |
+4
-4
| { | ||
| "name": "@testring/plugin-api", | ||
| "version": "0.4.6", | ||
| "version": "0.4.7", | ||
| "main": "./dist/index.js", | ||
@@ -13,6 +13,6 @@ "types": "./src/index.ts", | ||
| "dependencies": { | ||
| "@testring/logger": "0.4.6", | ||
| "@testring/types": "0.4.6", | ||
| "@testring/utils": "0.4.6" | ||
| "@testring/logger": "0.4.7", | ||
| "@testring/types": "0.4.7", | ||
| "@testring/utils": "0.4.7" | ||
| } | ||
| } |
@@ -5,2 +5,6 @@ import { TestWorkerPlugin } from '@testring/types'; | ||
| export class TestWorkerAPI extends AbstractAPI { | ||
| beforeCompile(handler: (paths: Array<string>, filenameEntry: string, codeEntry: string) => Promise<Array<string>>) { | ||
| this.registryWritePlugin(TestWorkerPlugin.beforeCompile, handler); | ||
| } | ||
| compile(handler: (code: string, filename: string) => Promise<string>) { | ||
@@ -7,0 +11,0 @@ this.registryWritePlugin(TestWorkerPlugin.compile, handler); |
14701
2.21%362
1.69%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated