1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6 | if (k2 === undefined) k2 = k;
|
7 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
8 | }) : (function(o, m, k, k2) {
|
9 | if (k2 === undefined) k2 = k;
|
10 | o[k2] = m[k];
|
11 | }));
|
12 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
13 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
14 | }) : function(o, v) {
|
15 | o["default"] = v;
|
16 | });
|
17 | var __importStar = (this && this.__importStar) || function (mod) {
|
18 | if (mod && mod.__esModule) return mod;
|
19 | var result = {};
|
20 | if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
21 | __setModuleDefault(result, mod);
|
22 | return result;
|
23 | };
|
24 | Object.defineProperty(exports, "__esModule", { value: true });
|
25 | exports.isWorkerRuntime = exports.getWorkerImplementation = exports.defaultPoolSize = void 0;
|
26 |
|
27 |
|
28 |
|
29 | const BrowserImplementation = __importStar(require("./implementation.browser"));
|
30 | const NodeImplementation = __importStar(require("./implementation.node"));
|
31 | const runningInNode = typeof process !== 'undefined' && process.arch !== 'browser' && 'pid' in process;
|
32 | const implementation = runningInNode ? NodeImplementation : BrowserImplementation;
|
33 |
|
34 | exports.defaultPoolSize = implementation.defaultPoolSize;
|
35 | exports.getWorkerImplementation = implementation.getWorkerImplementation;
|
36 |
|
37 | exports.isWorkerRuntime = implementation.isWorkerRuntime;
|