@parcel/types-internal 2.12.1-dev.3186 → 2.12.1-dev.3187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +0 -6
- package/package.json +4 -4
- package/src/index.js +0 -8
package/lib/index.d.ts
CHANGED
@@ -2061,11 +2061,6 @@ export interface IDisposable {
|
|
2061
2061
|
export type AsyncSubscription = {
|
2062
2062
|
unsubscribe(): Promise<unknown>;
|
2063
2063
|
};
|
2064
|
-
export type MeasurementOptions = {
|
2065
|
-
args?: Record<string, unknown>;
|
2066
|
-
categories: string[];
|
2067
|
-
name: string;
|
2068
|
-
};
|
2069
2064
|
export interface PluginTracer {
|
2070
2065
|
/** Returns whether the tracer is enabled. Use this to avoid possibly expensive calculations
|
2071
2066
|
* of arguments to `createMeasurement` - for example if you need to determine the entry of a bundle to pass it
|
@@ -2088,5 +2083,4 @@ export interface PluginTracer {
|
|
2088
2083
|
* For example: <code>tracer.createMeasurement('compiled', 'find_css', path.relative(options.projecRoot, asset.filePath), { meta: 'data' })</code>
|
2089
2084
|
*/
|
2090
2085
|
createMeasurement(name: string, category?: string, argumentName?: string, otherArgs?: Record<string, unknown>): TraceMeasurement | null;
|
2091
|
-
measure<T>(options: MeasurementOptions, fn: () => T): T;
|
2092
2086
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/types-internal",
|
3
|
-
"version": "2.12.1-dev.
|
3
|
+
"version": "2.12.1-dev.3187+f88048a4b",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -16,10 +16,10 @@
|
|
16
16
|
"check-ts": "tsc --noEmit lib/index.d.ts"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@parcel/diagnostic": "2.0.0-dev.
|
20
|
-
"@parcel/feature-flags": "2.12.1-dev.
|
19
|
+
"@parcel/diagnostic": "2.0.0-dev.1564+f88048a4b",
|
20
|
+
"@parcel/feature-flags": "2.12.1-dev.3187+f88048a4b",
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
22
22
|
"utility-types": "^3.10.0"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "f88048a4b5e7b0d65ea484365b568ad423a8bf45"
|
25
25
|
}
|
package/src/index.js
CHANGED
@@ -2066,12 +2066,6 @@ export type AsyncSubscription = {|
|
|
2066
2066
|
unsubscribe(): Promise<mixed>,
|
2067
2067
|
|};
|
2068
2068
|
|
2069
|
-
export type MeasurementOptions = {|
|
2070
|
-
args?: {[key: string]: mixed},
|
2071
|
-
categories: string[],
|
2072
|
-
name: string,
|
2073
|
-
|};
|
2074
|
-
|
2075
2069
|
export interface PluginTracer {
|
2076
2070
|
/** Returns whether the tracer is enabled. Use this to avoid possibly expensive calculations
|
2077
2071
|
* of arguments to `createMeasurement` - for example if you need to determine the entry of a bundle to pass it
|
@@ -2099,6 +2093,4 @@ export interface PluginTracer {
|
|
2099
2093
|
argumentName?: string,
|
2100
2094
|
otherArgs?: {[key: string]: mixed},
|
2101
2095
|
): TraceMeasurement | null;
|
2102
|
-
|
2103
|
-
measure<T>(options: MeasurementOptions, fn: () => T): T;
|
2104
2096
|
}
|