@teambit/worker 0.0.1163 → 0.0.1165
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_worker-preview.js +1 -1
- package/artifacts/schema.json +15 -37
- package/dist/{preview-1712287228511.js → preview-1712805335812.js} +2 -2
- package/package.json +4 -4
- package/tsconfig.json +7 -1
- package/dist/expose.d.ts +0 -2
- package/dist/harmony-worker.d.ts +0 -34
- package/dist/index.d.ts +0 -6
- package/dist/node-endpoint.d.ts +0 -7
- package/dist/worker-manifest.d.ts +0 -6
- package/dist/worker.aspect.d.ts +0 -2
- package/dist/worker.composition.d.ts +0 -1
- package/dist/worker.main.runtime.d.ts +0 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.harmony/worker@0.0.
|
|
3
|
+
<testsuite name="teambit.harmony/worker@0.0.1165" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/worker-preview"]=t():e["teambit.harmony/worker-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/worker-preview"]=t():e["teambit.harmony/worker-preview"]=t()}(self,(()=>(()=>{"use strict";var e={2001:(e,t,o)=>{var r={id:"teambit.harmony/worker@0.0.1165",homepage:"https://bit.cloud/teambit/harmony/worker",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/worker.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>u,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(2001);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var c={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(s,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -74,8 +74,7 @@
|
|
|
74
74
|
"line": 11,
|
|
75
75
|
"character": 35
|
|
76
76
|
},
|
|
77
|
-
"name": "WorkerSlot"
|
|
78
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
77
|
+
"name": "WorkerSlot"
|
|
79
78
|
},
|
|
80
79
|
"isOptional": false,
|
|
81
80
|
"isSpread": false
|
|
@@ -95,8 +94,7 @@
|
|
|
95
94
|
"line": 11,
|
|
96
95
|
"character": 71
|
|
97
96
|
},
|
|
98
|
-
"name": "WorkerNameSlot"
|
|
99
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
97
|
+
"name": "WorkerNameSlot"
|
|
100
98
|
},
|
|
101
99
|
"isOptional": false,
|
|
102
100
|
"isSpread": false
|
|
@@ -323,7 +321,7 @@
|
|
|
323
321
|
"line": 53,
|
|
324
322
|
"character": 3
|
|
325
323
|
},
|
|
326
|
-
"signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<
|
|
324
|
+
"signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
|
|
327
325
|
"name": "slots",
|
|
328
326
|
"type": {
|
|
329
327
|
"__schema": "InferenceTypeSchema",
|
|
@@ -332,7 +330,7 @@
|
|
|
332
330
|
"line": 53,
|
|
333
331
|
"character": 3
|
|
334
332
|
},
|
|
335
|
-
"type": "(((registerFn: () => string) => SlotRegistry<
|
|
333
|
+
"type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
|
|
336
334
|
},
|
|
337
335
|
"isOptional": true,
|
|
338
336
|
"defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
|
|
@@ -431,8 +429,7 @@
|
|
|
431
429
|
"line": 57,
|
|
432
430
|
"character": 72
|
|
433
431
|
},
|
|
434
|
-
"name": "WorkerSlot"
|
|
435
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
432
|
+
"name": "WorkerSlot"
|
|
436
433
|
},
|
|
437
434
|
{
|
|
438
435
|
"__schema": "TypeRefSchema",
|
|
@@ -441,8 +438,7 @@
|
|
|
441
438
|
"line": 57,
|
|
442
439
|
"character": 84
|
|
443
440
|
},
|
|
444
|
-
"name": "WorkerNameSlot"
|
|
445
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
441
|
+
"name": "WorkerNameSlot"
|
|
446
442
|
}
|
|
447
443
|
]
|
|
448
444
|
},
|
|
@@ -631,8 +627,7 @@
|
|
|
631
627
|
"line": 56,
|
|
632
628
|
"character": 29
|
|
633
629
|
},
|
|
634
|
-
"name": "InitOptions"
|
|
635
|
-
"internalFilePath": "harmony-worker.ts"
|
|
630
|
+
"name": "InitOptions"
|
|
636
631
|
}
|
|
637
632
|
]
|
|
638
633
|
},
|
|
@@ -648,7 +643,6 @@
|
|
|
648
643
|
"character": 44
|
|
649
644
|
},
|
|
650
645
|
"name": "Remote",
|
|
651
|
-
"packageName": "comlink",
|
|
652
646
|
"typeArgs": [
|
|
653
647
|
{
|
|
654
648
|
"__schema": "TypeRefSchema",
|
|
@@ -845,11 +839,6 @@
|
|
|
845
839
|
"character": 26
|
|
846
840
|
},
|
|
847
841
|
"name": "SlotRegistry",
|
|
848
|
-
"componentId": {
|
|
849
|
-
"scope": "teambit.harmony",
|
|
850
|
-
"name": "harmony",
|
|
851
|
-
"version": "0.4.6"
|
|
852
|
-
},
|
|
853
842
|
"typeArgs": [
|
|
854
843
|
{
|
|
855
844
|
"__schema": "TypeRefSchema",
|
|
@@ -891,11 +880,6 @@
|
|
|
891
880
|
"character": 30
|
|
892
881
|
},
|
|
893
882
|
"name": "SlotRegistry",
|
|
894
|
-
"componentId": {
|
|
895
|
-
"scope": "teambit.harmony",
|
|
896
|
-
"name": "harmony",
|
|
897
|
-
"version": "0.4.6"
|
|
898
|
-
},
|
|
899
883
|
"typeArgs": [
|
|
900
884
|
{
|
|
901
885
|
"__schema": "KeywordTypeSchema",
|
|
@@ -944,8 +928,7 @@
|
|
|
944
928
|
"line": 11,
|
|
945
929
|
"character": 35
|
|
946
930
|
},
|
|
947
|
-
"name": "WorkerSlot"
|
|
948
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
931
|
+
"name": "WorkerSlot"
|
|
949
932
|
},
|
|
950
933
|
"isOptional": false,
|
|
951
934
|
"isSpread": false
|
|
@@ -965,8 +948,7 @@
|
|
|
965
948
|
"line": 11,
|
|
966
949
|
"character": 71
|
|
967
950
|
},
|
|
968
|
-
"name": "WorkerNameSlot"
|
|
969
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
951
|
+
"name": "WorkerNameSlot"
|
|
970
952
|
},
|
|
971
953
|
"isOptional": false,
|
|
972
954
|
"isSpread": false
|
|
@@ -1193,7 +1175,7 @@
|
|
|
1193
1175
|
"line": 53,
|
|
1194
1176
|
"character": 3
|
|
1195
1177
|
},
|
|
1196
|
-
"signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<
|
|
1178
|
+
"signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
|
|
1197
1179
|
"name": "slots",
|
|
1198
1180
|
"type": {
|
|
1199
1181
|
"__schema": "InferenceTypeSchema",
|
|
@@ -1202,7 +1184,7 @@
|
|
|
1202
1184
|
"line": 53,
|
|
1203
1185
|
"character": 3
|
|
1204
1186
|
},
|
|
1205
|
-
"type": "(((registerFn: () => string) => SlotRegistry<
|
|
1187
|
+
"type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
|
|
1206
1188
|
},
|
|
1207
1189
|
"isOptional": true,
|
|
1208
1190
|
"defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
|
|
@@ -1301,8 +1283,7 @@
|
|
|
1301
1283
|
"line": 57,
|
|
1302
1284
|
"character": 72
|
|
1303
1285
|
},
|
|
1304
|
-
"name": "WorkerSlot"
|
|
1305
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
1286
|
+
"name": "WorkerSlot"
|
|
1306
1287
|
},
|
|
1307
1288
|
{
|
|
1308
1289
|
"__schema": "TypeRefSchema",
|
|
@@ -1311,8 +1292,7 @@
|
|
|
1311
1292
|
"line": 57,
|
|
1312
1293
|
"character": 84
|
|
1313
1294
|
},
|
|
1314
|
-
"name": "WorkerNameSlot"
|
|
1315
|
-
"internalFilePath": "worker.main.runtime.ts"
|
|
1295
|
+
"name": "WorkerNameSlot"
|
|
1316
1296
|
}
|
|
1317
1297
|
]
|
|
1318
1298
|
},
|
|
@@ -1633,8 +1613,7 @@
|
|
|
1633
1613
|
"line": 56,
|
|
1634
1614
|
"character": 29
|
|
1635
1615
|
},
|
|
1636
|
-
"name": "InitOptions"
|
|
1637
|
-
"internalFilePath": "harmony-worker.ts"
|
|
1616
|
+
"name": "InitOptions"
|
|
1638
1617
|
}
|
|
1639
1618
|
]
|
|
1640
1619
|
},
|
|
@@ -1650,7 +1629,6 @@
|
|
|
1650
1629
|
"character": 44
|
|
1651
1630
|
},
|
|
1652
1631
|
"name": "Remote",
|
|
1653
|
-
"packageName": "comlink",
|
|
1654
1632
|
"typeArgs": [
|
|
1655
1633
|
{
|
|
1656
1634
|
"__schema": "TypeRefSchema",
|
|
@@ -1723,7 +1701,7 @@
|
|
|
1723
1701
|
"componentId": {
|
|
1724
1702
|
"scope": "teambit.harmony",
|
|
1725
1703
|
"name": "worker",
|
|
1726
|
-
"version": "0.0.
|
|
1704
|
+
"version": "0.0.1165"
|
|
1727
1705
|
},
|
|
1728
1706
|
"taggedModuleExports": []
|
|
1729
1707
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_worker@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_worker@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_worker@0.0.1165/dist/worker.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_worker@0.0.1165/dist/worker.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/worker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1165",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/worker",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "worker",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1165"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"comlink": "4.3.0",
|
|
13
13
|
"@teambit/harmony": "0.4.6",
|
|
14
|
-
"@teambit/cli": "0.0.
|
|
14
|
+
"@teambit/cli": "0.0.861"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/mocha": "9.1.0",
|
|
18
18
|
"chai": "4.3.0",
|
|
19
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
19
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,10 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
43
|
+
}
|
|
38
44
|
]
|
|
39
45
|
}
|
package/dist/expose.d.ts
DELETED
package/dist/harmony-worker.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Remote } from 'comlink';
|
|
3
|
-
export type InitOptions = {
|
|
4
|
-
/**
|
|
5
|
-
* Determines whether stdout should be piped into the parent process.
|
|
6
|
-
* If this is set to true, then worker.stdout is NOT automatically piped through to process.stdout in the parent.
|
|
7
|
-
*/
|
|
8
|
-
stdout: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Determines whether stderr should be piped into the parent process.
|
|
11
|
-
* If this is set to true, then worker.stderr is NOT automatically piped through to process.stderr in the parent.
|
|
12
|
-
*/
|
|
13
|
-
stderr: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Determines whether stdin should be piped into the parent process.
|
|
16
|
-
* If this is set to true, then worker.stdin provides a writable stream whose contents appear as process.stdin inside
|
|
17
|
-
* the Worker. By default, no data is provided.
|
|
18
|
-
*/
|
|
19
|
-
stdin: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare class HarmonyWorker<T> {
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly workerPath: string;
|
|
24
|
-
constructor(name: string, workerPath: string);
|
|
25
|
-
private remoteWorker;
|
|
26
|
-
private worker;
|
|
27
|
-
get stdout(): import("stream").Readable | undefined;
|
|
28
|
-
get stderr(): import("stream").Readable | undefined;
|
|
29
|
-
get stdin(): import("stream").Writable | null | undefined;
|
|
30
|
-
private getOptions;
|
|
31
|
-
initiate(options: Partial<InitOptions>): Remote<T>;
|
|
32
|
-
get(): Remote<T> | undefined;
|
|
33
|
-
terminate(): Promise<void>;
|
|
34
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/node-endpoint.d.ts
DELETED
package/dist/worker.aspect.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SlotRegistry } from '@teambit/harmony';
|
|
2
|
-
import { HarmonyWorker } from './harmony-worker';
|
|
3
|
-
export type WorkerSlot = SlotRegistry<HarmonyWorker<unknown>>;
|
|
4
|
-
export type WorkerNameSlot = SlotRegistry<string>;
|
|
5
|
-
export declare class WorkerMain {
|
|
6
|
-
private workerSlot;
|
|
7
|
-
private workerNameSlot;
|
|
8
|
-
constructor(workerSlot: WorkerSlot, workerNameSlot: WorkerNameSlot);
|
|
9
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
10
|
-
listWorkers(): HarmonyWorker<any>[];
|
|
11
|
-
/**
|
|
12
|
-
* create a new worker.
|
|
13
|
-
*/
|
|
14
|
-
declareWorker<T>(name: string, path: string): HarmonyWorker<T>;
|
|
15
|
-
getWorker<T>(id: string): HarmonyWorker<T>;
|
|
16
|
-
static slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[];
|
|
17
|
-
static dependencies: never[];
|
|
18
|
-
static provider(_deps: any, _config: any, [workerSlot, workerNameSlot]: [WorkerSlot, WorkerNameSlot]): Promise<WorkerMain>;
|
|
19
|
-
}
|