@utoo/pack 1.4.5-alpha.3 → 1.4.5-alpha.4
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 +4 -5
- package/cjs/binding.js +5 -5
- package/esm/binding.d.ts +4 -5
- package/esm/binding.js +5 -5
- package/package.json +9 -9
package/cjs/binding.d.ts
CHANGED
|
@@ -9,11 +9,6 @@ export declare class ExternalObject<T> {
|
|
|
9
9
|
[K: symbol]: T
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
export type Lockfile = { __napiType: "Lockfile" }
|
|
13
|
-
export declare function lockfileTryAcquireSync(path: string, content?: string | undefined | null): Lockfile | null
|
|
14
|
-
export declare function lockfileTryAcquire(path: string, content?: string | undefined | null): Promise<Lockfile | null>
|
|
15
|
-
export declare function lockfileUnlockSync(lockfile: Lockfile): void
|
|
16
|
-
export declare function lockfileUnlock(lockfile: Lockfile): Promise<void>
|
|
17
12
|
export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
|
|
18
13
|
export declare function workerCreated(workerId: number): void
|
|
19
14
|
export interface NapiWorkerCreation {
|
|
@@ -33,6 +28,10 @@ export interface NapiTaskMessage {
|
|
|
33
28
|
}
|
|
34
29
|
export declare function recvTaskMessageInWorker(workerId: number): Promise<NapiTaskMessage>
|
|
35
30
|
export declare function sendTaskMessage(message: NapiTaskMessage): Promise<void>
|
|
31
|
+
export declare function lockfileTryAcquireSync(path: string, content?: string | undefined | null): { __napiType: "Lockfile" } | null
|
|
32
|
+
export declare function lockfileTryAcquire(path: string, content?: string | undefined | null): Promise<{ __napiType: "Lockfile" } | null>
|
|
33
|
+
export declare function lockfileUnlockSync(lockfile: { __napiType: "Lockfile" }): void
|
|
34
|
+
export declare function lockfileUnlock(lockfile: { __napiType: "Lockfile" }): Promise<void>
|
|
36
35
|
export interface NapiEndpointConfig {
|
|
37
36
|
|
|
38
37
|
}
|
package/cjs/binding.js
CHANGED
|
@@ -319,15 +319,15 @@ if (!nativeBinding) {
|
|
|
319
319
|
}
|
|
320
320
|
throw new Error(`Failed to load native binding`);
|
|
321
321
|
}
|
|
322
|
-
const {
|
|
323
|
-
module.exports.lockfileTryAcquireSync = lockfileTryAcquireSync;
|
|
324
|
-
module.exports.lockfileTryAcquire = lockfileTryAcquire;
|
|
325
|
-
module.exports.lockfileUnlockSync = lockfileUnlockSync;
|
|
326
|
-
module.exports.lockfileUnlock = lockfileUnlock;
|
|
322
|
+
const { registerWorkerScheduler, workerCreated, recvTaskMessageInWorker, sendTaskMessage, lockfileTryAcquireSync, lockfileTryAcquire, lockfileUnlockSync, lockfileUnlock, endpointWriteToDisk, endpointServerChangedSubscribe, endpointClientChangedSubscribe, projectNew, projectUpdate, projectOnExit, projectShutdown, projectWriteAllEntrypointsToDisk, projectEntrypointsSubscribe, projectHmrEvents, projectHmrIdentifiersSubscribe, projectUpdateInfoSubscribe, projectTraceSource, projectGetSourceForAsset, projectGetSourceMap, projectGetSourceMapSync, rootTaskDispose, initCustomTraceSubscriber, teardownTraceSubscriber } = nativeBinding;
|
|
327
323
|
module.exports.registerWorkerScheduler = registerWorkerScheduler;
|
|
328
324
|
module.exports.workerCreated = workerCreated;
|
|
329
325
|
module.exports.recvTaskMessageInWorker = recvTaskMessageInWorker;
|
|
330
326
|
module.exports.sendTaskMessage = sendTaskMessage;
|
|
327
|
+
module.exports.lockfileTryAcquireSync = lockfileTryAcquireSync;
|
|
328
|
+
module.exports.lockfileTryAcquire = lockfileTryAcquire;
|
|
329
|
+
module.exports.lockfileUnlockSync = lockfileUnlockSync;
|
|
330
|
+
module.exports.lockfileUnlock = lockfileUnlock;
|
|
331
331
|
module.exports.endpointWriteToDisk = endpointWriteToDisk;
|
|
332
332
|
module.exports.endpointServerChangedSubscribe = endpointServerChangedSubscribe;
|
|
333
333
|
module.exports.endpointClientChangedSubscribe = endpointClientChangedSubscribe;
|
package/esm/binding.d.ts
CHANGED
|
@@ -9,11 +9,6 @@ export declare class ExternalObject<T> {
|
|
|
9
9
|
[K: symbol]: T
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
export type Lockfile = { __napiType: "Lockfile" }
|
|
13
|
-
export declare function lockfileTryAcquireSync(path: string, content?: string | undefined | null): Lockfile | null
|
|
14
|
-
export declare function lockfileTryAcquire(path: string, content?: string | undefined | null): Promise<Lockfile | null>
|
|
15
|
-
export declare function lockfileUnlockSync(lockfile: Lockfile): void
|
|
16
|
-
export declare function lockfileUnlock(lockfile: Lockfile): Promise<void>
|
|
17
12
|
export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
|
|
18
13
|
export declare function workerCreated(workerId: number): void
|
|
19
14
|
export interface NapiWorkerCreation {
|
|
@@ -33,6 +28,10 @@ export interface NapiTaskMessage {
|
|
|
33
28
|
}
|
|
34
29
|
export declare function recvTaskMessageInWorker(workerId: number): Promise<NapiTaskMessage>
|
|
35
30
|
export declare function sendTaskMessage(message: NapiTaskMessage): Promise<void>
|
|
31
|
+
export declare function lockfileTryAcquireSync(path: string, content?: string | undefined | null): { __napiType: "Lockfile" } | null
|
|
32
|
+
export declare function lockfileTryAcquire(path: string, content?: string | undefined | null): Promise<{ __napiType: "Lockfile" } | null>
|
|
33
|
+
export declare function lockfileUnlockSync(lockfile: { __napiType: "Lockfile" }): void
|
|
34
|
+
export declare function lockfileUnlock(lockfile: { __napiType: "Lockfile" }): Promise<void>
|
|
36
35
|
export interface NapiEndpointConfig {
|
|
37
36
|
|
|
38
37
|
}
|
package/esm/binding.js
CHANGED
|
@@ -319,15 +319,15 @@ if (!nativeBinding) {
|
|
|
319
319
|
}
|
|
320
320
|
throw new Error(`Failed to load native binding`);
|
|
321
321
|
}
|
|
322
|
-
const {
|
|
323
|
-
module.exports.lockfileTryAcquireSync = lockfileTryAcquireSync;
|
|
324
|
-
module.exports.lockfileTryAcquire = lockfileTryAcquire;
|
|
325
|
-
module.exports.lockfileUnlockSync = lockfileUnlockSync;
|
|
326
|
-
module.exports.lockfileUnlock = lockfileUnlock;
|
|
322
|
+
const { registerWorkerScheduler, workerCreated, recvTaskMessageInWorker, sendTaskMessage, lockfileTryAcquireSync, lockfileTryAcquire, lockfileUnlockSync, lockfileUnlock, endpointWriteToDisk, endpointServerChangedSubscribe, endpointClientChangedSubscribe, projectNew, projectUpdate, projectOnExit, projectShutdown, projectWriteAllEntrypointsToDisk, projectEntrypointsSubscribe, projectHmrEvents, projectHmrIdentifiersSubscribe, projectUpdateInfoSubscribe, projectTraceSource, projectGetSourceForAsset, projectGetSourceMap, projectGetSourceMapSync, rootTaskDispose, initCustomTraceSubscriber, teardownTraceSubscriber } = nativeBinding;
|
|
327
323
|
module.exports.registerWorkerScheduler = registerWorkerScheduler;
|
|
328
324
|
module.exports.workerCreated = workerCreated;
|
|
329
325
|
module.exports.recvTaskMessageInWorker = recvTaskMessageInWorker;
|
|
330
326
|
module.exports.sendTaskMessage = sendTaskMessage;
|
|
327
|
+
module.exports.lockfileTryAcquireSync = lockfileTryAcquireSync;
|
|
328
|
+
module.exports.lockfileTryAcquire = lockfileTryAcquire;
|
|
329
|
+
module.exports.lockfileUnlockSync = lockfileUnlockSync;
|
|
330
|
+
module.exports.lockfileUnlock = lockfileUnlock;
|
|
331
331
|
module.exports.endpointWriteToDisk = endpointWriteToDisk;
|
|
332
332
|
module.exports.endpointServerChangedSubscribe = endpointServerChangedSubscribe;
|
|
333
333
|
module.exports.endpointClientChangedSubscribe = endpointClientChangedSubscribe;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.4.5-alpha.
|
|
3
|
+
"version": "1.4.5-alpha.4",
|
|
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.4.5-alpha.
|
|
44
|
+
"@utoo/pack-shared": "1.4.5-alpha.4",
|
|
45
45
|
"domparser-rs": "^0.0.7",
|
|
46
46
|
"find-up": "4.1.0",
|
|
47
47
|
"get-port": "5.1.1",
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
},
|
|
93
93
|
"repository": "git@github.com:utooland/utoo.git",
|
|
94
94
|
"optionalDependencies": {
|
|
95
|
-
"@utoo/pack-darwin-arm64": "1.4.5-alpha.
|
|
96
|
-
"@utoo/pack-darwin-x64": "1.4.5-alpha.
|
|
97
|
-
"@utoo/pack-linux-arm64-gnu": "1.4.5-alpha.
|
|
98
|
-
"@utoo/pack-linux-arm64-musl": "1.4.5-alpha.
|
|
99
|
-
"@utoo/pack-linux-x64-gnu": "1.4.5-alpha.
|
|
100
|
-
"@utoo/pack-linux-x64-musl": "1.4.5-alpha.
|
|
101
|
-
"@utoo/pack-win32-x64-msvc": "1.4.5-alpha.
|
|
95
|
+
"@utoo/pack-darwin-arm64": "1.4.5-alpha.4",
|
|
96
|
+
"@utoo/pack-darwin-x64": "1.4.5-alpha.4",
|
|
97
|
+
"@utoo/pack-linux-arm64-gnu": "1.4.5-alpha.4",
|
|
98
|
+
"@utoo/pack-linux-arm64-musl": "1.4.5-alpha.4",
|
|
99
|
+
"@utoo/pack-linux-x64-gnu": "1.4.5-alpha.4",
|
|
100
|
+
"@utoo/pack-linux-x64-musl": "1.4.5-alpha.4",
|
|
101
|
+
"@utoo/pack-win32-x64-msvc": "1.4.5-alpha.4"
|
|
102
102
|
}
|
|
103
103
|
}
|