@utoo/pack 1.3.0-alpha.2 → 1.3.1

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/cjs/binding.d.ts CHANGED
@@ -9,22 +9,6 @@ export declare class ExternalObject<T> {
9
9
  [K: symbol]: T
10
10
  }
11
11
  }
12
- /** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
13
- export interface TurbopackInternalErrorOpts {
14
- message: string
15
- anonymizedLocation?: string
16
- }
17
- export interface NapiTurbopackCallbacksJsObject {
18
- /**
19
- * Called when we've encountered a bug in Turbopack and not in the user's code. Constructs and
20
- * throws a `TurbopackInternalError` type. Logs to anonymized telemetry.
21
- *
22
- * As a result of the use of `ErrorStrategy::CalleeHandled`, the first argument is an error if
23
- * there's a runtime conversion error. This should never happen, but if it does, the function
24
- * can throw it instead.
25
- */
26
- throwTurbopackInternalError: (conversionError: Error | null, opts: TurbopackInternalErrorOpts) => never
27
- }
28
12
  export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
29
13
  export declare function workerCreated(workerId: number): void
30
14
  export interface NapiWorkerCreation {
@@ -199,6 +183,11 @@ export declare function projectTraceSource(project: { __napiType: "Project" }, f
199
183
  export declare function projectGetSourceForAsset(project: { __napiType: "Project" }, filePath: string): Promise<string | null>
200
184
  export declare function projectGetSourceMap(project: { __napiType: "Project" }, filePath: RcStr): Promise<string | null>
201
185
  export declare function projectGetSourceMapSync(project: { __napiType: "Project" }, filePath: RcStr): string | null
186
+ /** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
187
+ export interface TurbopackInternalErrorOpts {
188
+ message: string
189
+ anonymizedLocation?: string
190
+ }
202
191
  /**
203
192
  * A version of [`NapiTurbopackCallbacks`] that can accepted as an argument to a napi function.
204
193
  *
package/esm/binding.d.ts CHANGED
@@ -9,22 +9,6 @@ export declare class ExternalObject<T> {
9
9
  [K: symbol]: T
10
10
  }
11
11
  }
12
- /** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
13
- export interface TurbopackInternalErrorOpts {
14
- message: string
15
- anonymizedLocation?: string
16
- }
17
- export interface NapiTurbopackCallbacksJsObject {
18
- /**
19
- * Called when we've encountered a bug in Turbopack and not in the user's code. Constructs and
20
- * throws a `TurbopackInternalError` type. Logs to anonymized telemetry.
21
- *
22
- * As a result of the use of `ErrorStrategy::CalleeHandled`, the first argument is an error if
23
- * there's a runtime conversion error. This should never happen, but if it does, the function
24
- * can throw it instead.
25
- */
26
- throwTurbopackInternalError: (conversionError: Error | null, opts: TurbopackInternalErrorOpts) => never
27
- }
28
12
  export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
29
13
  export declare function workerCreated(workerId: number): void
30
14
  export interface NapiWorkerCreation {
@@ -199,6 +183,11 @@ export declare function projectTraceSource(project: { __napiType: "Project" }, f
199
183
  export declare function projectGetSourceForAsset(project: { __napiType: "Project" }, filePath: string): Promise<string | null>
200
184
  export declare function projectGetSourceMap(project: { __napiType: "Project" }, filePath: RcStr): Promise<string | null>
201
185
  export declare function projectGetSourceMapSync(project: { __napiType: "Project" }, filePath: RcStr): string | null
186
+ /** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
187
+ export interface TurbopackInternalErrorOpts {
188
+ message: string
189
+ anonymizedLocation?: string
190
+ }
202
191
  /**
203
192
  * A version of [`NapiTurbopackCallbacks`] that can accepted as an argument to a napi function.
204
193
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "1.3.0-alpha.2",
3
+ "version": "1.3.1",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@hono/node-server": "^1.19.11",
42
42
  "@hono/node-ws": "^1.3.0",
43
43
  "@swc/helpers": "0.5.15",
44
- "@utoo/pack-shared": "1.3.0-alpha.2",
44
+ "@utoo/pack-shared": "1.3.1",
45
45
  "@utoo/style-loader": "^1.0.0",
46
46
  "domparser-rs": "^0.0.7",
47
47
  "find-up": "4.1.0",
@@ -90,12 +90,12 @@
90
90
  },
91
91
  "repository": "git@github.com:utooland/utoo.git",
92
92
  "optionalDependencies": {
93
- "@utoo/pack-darwin-arm64": "1.3.0-alpha.2",
94
- "@utoo/pack-darwin-x64": "1.3.0-alpha.2",
95
- "@utoo/pack-linux-arm64-gnu": "1.3.0-alpha.2",
96
- "@utoo/pack-linux-arm64-musl": "1.3.0-alpha.2",
97
- "@utoo/pack-linux-x64-gnu": "1.3.0-alpha.2",
98
- "@utoo/pack-linux-x64-musl": "1.3.0-alpha.2",
99
- "@utoo/pack-win32-x64-msvc": "1.3.0-alpha.2"
93
+ "@utoo/pack-darwin-arm64": "1.3.1",
94
+ "@utoo/pack-darwin-x64": "1.3.1",
95
+ "@utoo/pack-linux-arm64-gnu": "1.3.1",
96
+ "@utoo/pack-linux-arm64-musl": "1.3.1",
97
+ "@utoo/pack-linux-x64-gnu": "1.3.1",
98
+ "@utoo/pack-linux-x64-musl": "1.3.1",
99
+ "@utoo/pack-win32-x64-msvc": "1.3.1"
100
100
  }
101
101
  }