@algorandfoundation/puya-ts 1.2.0-beta.40 → 1.2.0-beta.42
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/{analyser-service-D0IsFlp4.js → analyser-service-DPSzV4Fr.js} +367 -367
- package/{analyser-service-D0IsFlp4.js.map → analyser-service-DPSzV4Fr.js.map} +1 -1
- package/analyserService.mjs +3 -3
- package/{arc4-clientgen-BMCeFyNd.js → arc4-clientgen-B18Iy1pB.js} +2 -2
- package/{arc4-clientgen-BMCeFyNd.js.map → arc4-clientgen-B18Iy1pB.js.map} +1 -1
- package/awst/json-serialize-awst.d.ts +5 -0
- package/bin/puyats-clientgen.mjs +5 -5
- package/bin/puyats-ls.mjs +6 -6
- package/bin/run-cli.mjs +8 -8
- package/{check-node-version-BP_a9Mv8.js → check-node-version-CTUDg7U0.js} +3 -3
- package/{check-node-version-BP_a9Mv8.js.map → check-node-version-CTUDg7U0.js.map} +1 -1
- package/cli.mjs +8 -8
- package/{compile-BaYaEC1Y.js → compile-fR7joa-i.js} +6 -6
- package/{compile-BaYaEC1Y.js.map → compile-fR7joa-i.js.map} +1 -1
- package/constants.d.ts +1 -1
- package/{contract-class-model-pgJctz5F.js → contract-class-model-DrIKzG8T.js} +3 -3
- package/{contract-class-model-pgJctz5F.js.map → contract-class-model-DrIKzG8T.js.map} +1 -1
- package/index.mjs +8 -8
- package/{options-8bOJR8qx.js → options-CjaCG-jG.js} +144 -113
- package/{options-8bOJR8qx.js.map → options-CjaCG-jG.js.map} +1 -1
- package/package.json +2 -2
- package/{resolve-puya-path-EZBzWIlE.js → resolve-puya-path-bE8Kv9ba.js} +4 -4
- package/{resolve-puya-path-EZBzWIlE.js.map → resolve-puya-path-bE8Kv9ba.js.map} +1 -1
- package/{semver-DpFo0aCr.js → semver-CE5w1Rr0.js} +3 -3
- package/{semver-DpFo0aCr.js.map → semver-CE5w1Rr0.js.map} +1 -1
- package/{util-JPoBh0Op.js → util-Dg9vLXWz.js} +2 -2
- package/{util-JPoBh0Op.js.map → util-Dg9vLXWz.js.map} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aV as LibClassType, aa as Constants, cP as boolPType, e5 as wtypes, dN as stringPType, au as GenericPType, cT as codeInvariant, bz as ReadonlyTuplePType, ba as MutableTuplePType, bn as PType, bj as NumericLiteralPType, dU as uint64PType, cO as biguintPType, t as ArrayPType, bx as ReadonlyArrayPType, cf as accountPType, cQ as bytesPType, aW as LibFunctionType, ad as ContractClassPType, cV as compiledContractType, aB as ImmutableObjectPType, cn as applicationCallItxnType, e2 as voidPType, b9 as MutableObjectPType, aI as InternalError, a6 as CodeError, dP as throwError, bL as StringConstant, W as BytesConstant, aH as IntegerConstant, M as BoolConstant, h as AddressConstant, b6 as MethodConstant, ah as DecimalConstant, bT as TemplateVar, b1 as LogSource, b0 as LogLevel, db as instanceOfAny, bE as SingleEvaluation, cd as VarExpression, dA as nodeFactory, bf as NotSupported, dt as logger, b_ as TupleItemExpression, an as FieldExpression, aC as IndexExpression, bZ as TupleExpression, k as AppStateExpression, j as AppAccountStateExpression, T as BoxValueExpression, bK as StateGetEx, bJ as StateGet, bY as TransientType, dC as numberPType, cM as bigIntPType, cp as arc28EmitFunction, s as ArrayLiteralPType, E as BigIntLiteralPType, d9 as hasFlags, dd as invariant, L as BinaryBooleanOperator, bb as NamespacePType, cL as baseContractType, cs as arc4BaseContractType, bS as SymbolName, ca as UnionPType, aA as GroupTransactionPType, cg as anyGtxnType, c7 as Uint64EnumMemberType, b$ as TypeParameterType, d3 as esSymbol, d_ as unknownPType, dz as neverPType, cj as anyPType, dB as nullPType, dZ as undefinedPType, a5 as ClusteredPrototype, aK as IntersectionPType, du as logicSigBaseType, b4 as LogicSigPType, c8 as Uint64EnumType, ar as FunctionPType, o as ApprovalProgram, a3 as ClearStateProgram, df as isIn, R as BoxMapPType, S as BoxPType, aZ as LocalMapType, a$ as LocalStateType, aw as GlobalMapType, ay as GlobalStateType, bQ as SuperPrototypeSelector, a4 as ClusteredContractClassType, bG as SourceLocation, dc as intersectsFlags, d5 as extractModuleName, dQ as toSubScript, f as AbsolutePath, a8 as CompilationSet, b as ARC4ABIMethodConfig, ag as ContractReference, _ as BytesPType, ak as EqualityComparison, bk as ObjectLiteralPType, dh as isObjectType$1, dL as readonlyDecorator, cq as arc4AbiMethodDecorator, cr as arc4BareMethodDecorator, d as ARC4CreateOption, bc as NewArray, bm as OnCompletionAction, X as BytesEncoding, cN as bigIntToUint8Array, ao as FixableCodeError, c1 as UInt64BinaryOperator, dT as tryConvertEnum, bh as NumericComparison, c5 as UInt64UnaryOperator, dj as itoaMethod, c9 as Uint64Function, c3 as UInt64PostfixUnaryOperator, aq as FixedArrayPType, aS as IterableIteratorType, aR as IterableIteratorGeneric, co as applicationPType, cD as assetPType, dD as onCompleteActionType, e4 as wrapInCodeError, cI as base32ToUint8Array, dR as transactionTypeType, bX as TransactionKind, cU as compileFunction, cW as compiledLogicSigType, b5 as LogicSigReference, aD as InnerTransactionPType, bW as TransactionFunctionType, dO as submitGroupItxnFunction, aT as ItxnParamsPType, d7 as getInnerTransactionType, d8 as getItxnParamsType, a9 as CompiledContract, c as ARC4BareMethodConfig, b7 as MethodSignature, d0 as enumFromValue, q as ArrayGeneric, ap as FixedArrayGeneric, e6 as zipStrict, de as isArrayType, di as isTupleLike, dw as matchFunction, cu as assertMatchFunction, H as BigUIntBinaryOperator, K as BigUintFunction, J as BigUIntPostfixUnaryOperator, e0 as utf8ToUint8Array, U as BytesBinaryOperator, aL as IntrinsicCall, dY as uint8ArrayToUtf8, Y as BytesFunction, Z as BytesGeneric, cK as base64ToUint8Array, d1 as enumKeyFromValue, a0 as BytesUnaryOperator, cS as cloneFunction, cX as contractOptionsDecorator, c$ as ensureBudgetFunction, bu as PuyaLibFunction, dE as opUpFeeSourceType, aM as IntrinsicEnumType, dv as logicSigOptionsDecorator, aG as InstanceType, bl as ObjectWithOptionalFieldsType, e3 as vrfVerifyPType, dx as mimcConfigurationsPType, c_ as ecdsaPType, cZ as ecPType, cJ as base64PType, aN as IntrinsicFunctionGroupType, al as Expression, aP as IntrinsicFunctionType, bA as ReferenceArrayGeneric, bB as ReferenceArrayType, l as AppStorageKind, cb as UnsupportedType, dS as transientTypeErrors, ax as GlobalStateGeneric, bU as TemplateVarFunction, d6 as getGroupTransactionType, dk as itxnComposePType, c6 as Uint64EnumMemberLiteralType, ch as anyItxnParamsType, e1 as validateEncodingFunction, O as BooleanFunction, bM as StringFunction, bw as ReadonlyArrayGeneric, by as ReadonlyGeneric, as as GeneratorGeneric, at as GeneratorType, bq as PromiseGeneric, br as PromiseType, a2 as ClassMethodDecoratorContext, bR as SuperPrototypeSelectorGeneric, bp as PolytypeClassMethodHelper, dq as logFunction, ct as assertFunction, d2 as errFunction, dr as loggedAssertFunction, ds as loggedErrFunction, d$ as urangeFunction, cR as bzeroFunction, aQ as IntrinsicFunctionTypeType, a as ALL_OP_ENUMS, aO as IntrinsicFunctionGroupTypeType, av as GlobalMapGeneric, a_ as LocalStateGeneric, aY as LocalMapGeneric, P as BoxGeneric, Q as BoxMapGeneric, n as ApplicationFunction, g as AccountFunction, z as AssetFunction, dG as paymentGtxnType, bo as PaymentTxnFunction, dl as keyRegistrationGtxnType, aU as KeyRegistrationTxnFunction, cv as assetConfigGtxnType, x as AssetConfigTxnFunction, cE as assetTransferGtxnType, B as AssetTransferTxnFunction, cz as assetFreezeGtxnType, y as AssetFreezeTxnFunction, ck as applicationCallGtxnType, m as ApplicationCallTxnFunction, bV as TransactionFunction, dH as paymentItxnFunction, dm as keyRegistrationItxnFunction, cw as assetConfigItxnFunction, cF as assetTransferItxnFunction, cA as assetFreezeItxnFunction, cl as applicationCallItxnFunction, dJ as paymentItxnType, dp as keyRegistrationItxnType, cy as assetConfigItxnType, cH as assetTransferItxnType, cC as assetFreezeItxnType, dI as paymentItxnParamsType, dn as keyRegistrationItxnParamsType, cx as assetConfigItxnParamsType, cG as assetTransferItxnParamsType, cB as assetFreezeItxnParamsType, cm as applicationCallItxnParamsType, da as inputOnlyObjects, ab as Contract, aF as InstanceSuperMethodTarget, am as ExpressionStatement, w as AssertExpression, ce as VoidConstant, p as ArrayConcat, u as ArrayPop, v as ArrayReplace, r as ArrayLength, bF as SizeOf, cc as UpdateInnerTransaction, a1 as CheckedMaybe, bH as StageInnerTransactions, bN as SubmitInnerTransaction, C as AssignmentExpression, a7 as CommaExpression, bi as NumericComparisonExpression, V as BytesComparisonExpression, bt as PuyaLibCall, c4 as UInt64UnaryOperation, c2 as UInt64PostfixUnaryOperation, I as BigUIntPostfixUnaryOperation, $ as BytesUnaryOperation, c0 as UInt64BinaryOperation, G as BigUIntBinaryOperation, N as BooleanBinaryOperation, be as Not, ai as Emit, bv as Range, aj as Enumeration, bD as Reversed, bI as StateExists, e as ARC4Router, bd as Node, b8 as MethodSignatureString, bP as SubroutineID, af as ContractMethodTarget, aE as InstanceMethodTarget, dV as uint8ArrayToBase32, dy as mkDirIfNotExists, dF as patchErrorLocation, az as Goto, bC as ReturnStatement, ae as ContractMethod, dM as sameSets, ac as ContractClassModel, bO as Subroutine, b3 as LogicSigClassModel, dK as ptypeIn, d4 as expandMaybeArray, b2 as LoggingContext, bs as PuyaError } from './contract-class-model-DrIKzG8T.js';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import 'node:util';
|
|
4
4
|
import pathe__default, { normalize } from 'pathe';
|
|
@@ -16625,12 +16625,43 @@ class SnakeCaseSerializer {
|
|
|
16625
16625
|
}
|
|
16626
16626
|
class AwstSerializer extends SnakeCaseSerializer {
|
|
16627
16627
|
options;
|
|
16628
|
+
static ID_KEY = '_$%!#ID';
|
|
16629
|
+
static REF_KEY = '_$%!#REF';
|
|
16628
16630
|
constructor(options) {
|
|
16629
16631
|
super(options?.spaces ?? 0);
|
|
16630
16632
|
this.options = options;
|
|
16631
16633
|
}
|
|
16634
|
+
#known = new Map();
|
|
16632
16635
|
#singleEvals = new SymbolToNumber();
|
|
16636
|
+
serialize(obj) {
|
|
16637
|
+
try {
|
|
16638
|
+
return super.serialize(obj);
|
|
16639
|
+
}
|
|
16640
|
+
finally {
|
|
16641
|
+
this.#known.clear();
|
|
16642
|
+
}
|
|
16643
|
+
}
|
|
16633
16644
|
serializerFunction(key, value) {
|
|
16645
|
+
if (!this.shouldTrackValue(value)) {
|
|
16646
|
+
return this.doSerializeValue(key, value);
|
|
16647
|
+
}
|
|
16648
|
+
let id = this.#known.get(value);
|
|
16649
|
+
if (id !== undefined) {
|
|
16650
|
+
return {
|
|
16651
|
+
[AwstSerializer.REF_KEY]: id,
|
|
16652
|
+
};
|
|
16653
|
+
}
|
|
16654
|
+
id = this.#known.size;
|
|
16655
|
+
this.#known.set(value, id);
|
|
16656
|
+
return {
|
|
16657
|
+
[AwstSerializer.ID_KEY]: id,
|
|
16658
|
+
...this.doSerializeValue(key, value),
|
|
16659
|
+
};
|
|
16660
|
+
}
|
|
16661
|
+
shouldTrackValue(value) {
|
|
16662
|
+
return value instanceof Node || value instanceof wtypes.WType;
|
|
16663
|
+
}
|
|
16664
|
+
doSerializeValue(key, value) {
|
|
16634
16665
|
if (typeof value === 'bigint') {
|
|
16635
16666
|
return serializeBigInt(value);
|
|
16636
16667
|
}
|
|
@@ -21437,13 +21468,13 @@ var hasRequiredConnection;
|
|
|
21437
21468
|
function requireConnection () {
|
|
21438
21469
|
if (hasRequiredConnection) return connection;
|
|
21439
21470
|
hasRequiredConnection = 1;
|
|
21440
|
-
(function (exports
|
|
21471
|
+
(function (exports) {
|
|
21441
21472
|
/* --------------------------------------------------------------------------------------------
|
|
21442
21473
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
21443
21474
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
21444
21475
|
* ------------------------------------------------------------------------------------------ */
|
|
21445
|
-
Object.defineProperty(exports
|
|
21446
|
-
exports
|
|
21476
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21477
|
+
exports.createMessageConnection = exports.ConnectionOptions = exports.MessageStrategy = exports.CancellationStrategy = exports.CancellationSenderStrategy = exports.CancellationReceiverStrategy = exports.RequestCancellationReceiverStrategy = exports.IdCancellationReceiverStrategy = exports.ConnectionStrategy = exports.ConnectionError = exports.ConnectionErrors = exports.LogTraceNotification = exports.SetTraceNotification = exports.TraceFormat = exports.TraceValues = exports.Trace = exports.NullLogger = exports.ProgressType = exports.ProgressToken = void 0;
|
|
21447
21478
|
const ral_1 = requireRal();
|
|
21448
21479
|
const Is = requireIs();
|
|
21449
21480
|
const messages_1 = requireMessages();
|
|
@@ -21460,7 +21491,7 @@ function requireConnection () {
|
|
|
21460
21491
|
return typeof value === 'string' || typeof value === 'number';
|
|
21461
21492
|
}
|
|
21462
21493
|
ProgressToken.is = is;
|
|
21463
|
-
})(ProgressToken || (exports
|
|
21494
|
+
})(ProgressToken || (exports.ProgressToken = ProgressToken = {}));
|
|
21464
21495
|
var ProgressNotification;
|
|
21465
21496
|
(function (ProgressNotification) {
|
|
21466
21497
|
ProgressNotification.type = new messages_1.NotificationType('$/progress');
|
|
@@ -21469,7 +21500,7 @@ function requireConnection () {
|
|
|
21469
21500
|
constructor() {
|
|
21470
21501
|
}
|
|
21471
21502
|
}
|
|
21472
|
-
exports
|
|
21503
|
+
exports.ProgressType = ProgressType;
|
|
21473
21504
|
var StarRequestHandler;
|
|
21474
21505
|
(function (StarRequestHandler) {
|
|
21475
21506
|
function is(value) {
|
|
@@ -21477,7 +21508,7 @@ function requireConnection () {
|
|
|
21477
21508
|
}
|
|
21478
21509
|
StarRequestHandler.is = is;
|
|
21479
21510
|
})(StarRequestHandler || (StarRequestHandler = {}));
|
|
21480
|
-
exports
|
|
21511
|
+
exports.NullLogger = Object.freeze({
|
|
21481
21512
|
error: () => { },
|
|
21482
21513
|
warn: () => { },
|
|
21483
21514
|
info: () => { },
|
|
@@ -21489,7 +21520,7 @@ function requireConnection () {
|
|
|
21489
21520
|
Trace[Trace["Messages"] = 1] = "Messages";
|
|
21490
21521
|
Trace[Trace["Compact"] = 2] = "Compact";
|
|
21491
21522
|
Trace[Trace["Verbose"] = 3] = "Verbose";
|
|
21492
|
-
})(Trace || (exports
|
|
21523
|
+
})(Trace || (exports.Trace = Trace = {}));
|
|
21493
21524
|
var TraceValues;
|
|
21494
21525
|
(function (TraceValues) {
|
|
21495
21526
|
/**
|
|
@@ -21508,7 +21539,7 @@ function requireConnection () {
|
|
|
21508
21539
|
* Verbose message tracing.
|
|
21509
21540
|
*/
|
|
21510
21541
|
TraceValues.Verbose = 'verbose';
|
|
21511
|
-
})(TraceValues || (exports
|
|
21542
|
+
})(TraceValues || (exports.TraceValues = TraceValues = {}));
|
|
21512
21543
|
(function (Trace) {
|
|
21513
21544
|
function fromString(value) {
|
|
21514
21545
|
if (!Is.string(value)) {
|
|
@@ -21544,12 +21575,12 @@ function requireConnection () {
|
|
|
21544
21575
|
}
|
|
21545
21576
|
}
|
|
21546
21577
|
Trace.toString = toString;
|
|
21547
|
-
})(Trace || (exports
|
|
21578
|
+
})(Trace || (exports.Trace = Trace = {}));
|
|
21548
21579
|
var TraceFormat;
|
|
21549
21580
|
(function (TraceFormat) {
|
|
21550
21581
|
TraceFormat["Text"] = "text";
|
|
21551
21582
|
TraceFormat["JSON"] = "json";
|
|
21552
|
-
})(TraceFormat || (exports
|
|
21583
|
+
})(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
|
|
21553
21584
|
(function (TraceFormat) {
|
|
21554
21585
|
function fromString(value) {
|
|
21555
21586
|
if (!Is.string(value)) {
|
|
@@ -21564,15 +21595,15 @@ function requireConnection () {
|
|
|
21564
21595
|
}
|
|
21565
21596
|
}
|
|
21566
21597
|
TraceFormat.fromString = fromString;
|
|
21567
|
-
})(TraceFormat || (exports
|
|
21598
|
+
})(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
|
|
21568
21599
|
var SetTraceNotification;
|
|
21569
21600
|
(function (SetTraceNotification) {
|
|
21570
21601
|
SetTraceNotification.type = new messages_1.NotificationType('$/setTrace');
|
|
21571
|
-
})(SetTraceNotification || (exports
|
|
21602
|
+
})(SetTraceNotification || (exports.SetTraceNotification = SetTraceNotification = {}));
|
|
21572
21603
|
var LogTraceNotification;
|
|
21573
21604
|
(function (LogTraceNotification) {
|
|
21574
21605
|
LogTraceNotification.type = new messages_1.NotificationType('$/logTrace');
|
|
21575
|
-
})(LogTraceNotification || (exports
|
|
21606
|
+
})(LogTraceNotification || (exports.LogTraceNotification = LogTraceNotification = {}));
|
|
21576
21607
|
var ConnectionErrors;
|
|
21577
21608
|
(function (ConnectionErrors) {
|
|
21578
21609
|
/**
|
|
@@ -21587,7 +21618,7 @@ function requireConnection () {
|
|
|
21587
21618
|
* The connection is already in listening mode.
|
|
21588
21619
|
*/
|
|
21589
21620
|
ConnectionErrors[ConnectionErrors["AlreadyListening"] = 3] = "AlreadyListening";
|
|
21590
|
-
})(ConnectionErrors || (exports
|
|
21621
|
+
})(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
|
|
21591
21622
|
class ConnectionError extends Error {
|
|
21592
21623
|
constructor(code, message) {
|
|
21593
21624
|
super(message);
|
|
@@ -21595,7 +21626,7 @@ function requireConnection () {
|
|
|
21595
21626
|
Object.setPrototypeOf(this, ConnectionError.prototype);
|
|
21596
21627
|
}
|
|
21597
21628
|
}
|
|
21598
|
-
exports
|
|
21629
|
+
exports.ConnectionError = ConnectionError;
|
|
21599
21630
|
var ConnectionStrategy;
|
|
21600
21631
|
(function (ConnectionStrategy) {
|
|
21601
21632
|
function is(value) {
|
|
@@ -21603,7 +21634,7 @@ function requireConnection () {
|
|
|
21603
21634
|
return candidate && Is.func(candidate.cancelUndispatched);
|
|
21604
21635
|
}
|
|
21605
21636
|
ConnectionStrategy.is = is;
|
|
21606
|
-
})(ConnectionStrategy || (exports
|
|
21637
|
+
})(ConnectionStrategy || (exports.ConnectionStrategy = ConnectionStrategy = {}));
|
|
21607
21638
|
var IdCancellationReceiverStrategy;
|
|
21608
21639
|
(function (IdCancellationReceiverStrategy) {
|
|
21609
21640
|
function is(value) {
|
|
@@ -21611,7 +21642,7 @@ function requireConnection () {
|
|
|
21611
21642
|
return candidate && (candidate.kind === undefined || candidate.kind === 'id') && Is.func(candidate.createCancellationTokenSource) && (candidate.dispose === undefined || Is.func(candidate.dispose));
|
|
21612
21643
|
}
|
|
21613
21644
|
IdCancellationReceiverStrategy.is = is;
|
|
21614
|
-
})(IdCancellationReceiverStrategy || (exports
|
|
21645
|
+
})(IdCancellationReceiverStrategy || (exports.IdCancellationReceiverStrategy = IdCancellationReceiverStrategy = {}));
|
|
21615
21646
|
var RequestCancellationReceiverStrategy;
|
|
21616
21647
|
(function (RequestCancellationReceiverStrategy) {
|
|
21617
21648
|
function is(value) {
|
|
@@ -21619,7 +21650,7 @@ function requireConnection () {
|
|
|
21619
21650
|
return candidate && candidate.kind === 'request' && Is.func(candidate.createCancellationTokenSource) && (candidate.dispose === undefined || Is.func(candidate.dispose));
|
|
21620
21651
|
}
|
|
21621
21652
|
RequestCancellationReceiverStrategy.is = is;
|
|
21622
|
-
})(RequestCancellationReceiverStrategy || (exports
|
|
21653
|
+
})(RequestCancellationReceiverStrategy || (exports.RequestCancellationReceiverStrategy = RequestCancellationReceiverStrategy = {}));
|
|
21623
21654
|
var CancellationReceiverStrategy;
|
|
21624
21655
|
(function (CancellationReceiverStrategy) {
|
|
21625
21656
|
CancellationReceiverStrategy.Message = Object.freeze({
|
|
@@ -21631,7 +21662,7 @@ function requireConnection () {
|
|
|
21631
21662
|
return IdCancellationReceiverStrategy.is(value) || RequestCancellationReceiverStrategy.is(value);
|
|
21632
21663
|
}
|
|
21633
21664
|
CancellationReceiverStrategy.is = is;
|
|
21634
|
-
})(CancellationReceiverStrategy || (exports
|
|
21665
|
+
})(CancellationReceiverStrategy || (exports.CancellationReceiverStrategy = CancellationReceiverStrategy = {}));
|
|
21635
21666
|
var CancellationSenderStrategy;
|
|
21636
21667
|
(function (CancellationSenderStrategy) {
|
|
21637
21668
|
CancellationSenderStrategy.Message = Object.freeze({
|
|
@@ -21645,7 +21676,7 @@ function requireConnection () {
|
|
|
21645
21676
|
return candidate && Is.func(candidate.sendCancellation) && Is.func(candidate.cleanup);
|
|
21646
21677
|
}
|
|
21647
21678
|
CancellationSenderStrategy.is = is;
|
|
21648
|
-
})(CancellationSenderStrategy || (exports
|
|
21679
|
+
})(CancellationSenderStrategy || (exports.CancellationSenderStrategy = CancellationSenderStrategy = {}));
|
|
21649
21680
|
var CancellationStrategy;
|
|
21650
21681
|
(function (CancellationStrategy) {
|
|
21651
21682
|
CancellationStrategy.Message = Object.freeze({
|
|
@@ -21657,7 +21688,7 @@ function requireConnection () {
|
|
|
21657
21688
|
return candidate && CancellationReceiverStrategy.is(candidate.receiver) && CancellationSenderStrategy.is(candidate.sender);
|
|
21658
21689
|
}
|
|
21659
21690
|
CancellationStrategy.is = is;
|
|
21660
|
-
})(CancellationStrategy || (exports
|
|
21691
|
+
})(CancellationStrategy || (exports.CancellationStrategy = CancellationStrategy = {}));
|
|
21661
21692
|
var MessageStrategy;
|
|
21662
21693
|
(function (MessageStrategy) {
|
|
21663
21694
|
function is(value) {
|
|
@@ -21665,7 +21696,7 @@ function requireConnection () {
|
|
|
21665
21696
|
return candidate && Is.func(candidate.handleMessage);
|
|
21666
21697
|
}
|
|
21667
21698
|
MessageStrategy.is = is;
|
|
21668
|
-
})(MessageStrategy || (exports
|
|
21699
|
+
})(MessageStrategy || (exports.MessageStrategy = MessageStrategy = {}));
|
|
21669
21700
|
var ConnectionOptions;
|
|
21670
21701
|
(function (ConnectionOptions) {
|
|
21671
21702
|
function is(value) {
|
|
@@ -21673,7 +21704,7 @@ function requireConnection () {
|
|
|
21673
21704
|
return candidate && (CancellationStrategy.is(candidate.cancellationStrategy) || ConnectionStrategy.is(candidate.connectionStrategy) || MessageStrategy.is(candidate.messageStrategy));
|
|
21674
21705
|
}
|
|
21675
21706
|
ConnectionOptions.is = is;
|
|
21676
|
-
})(ConnectionOptions || (exports
|
|
21707
|
+
})(ConnectionOptions || (exports.ConnectionOptions = ConnectionOptions = {}));
|
|
21677
21708
|
var ConnectionState;
|
|
21678
21709
|
(function (ConnectionState) {
|
|
21679
21710
|
ConnectionState[ConnectionState["New"] = 1] = "New";
|
|
@@ -21682,7 +21713,7 @@ function requireConnection () {
|
|
|
21682
21713
|
ConnectionState[ConnectionState["Disposed"] = 4] = "Disposed";
|
|
21683
21714
|
})(ConnectionState || (ConnectionState = {}));
|
|
21684
21715
|
function createMessageConnection(messageReader, messageWriter, _logger, options) {
|
|
21685
|
-
const logger = _logger !== undefined ? _logger : exports
|
|
21716
|
+
const logger = _logger !== undefined ? _logger : exports.NullLogger;
|
|
21686
21717
|
let sequenceNumber = 0;
|
|
21687
21718
|
let notificationSequenceNumber = 0;
|
|
21688
21719
|
let unknownResponseSequenceNumber = 0;
|
|
@@ -22650,7 +22681,7 @@ function requireConnection () {
|
|
|
22650
22681
|
});
|
|
22651
22682
|
return connection;
|
|
22652
22683
|
}
|
|
22653
|
-
exports
|
|
22684
|
+
exports.createMessageConnection = createMessageConnection;
|
|
22654
22685
|
} (connection));
|
|
22655
22686
|
return connection;
|
|
22656
22687
|
}
|
|
@@ -22660,87 +22691,87 @@ var hasRequiredApi;
|
|
|
22660
22691
|
function requireApi () {
|
|
22661
22692
|
if (hasRequiredApi) return api;
|
|
22662
22693
|
hasRequiredApi = 1;
|
|
22663
|
-
(function (exports
|
|
22694
|
+
(function (exports) {
|
|
22664
22695
|
/* --------------------------------------------------------------------------------------------
|
|
22665
22696
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22666
22697
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
22667
22698
|
* ------------------------------------------------------------------------------------------ */
|
|
22668
22699
|
/// <reference path="../../typings/thenable.d.ts" />
|
|
22669
|
-
Object.defineProperty(exports
|
|
22670
|
-
exports
|
|
22671
|
-
exports
|
|
22700
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22701
|
+
exports.ProgressType = exports.ProgressToken = exports.createMessageConnection = exports.NullLogger = exports.ConnectionOptions = exports.ConnectionStrategy = exports.AbstractMessageBuffer = exports.WriteableStreamMessageWriter = exports.AbstractMessageWriter = exports.MessageWriter = exports.ReadableStreamMessageReader = exports.AbstractMessageReader = exports.MessageReader = exports.SharedArrayReceiverStrategy = exports.SharedArraySenderStrategy = exports.CancellationToken = exports.CancellationTokenSource = exports.Emitter = exports.Event = exports.Disposable = exports.LRUCache = exports.Touch = exports.LinkedMap = exports.ParameterStructures = exports.NotificationType9 = exports.NotificationType8 = exports.NotificationType7 = exports.NotificationType6 = exports.NotificationType5 = exports.NotificationType4 = exports.NotificationType3 = exports.NotificationType2 = exports.NotificationType1 = exports.NotificationType0 = exports.NotificationType = exports.ErrorCodes = exports.ResponseError = exports.RequestType9 = exports.RequestType8 = exports.RequestType7 = exports.RequestType6 = exports.RequestType5 = exports.RequestType4 = exports.RequestType3 = exports.RequestType2 = exports.RequestType1 = exports.RequestType0 = exports.RequestType = exports.Message = exports.RAL = void 0;
|
|
22702
|
+
exports.MessageStrategy = exports.CancellationStrategy = exports.CancellationSenderStrategy = exports.CancellationReceiverStrategy = exports.ConnectionError = exports.ConnectionErrors = exports.LogTraceNotification = exports.SetTraceNotification = exports.TraceFormat = exports.TraceValues = exports.Trace = void 0;
|
|
22672
22703
|
const messages_1 = requireMessages();
|
|
22673
|
-
Object.defineProperty(exports
|
|
22674
|
-
Object.defineProperty(exports
|
|
22675
|
-
Object.defineProperty(exports
|
|
22676
|
-
Object.defineProperty(exports
|
|
22677
|
-
Object.defineProperty(exports
|
|
22678
|
-
Object.defineProperty(exports
|
|
22679
|
-
Object.defineProperty(exports
|
|
22680
|
-
Object.defineProperty(exports
|
|
22681
|
-
Object.defineProperty(exports
|
|
22682
|
-
Object.defineProperty(exports
|
|
22683
|
-
Object.defineProperty(exports
|
|
22684
|
-
Object.defineProperty(exports
|
|
22685
|
-
Object.defineProperty(exports
|
|
22686
|
-
Object.defineProperty(exports
|
|
22687
|
-
Object.defineProperty(exports
|
|
22688
|
-
Object.defineProperty(exports
|
|
22689
|
-
Object.defineProperty(exports
|
|
22690
|
-
Object.defineProperty(exports
|
|
22691
|
-
Object.defineProperty(exports
|
|
22692
|
-
Object.defineProperty(exports
|
|
22693
|
-
Object.defineProperty(exports
|
|
22694
|
-
Object.defineProperty(exports
|
|
22695
|
-
Object.defineProperty(exports
|
|
22696
|
-
Object.defineProperty(exports
|
|
22697
|
-
Object.defineProperty(exports
|
|
22698
|
-
Object.defineProperty(exports
|
|
22704
|
+
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return messages_1.Message; } });
|
|
22705
|
+
Object.defineProperty(exports, "RequestType", { enumerable: true, get: function () { return messages_1.RequestType; } });
|
|
22706
|
+
Object.defineProperty(exports, "RequestType0", { enumerable: true, get: function () { return messages_1.RequestType0; } });
|
|
22707
|
+
Object.defineProperty(exports, "RequestType1", { enumerable: true, get: function () { return messages_1.RequestType1; } });
|
|
22708
|
+
Object.defineProperty(exports, "RequestType2", { enumerable: true, get: function () { return messages_1.RequestType2; } });
|
|
22709
|
+
Object.defineProperty(exports, "RequestType3", { enumerable: true, get: function () { return messages_1.RequestType3; } });
|
|
22710
|
+
Object.defineProperty(exports, "RequestType4", { enumerable: true, get: function () { return messages_1.RequestType4; } });
|
|
22711
|
+
Object.defineProperty(exports, "RequestType5", { enumerable: true, get: function () { return messages_1.RequestType5; } });
|
|
22712
|
+
Object.defineProperty(exports, "RequestType6", { enumerable: true, get: function () { return messages_1.RequestType6; } });
|
|
22713
|
+
Object.defineProperty(exports, "RequestType7", { enumerable: true, get: function () { return messages_1.RequestType7; } });
|
|
22714
|
+
Object.defineProperty(exports, "RequestType8", { enumerable: true, get: function () { return messages_1.RequestType8; } });
|
|
22715
|
+
Object.defineProperty(exports, "RequestType9", { enumerable: true, get: function () { return messages_1.RequestType9; } });
|
|
22716
|
+
Object.defineProperty(exports, "ResponseError", { enumerable: true, get: function () { return messages_1.ResponseError; } });
|
|
22717
|
+
Object.defineProperty(exports, "ErrorCodes", { enumerable: true, get: function () { return messages_1.ErrorCodes; } });
|
|
22718
|
+
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return messages_1.NotificationType; } });
|
|
22719
|
+
Object.defineProperty(exports, "NotificationType0", { enumerable: true, get: function () { return messages_1.NotificationType0; } });
|
|
22720
|
+
Object.defineProperty(exports, "NotificationType1", { enumerable: true, get: function () { return messages_1.NotificationType1; } });
|
|
22721
|
+
Object.defineProperty(exports, "NotificationType2", { enumerable: true, get: function () { return messages_1.NotificationType2; } });
|
|
22722
|
+
Object.defineProperty(exports, "NotificationType3", { enumerable: true, get: function () { return messages_1.NotificationType3; } });
|
|
22723
|
+
Object.defineProperty(exports, "NotificationType4", { enumerable: true, get: function () { return messages_1.NotificationType4; } });
|
|
22724
|
+
Object.defineProperty(exports, "NotificationType5", { enumerable: true, get: function () { return messages_1.NotificationType5; } });
|
|
22725
|
+
Object.defineProperty(exports, "NotificationType6", { enumerable: true, get: function () { return messages_1.NotificationType6; } });
|
|
22726
|
+
Object.defineProperty(exports, "NotificationType7", { enumerable: true, get: function () { return messages_1.NotificationType7; } });
|
|
22727
|
+
Object.defineProperty(exports, "NotificationType8", { enumerable: true, get: function () { return messages_1.NotificationType8; } });
|
|
22728
|
+
Object.defineProperty(exports, "NotificationType9", { enumerable: true, get: function () { return messages_1.NotificationType9; } });
|
|
22729
|
+
Object.defineProperty(exports, "ParameterStructures", { enumerable: true, get: function () { return messages_1.ParameterStructures; } });
|
|
22699
22730
|
const linkedMap_1 = requireLinkedMap();
|
|
22700
|
-
Object.defineProperty(exports
|
|
22701
|
-
Object.defineProperty(exports
|
|
22702
|
-
Object.defineProperty(exports
|
|
22731
|
+
Object.defineProperty(exports, "LinkedMap", { enumerable: true, get: function () { return linkedMap_1.LinkedMap; } });
|
|
22732
|
+
Object.defineProperty(exports, "LRUCache", { enumerable: true, get: function () { return linkedMap_1.LRUCache; } });
|
|
22733
|
+
Object.defineProperty(exports, "Touch", { enumerable: true, get: function () { return linkedMap_1.Touch; } });
|
|
22703
22734
|
const disposable_1 = requireDisposable();
|
|
22704
|
-
Object.defineProperty(exports
|
|
22735
|
+
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return disposable_1.Disposable; } });
|
|
22705
22736
|
const events_1 = requireEvents();
|
|
22706
|
-
Object.defineProperty(exports
|
|
22707
|
-
Object.defineProperty(exports
|
|
22737
|
+
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return events_1.Event; } });
|
|
22738
|
+
Object.defineProperty(exports, "Emitter", { enumerable: true, get: function () { return events_1.Emitter; } });
|
|
22708
22739
|
const cancellation_1 = requireCancellation();
|
|
22709
|
-
Object.defineProperty(exports
|
|
22710
|
-
Object.defineProperty(exports
|
|
22740
|
+
Object.defineProperty(exports, "CancellationTokenSource", { enumerable: true, get: function () { return cancellation_1.CancellationTokenSource; } });
|
|
22741
|
+
Object.defineProperty(exports, "CancellationToken", { enumerable: true, get: function () { return cancellation_1.CancellationToken; } });
|
|
22711
22742
|
const sharedArrayCancellation_1 = requireSharedArrayCancellation();
|
|
22712
|
-
Object.defineProperty(exports
|
|
22713
|
-
Object.defineProperty(exports
|
|
22743
|
+
Object.defineProperty(exports, "SharedArraySenderStrategy", { enumerable: true, get: function () { return sharedArrayCancellation_1.SharedArraySenderStrategy; } });
|
|
22744
|
+
Object.defineProperty(exports, "SharedArrayReceiverStrategy", { enumerable: true, get: function () { return sharedArrayCancellation_1.SharedArrayReceiverStrategy; } });
|
|
22714
22745
|
const messageReader_1 = requireMessageReader();
|
|
22715
|
-
Object.defineProperty(exports
|
|
22716
|
-
Object.defineProperty(exports
|
|
22717
|
-
Object.defineProperty(exports
|
|
22746
|
+
Object.defineProperty(exports, "MessageReader", { enumerable: true, get: function () { return messageReader_1.MessageReader; } });
|
|
22747
|
+
Object.defineProperty(exports, "AbstractMessageReader", { enumerable: true, get: function () { return messageReader_1.AbstractMessageReader; } });
|
|
22748
|
+
Object.defineProperty(exports, "ReadableStreamMessageReader", { enumerable: true, get: function () { return messageReader_1.ReadableStreamMessageReader; } });
|
|
22718
22749
|
const messageWriter_1 = requireMessageWriter();
|
|
22719
|
-
Object.defineProperty(exports
|
|
22720
|
-
Object.defineProperty(exports
|
|
22721
|
-
Object.defineProperty(exports
|
|
22750
|
+
Object.defineProperty(exports, "MessageWriter", { enumerable: true, get: function () { return messageWriter_1.MessageWriter; } });
|
|
22751
|
+
Object.defineProperty(exports, "AbstractMessageWriter", { enumerable: true, get: function () { return messageWriter_1.AbstractMessageWriter; } });
|
|
22752
|
+
Object.defineProperty(exports, "WriteableStreamMessageWriter", { enumerable: true, get: function () { return messageWriter_1.WriteableStreamMessageWriter; } });
|
|
22722
22753
|
const messageBuffer_1 = requireMessageBuffer();
|
|
22723
|
-
Object.defineProperty(exports
|
|
22754
|
+
Object.defineProperty(exports, "AbstractMessageBuffer", { enumerable: true, get: function () { return messageBuffer_1.AbstractMessageBuffer; } });
|
|
22724
22755
|
const connection_1 = requireConnection();
|
|
22725
|
-
Object.defineProperty(exports
|
|
22726
|
-
Object.defineProperty(exports
|
|
22727
|
-
Object.defineProperty(exports
|
|
22728
|
-
Object.defineProperty(exports
|
|
22729
|
-
Object.defineProperty(exports
|
|
22730
|
-
Object.defineProperty(exports
|
|
22731
|
-
Object.defineProperty(exports
|
|
22732
|
-
Object.defineProperty(exports
|
|
22733
|
-
Object.defineProperty(exports
|
|
22734
|
-
Object.defineProperty(exports
|
|
22735
|
-
Object.defineProperty(exports
|
|
22736
|
-
Object.defineProperty(exports
|
|
22737
|
-
Object.defineProperty(exports
|
|
22738
|
-
Object.defineProperty(exports
|
|
22739
|
-
Object.defineProperty(exports
|
|
22740
|
-
Object.defineProperty(exports
|
|
22741
|
-
Object.defineProperty(exports
|
|
22756
|
+
Object.defineProperty(exports, "ConnectionStrategy", { enumerable: true, get: function () { return connection_1.ConnectionStrategy; } });
|
|
22757
|
+
Object.defineProperty(exports, "ConnectionOptions", { enumerable: true, get: function () { return connection_1.ConnectionOptions; } });
|
|
22758
|
+
Object.defineProperty(exports, "NullLogger", { enumerable: true, get: function () { return connection_1.NullLogger; } });
|
|
22759
|
+
Object.defineProperty(exports, "createMessageConnection", { enumerable: true, get: function () { return connection_1.createMessageConnection; } });
|
|
22760
|
+
Object.defineProperty(exports, "ProgressToken", { enumerable: true, get: function () { return connection_1.ProgressToken; } });
|
|
22761
|
+
Object.defineProperty(exports, "ProgressType", { enumerable: true, get: function () { return connection_1.ProgressType; } });
|
|
22762
|
+
Object.defineProperty(exports, "Trace", { enumerable: true, get: function () { return connection_1.Trace; } });
|
|
22763
|
+
Object.defineProperty(exports, "TraceValues", { enumerable: true, get: function () { return connection_1.TraceValues; } });
|
|
22764
|
+
Object.defineProperty(exports, "TraceFormat", { enumerable: true, get: function () { return connection_1.TraceFormat; } });
|
|
22765
|
+
Object.defineProperty(exports, "SetTraceNotification", { enumerable: true, get: function () { return connection_1.SetTraceNotification; } });
|
|
22766
|
+
Object.defineProperty(exports, "LogTraceNotification", { enumerable: true, get: function () { return connection_1.LogTraceNotification; } });
|
|
22767
|
+
Object.defineProperty(exports, "ConnectionErrors", { enumerable: true, get: function () { return connection_1.ConnectionErrors; } });
|
|
22768
|
+
Object.defineProperty(exports, "ConnectionError", { enumerable: true, get: function () { return connection_1.ConnectionError; } });
|
|
22769
|
+
Object.defineProperty(exports, "CancellationReceiverStrategy", { enumerable: true, get: function () { return connection_1.CancellationReceiverStrategy; } });
|
|
22770
|
+
Object.defineProperty(exports, "CancellationSenderStrategy", { enumerable: true, get: function () { return connection_1.CancellationSenderStrategy; } });
|
|
22771
|
+
Object.defineProperty(exports, "CancellationStrategy", { enumerable: true, get: function () { return connection_1.CancellationStrategy; } });
|
|
22772
|
+
Object.defineProperty(exports, "MessageStrategy", { enumerable: true, get: function () { return connection_1.MessageStrategy; } });
|
|
22742
22773
|
const ral_1 = requireRal();
|
|
22743
|
-
exports
|
|
22774
|
+
exports.RAL = ral_1.default;
|
|
22744
22775
|
} (api));
|
|
22745
22776
|
return api;
|
|
22746
22777
|
}
|
|
@@ -22918,7 +22949,7 @@ var hasRequiredMain;
|
|
|
22918
22949
|
function requireMain () {
|
|
22919
22950
|
if (hasRequiredMain) return main;
|
|
22920
22951
|
hasRequiredMain = 1;
|
|
22921
|
-
(function (exports
|
|
22952
|
+
(function (exports) {
|
|
22922
22953
|
var __createBinding = (main && main.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22923
22954
|
if (k2 === undefined) k2 = k;
|
|
22924
22955
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -22930,11 +22961,11 @@ function requireMain () {
|
|
|
22930
22961
|
if (k2 === undefined) k2 = k;
|
|
22931
22962
|
o[k2] = m[k];
|
|
22932
22963
|
}));
|
|
22933
|
-
var __exportStar = (main && main.__exportStar) || function(m, exports
|
|
22934
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
22964
|
+
var __exportStar = (main && main.__exportStar) || function(m, exports) {
|
|
22965
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22935
22966
|
};
|
|
22936
|
-
Object.defineProperty(exports
|
|
22937
|
-
exports
|
|
22967
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22968
|
+
exports.createMessageConnection = exports.createServerSocketTransport = exports.createClientSocketTransport = exports.createServerPipeTransport = exports.createClientPipeTransport = exports.generateRandomPipeName = exports.StreamMessageWriter = exports.StreamMessageReader = exports.SocketMessageWriter = exports.SocketMessageReader = exports.PortMessageWriter = exports.PortMessageReader = exports.IPCMessageWriter = exports.IPCMessageReader = void 0;
|
|
22938
22969
|
/* --------------------------------------------------------------------------------------------
|
|
22939
22970
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22940
22971
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -22947,7 +22978,7 @@ function requireMain () {
|
|
|
22947
22978
|
const crypto_1 = require$$3__default;
|
|
22948
22979
|
const net_1 = require$$4;
|
|
22949
22980
|
const api_1 = requireApi();
|
|
22950
|
-
__exportStar(requireApi(), exports
|
|
22981
|
+
__exportStar(requireApi(), exports);
|
|
22951
22982
|
class IPCMessageReader extends api_1.AbstractMessageReader {
|
|
22952
22983
|
constructor(process) {
|
|
22953
22984
|
super();
|
|
@@ -22961,7 +22992,7 @@ function requireMain () {
|
|
|
22961
22992
|
return api_1.Disposable.create(() => this.process.off('message', callback));
|
|
22962
22993
|
}
|
|
22963
22994
|
}
|
|
22964
|
-
exports
|
|
22995
|
+
exports.IPCMessageReader = IPCMessageReader;
|
|
22965
22996
|
class IPCMessageWriter extends api_1.AbstractMessageWriter {
|
|
22966
22997
|
constructor(process) {
|
|
22967
22998
|
super();
|
|
@@ -22998,7 +23029,7 @@ function requireMain () {
|
|
|
22998
23029
|
end() {
|
|
22999
23030
|
}
|
|
23000
23031
|
}
|
|
23001
|
-
exports
|
|
23032
|
+
exports.IPCMessageWriter = IPCMessageWriter;
|
|
23002
23033
|
class PortMessageReader extends api_1.AbstractMessageReader {
|
|
23003
23034
|
constructor(port) {
|
|
23004
23035
|
super();
|
|
@@ -23013,7 +23044,7 @@ function requireMain () {
|
|
|
23013
23044
|
return this.onData.event(callback);
|
|
23014
23045
|
}
|
|
23015
23046
|
}
|
|
23016
|
-
exports
|
|
23047
|
+
exports.PortMessageReader = PortMessageReader;
|
|
23017
23048
|
class PortMessageWriter extends api_1.AbstractMessageWriter {
|
|
23018
23049
|
constructor(port) {
|
|
23019
23050
|
super();
|
|
@@ -23039,13 +23070,13 @@ function requireMain () {
|
|
|
23039
23070
|
end() {
|
|
23040
23071
|
}
|
|
23041
23072
|
}
|
|
23042
|
-
exports
|
|
23073
|
+
exports.PortMessageWriter = PortMessageWriter;
|
|
23043
23074
|
class SocketMessageReader extends api_1.ReadableStreamMessageReader {
|
|
23044
23075
|
constructor(socket, encoding = 'utf-8') {
|
|
23045
23076
|
super((0, ril_1.default)().stream.asReadableStream(socket), encoding);
|
|
23046
23077
|
}
|
|
23047
23078
|
}
|
|
23048
|
-
exports
|
|
23079
|
+
exports.SocketMessageReader = SocketMessageReader;
|
|
23049
23080
|
class SocketMessageWriter extends api_1.WriteableStreamMessageWriter {
|
|
23050
23081
|
constructor(socket, options) {
|
|
23051
23082
|
super((0, ril_1.default)().stream.asWritableStream(socket), options);
|
|
@@ -23056,19 +23087,19 @@ function requireMain () {
|
|
|
23056
23087
|
this.socket.destroy();
|
|
23057
23088
|
}
|
|
23058
23089
|
}
|
|
23059
|
-
exports
|
|
23090
|
+
exports.SocketMessageWriter = SocketMessageWriter;
|
|
23060
23091
|
class StreamMessageReader extends api_1.ReadableStreamMessageReader {
|
|
23061
23092
|
constructor(readable, encoding) {
|
|
23062
23093
|
super((0, ril_1.default)().stream.asReadableStream(readable), encoding);
|
|
23063
23094
|
}
|
|
23064
23095
|
}
|
|
23065
|
-
exports
|
|
23096
|
+
exports.StreamMessageReader = StreamMessageReader;
|
|
23066
23097
|
class StreamMessageWriter extends api_1.WriteableStreamMessageWriter {
|
|
23067
23098
|
constructor(writable, options) {
|
|
23068
23099
|
super((0, ril_1.default)().stream.asWritableStream(writable), options);
|
|
23069
23100
|
}
|
|
23070
23101
|
}
|
|
23071
|
-
exports
|
|
23102
|
+
exports.StreamMessageWriter = StreamMessageWriter;
|
|
23072
23103
|
const XDG_RUNTIME_DIR = process.env['XDG_RUNTIME_DIR'];
|
|
23073
23104
|
const safeIpcPathLengths = new Map([
|
|
23074
23105
|
['linux', 107],
|
|
@@ -23092,7 +23123,7 @@ function requireMain () {
|
|
|
23092
23123
|
}
|
|
23093
23124
|
return result;
|
|
23094
23125
|
}
|
|
23095
|
-
exports
|
|
23126
|
+
exports.generateRandomPipeName = generateRandomPipeName;
|
|
23096
23127
|
function createClientPipeTransport(pipeName, encoding = 'utf-8') {
|
|
23097
23128
|
let connectResolve;
|
|
23098
23129
|
const connected = new Promise((resolve, _reject) => {
|
|
@@ -23115,7 +23146,7 @@ function requireMain () {
|
|
|
23115
23146
|
});
|
|
23116
23147
|
});
|
|
23117
23148
|
}
|
|
23118
|
-
exports
|
|
23149
|
+
exports.createClientPipeTransport = createClientPipeTransport;
|
|
23119
23150
|
function createServerPipeTransport(pipeName, encoding = 'utf-8') {
|
|
23120
23151
|
const socket = (0, net_1.createConnection)(pipeName);
|
|
23121
23152
|
return [
|
|
@@ -23123,7 +23154,7 @@ function requireMain () {
|
|
|
23123
23154
|
new SocketMessageWriter(socket, encoding)
|
|
23124
23155
|
];
|
|
23125
23156
|
}
|
|
23126
|
-
exports
|
|
23157
|
+
exports.createServerPipeTransport = createServerPipeTransport;
|
|
23127
23158
|
function createClientSocketTransport(port, encoding = 'utf-8') {
|
|
23128
23159
|
let connectResolve;
|
|
23129
23160
|
const connected = new Promise((resolve, _reject) => {
|
|
@@ -23146,7 +23177,7 @@ function requireMain () {
|
|
|
23146
23177
|
});
|
|
23147
23178
|
});
|
|
23148
23179
|
}
|
|
23149
|
-
exports
|
|
23180
|
+
exports.createClientSocketTransport = createClientSocketTransport;
|
|
23150
23181
|
function createServerSocketTransport(port, encoding = 'utf-8') {
|
|
23151
23182
|
const socket = (0, net_1.createConnection)(port, '127.0.0.1');
|
|
23152
23183
|
return [
|
|
@@ -23154,7 +23185,7 @@ function requireMain () {
|
|
|
23154
23185
|
new SocketMessageWriter(socket, encoding)
|
|
23155
23186
|
];
|
|
23156
23187
|
}
|
|
23157
|
-
exports
|
|
23188
|
+
exports.createServerSocketTransport = createServerSocketTransport;
|
|
23158
23189
|
function isReadableStream(value) {
|
|
23159
23190
|
const candidate = value;
|
|
23160
23191
|
return candidate.read !== undefined && candidate.addListener !== undefined;
|
|
@@ -23174,7 +23205,7 @@ function requireMain () {
|
|
|
23174
23205
|
}
|
|
23175
23206
|
return (0, api_1.createMessageConnection)(reader, writer, logger, options);
|
|
23176
23207
|
}
|
|
23177
|
-
exports
|
|
23208
|
+
exports.createMessageConnection = createMessageConnection;
|
|
23178
23209
|
} (main));
|
|
23179
23210
|
return main;
|
|
23180
23211
|
}
|
|
@@ -23482,5 +23513,5 @@ class PuyaOptions {
|
|
|
23482
23513
|
}
|
|
23483
23514
|
}
|
|
23484
23515
|
|
|
23485
|
-
export {
|
|
23486
|
-
//# sourceMappingURL=options-
|
|
23516
|
+
export { methodSelectorFunction as $, ARC4ArrayType as A, ByteClass as B, CompileOptions as C, DefaultMap as D, UintNGeneric as E, UintNType as F, abiCallFunction as G, arc4AddressAlias as H, arc4BooleanType as I, arc4ByteAlias as J, arc4StringType as K, LocalsCoalescingStrategy as L, arc4StructBaseType as M, buildAwst as N, compileArc4Function as O, PuyaService as P, convertBytesFunction as Q, createTsProgram as R, StaticArrayGeneric as S, TypeResolver as T, UFixedNxMGeneric as U, decodeArc4Function as V, defaultPuyaOptions as W, deserializeAndLog as X, dynamicBytesType as Y, encodeArc4Function as Z, hexToUint8Array as _, ARC4BoolClass as a, parseCliTemplateVar as a0, processInputPaths as a1, registerPTypes as a2, relinquishThread as a3, sizeOfFunction as a4, sleep as a5, typeRegistry as a6, uint8ArrayToHex as a7, validateAwst as a8, ARC4EncodedType as b, ARC4InstanceType as c, ARC4StrClass as d, ARC4StructClass as e, ARC4StructType as f, ARC4TupleGeneric as g, ARC4TupleType as h, AddressClass as i, ContractProxyGeneric as j, ContractProxyType as k, DynamicArrayGeneric as l, DynamicArrayType as m, DynamicBytesClass as n, StaticArrayType as o, StaticBytesGeneric as p, StaticBytesType as q, TypedApplicationCallResponseGeneric as r, TypedApplicationCallResponseType as s, UFixedNxMType as t, UintN128Class as u, UintN16Class as v, UintN256Class as w, UintN32Class as x, UintN64Class as y, UintN8Class as z };
|
|
23517
|
+
//# sourceMappingURL=options-CjaCG-jG.js.map
|