@conduit-client/adapter-module-init 5.67.0-dev1
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/LICENSE.txt +27 -0
- package/README.md +10 -0
- package/dist/main/index.js +6 -0
- package/dist/main/index.js.map +1 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/v1/CommandWireAdapterConstructor-stub.d.ts +19 -0
- package/dist/types/v1/__tests__/CommandWireAdapterConstructor-stub.spec.d.ts +1 -0
- package/dist/types/v1/__tests__/async-function-stub.spec.d.ts +1 -0
- package/dist/types/v1/async-function-stub.d.ts +15 -0
- package/dist/types/v1/index.d.ts +3 -0
- package/dist/v1/index.js +105 -0
- package/dist/v1/index.js.map +1 -0
- package/package.json +49 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
*Attorney/Client Privileged + Confidential*
|
|
2
|
+
|
|
3
|
+
Terms of Use for Public Code (Non-OSS)
|
|
4
|
+
|
|
5
|
+
*NOTE:* Before publishing code under this license/these Terms of Use, please review https://salesforce.quip.com/WFfvAMKB18AL and confirm that you’ve completed all prerequisites described therein. *These Terms of Use may not be used or modified without input from IP and Product Legal.*
|
|
6
|
+
|
|
7
|
+
*Terms of Use*
|
|
8
|
+
|
|
9
|
+
Copyright 2022 Salesforce, Inc. All rights reserved.
|
|
10
|
+
|
|
11
|
+
These Terms of Use govern the download, installation, and/or use of this software provided by Salesforce, Inc. (“Salesforce”) (the “Software”), were last updated on April 15, 2022, ** and constitute a legally binding agreement between you and Salesforce. If you do not agree to these Terms of Use, do not install or use the Software.
|
|
12
|
+
|
|
13
|
+
Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the Software and derivative works subject to these Terms. These Terms shall be included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
Subject to the limited rights expressly granted hereunder, Salesforce reserves all rights, title, and interest in and to all intellectual property subsisting in the Software. No rights are granted to you hereunder other than as expressly set forth herein. Users residing in countries on the United States Office of Foreign Assets Control sanction list, or which are otherwise subject to a US export embargo, may not use the Software.
|
|
16
|
+
|
|
17
|
+
Implementation of the Software may require development work, for which you are responsible. The Software may contain bugs, errors and incompatibilities and is made available on an AS IS basis without support, updates, or service level commitments.
|
|
18
|
+
|
|
19
|
+
Salesforce reserves the right at any time to modify, suspend, or discontinue, the Software (or any part thereof) with or without notice. You agree that Salesforce shall not be liable to you or to any third party for any modification, suspension, or discontinuance.
|
|
20
|
+
|
|
21
|
+
You agree to defend Salesforce against any claim, demand, suit or proceeding made or brought against Salesforce by a third party arising out of or accruing from (a) your use of the Software, and (b) any application you develop with the Software that infringes any copyright, trademark, trade secret, trade dress, patent, or other intellectual property right of any person or defames any person or violates their rights of publicity or privacy (each a “Claim Against Salesforce”), and will indemnify Salesforce from any damages, attorney fees, and costs finally awarded against Salesforce as a result of, or for any amounts paid by Salesforce under a settlement approved by you in writing of, a Claim Against Salesforce, provided Salesforce (x) promptly gives you written notice of the Claim Against Salesforce, (y) gives you sole control of the defense and settlement of the Claim Against Salesforce (except that you may not settle any Claim Against Salesforce unless it unconditionally releases Salesforce of all liability), and (z) gives you all reasonable assistance, at your expense.
|
|
22
|
+
|
|
23
|
+
WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA, OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
24
|
+
|
|
25
|
+
These Terms of Use shall be governed exclusively by the internal laws of the State of California, without regard to its conflicts of laws rules. Each party hereby consents to the exclusive jurisdiction of the state and federal courts located in San Francisco County, California to adjudicate any dispute arising out of or relating to these Terms of Use and the download, installation, and/or use of the Software. Except as expressly stated herein, these Terms of Use constitute the entire agreement between the parties, and supersede all prior and contemporaneous agreements, proposals, or representations, written or oral, concerning their subject matter. No modification, amendment, or waiver of any provision of these Terms of Use shall be effective unless it is by an update to these Terms of Use that Salesforce makes available, or is in writing and signed by the party against whom the modification, amendment, or waiver is to be asserted.
|
|
26
|
+
|
|
27
|
+
_*Data Privacy*_: Salesforce may collect, process, and store device, system, and other information related to your use of the Software. This information includes, but is not limited to, IP address, user metrics, and other data (“Usage Data”). Salesforce may use Usage Data for analytics, product development, and marketing purposes. You acknowledge that files generated in conjunction with the Software may contain sensitive or confidential data, and you are solely responsible for anonymizing and protecting such data.
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
This module provides utilities for adapter modules to use during initialization.
|
|
2
|
+
As these utilities are used during initialization before any services have
|
|
3
|
+
been provisioned to the adapter module, the contents of this package are **not**
|
|
4
|
+
versioned and **must** remain backwards compatible.
|
|
5
|
+
|
|
6
|
+
Nothing prevents rolling the contents of this package into adapter modules that
|
|
7
|
+
use it, but doing so will increase the download bundle size. In most cases it is
|
|
8
|
+
expected that adapter modules will reference the utilities here via runtime
|
|
9
|
+
`import`s and that multiple adapter modules will share a single copy of the
|
|
10
|
+
utilities.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CommandWireAdapterConstructor } from '@conduit-client/lwc-bindings';
|
|
2
|
+
import { type ConcreteConstructor } from '@conduit-client/utils';
|
|
3
|
+
import { type WireAdapterConstructor, type WireConfigValue } from '@conduit-client/lwc-types';
|
|
4
|
+
export type ConcreteCommandWireAdapterConstructor<Data, Config extends WireConfigValue = WireConfigValue> = ConcreteConstructor<typeof CommandWireAdapterConstructor<Data, Config>>;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a stub WireAdapterConstructor. If used, the stub will queue state until
|
|
7
|
+
* a real wire adapter constructor is supplied.
|
|
8
|
+
*
|
|
9
|
+
* The stub is guaranteed to forward the wire adapter calls to the real wire adapter
|
|
10
|
+
* synchronously iff realImplementation resolves synchronously. Once realImplementation
|
|
11
|
+
* settles, all future calls to the stub are guaranteed to be forwarded/rejected
|
|
12
|
+
* synchronously.
|
|
13
|
+
*
|
|
14
|
+
* @param realImplementation PromiseLike for the real implementation of the wire
|
|
15
|
+
* adapter constructor. If realImplementation rejects, the stub will emit with the
|
|
16
|
+
* same error.
|
|
17
|
+
* @returns stub wire adapter constructor
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildStubWireAdapterConstructor<Data, Config extends WireConfigValue = WireConfigValue>(realWireAdapterConstructor: PromiseLike<ConcreteCommandWireAdapterConstructor<Data, Config>>): WireAdapterConstructor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a stub implementation of an async function. If called, the stub will
|
|
3
|
+
* queue the call until a real implementation of the async function is supplied.
|
|
4
|
+
*
|
|
5
|
+
* The stub is guaranteed to forward the call to the real function synchronously
|
|
6
|
+
* iff realImplementation resolves synchronously. Once realImplementation settles,
|
|
7
|
+
* all future calls to the stub are guaranteed to be forwarded/rejected
|
|
8
|
+
* synchronously.
|
|
9
|
+
*
|
|
10
|
+
* @param realImplementation PromiseLike for the real implementation of the async
|
|
11
|
+
* function. If realImplementation rejects, all calls to the stub will reject
|
|
12
|
+
* with the same error.
|
|
13
|
+
* @returns async stub function
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildAsyncFunctionStub<AsyncFunc extends (...params: Array<any>) => PromiseLike<unknown>>(realImplementation: PromiseLike<AsyncFunc>): AsyncFunc;
|
package/dist/v1/index.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { resolvedPromiseLike, rejectedPromiseLike, toError } from "@conduit-client/utils";
|
|
7
|
+
import { racesync, withResolvers } from "@conduit-client/utils";
|
|
8
|
+
class StubWireAdapterConstructor {
|
|
9
|
+
constructor(realWireAdapterConstructor, callback, sourceContext) {
|
|
10
|
+
this.callback = callback;
|
|
11
|
+
this.sourceContext = sourceContext;
|
|
12
|
+
this.connected = false;
|
|
13
|
+
try {
|
|
14
|
+
this.callback({ data: void 0, error: void 0 });
|
|
15
|
+
} catch (e) {
|
|
16
|
+
throw toError(e);
|
|
17
|
+
}
|
|
18
|
+
realWireAdapterConstructor.then(
|
|
19
|
+
(realWAC) => {
|
|
20
|
+
this.realWireAdapter = new realWAC(this.callback, this.sourceContext, {
|
|
21
|
+
// we did an initial emit above, real wire adapter should not do another
|
|
22
|
+
skipEmptyEmit: true
|
|
23
|
+
});
|
|
24
|
+
if (this.connected) {
|
|
25
|
+
this.realWireAdapter.connect();
|
|
26
|
+
}
|
|
27
|
+
if (this.config) {
|
|
28
|
+
this.realWireAdapter.update(this.config, this.context);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
(err) => {
|
|
32
|
+
try {
|
|
33
|
+
this.callback({ data: void 0, error: toError(err) });
|
|
34
|
+
} catch (e) {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
connect() {
|
|
40
|
+
if (this.realWireAdapter) {
|
|
41
|
+
this.realWireAdapter.connect();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this.connected = true;
|
|
45
|
+
}
|
|
46
|
+
disconnect() {
|
|
47
|
+
if (this.realWireAdapter) {
|
|
48
|
+
this.realWireAdapter.disconnect();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.connected = false;
|
|
52
|
+
}
|
|
53
|
+
update(config, context) {
|
|
54
|
+
if (this.realWireAdapter) {
|
|
55
|
+
this.realWireAdapter.update(config, context);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
this.config = config;
|
|
59
|
+
this.context = context;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function buildStubWireAdapterConstructor(realWireAdapterConstructor) {
|
|
63
|
+
let wacPromise = realWireAdapterConstructor;
|
|
64
|
+
realWireAdapterConstructor.then(
|
|
65
|
+
(realWAC) => {
|
|
66
|
+
wacPromise = resolvedPromiseLike(realWAC);
|
|
67
|
+
},
|
|
68
|
+
(err) => {
|
|
69
|
+
wacPromise = rejectedPromiseLike(err);
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
return class extends StubWireAdapterConstructor {
|
|
73
|
+
constructor(callback, sourceContext) {
|
|
74
|
+
super(wacPromise, callback, sourceContext);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function buildAsyncFunctionStub(realImplementation) {
|
|
79
|
+
let realFunction;
|
|
80
|
+
let errorResult;
|
|
81
|
+
return ((...params) => {
|
|
82
|
+
if (realFunction) {
|
|
83
|
+
return realFunction(...params);
|
|
84
|
+
} else if (errorResult) {
|
|
85
|
+
return errorResult;
|
|
86
|
+
}
|
|
87
|
+
return realImplementation.then(
|
|
88
|
+
(f) => {
|
|
89
|
+
realFunction = f;
|
|
90
|
+
return f(...params);
|
|
91
|
+
},
|
|
92
|
+
(err) => {
|
|
93
|
+
errorResult = rejectedPromiseLike(err);
|
|
94
|
+
throw err;
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
buildAsyncFunctionStub,
|
|
101
|
+
buildStubWireAdapterConstructor,
|
|
102
|
+
racesync,
|
|
103
|
+
withResolvers
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/v1/CommandWireAdapterConstructor-stub.ts","../../src/v1/async-function-stub.ts"],"sourcesContent":["import { type CommandWireAdapterConstructor } from '@conduit-client/lwc-bindings';\nimport {\n type ConcreteConstructor,\n rejectedPromiseLike,\n resolvedPromiseLike,\n toError,\n} from '@conduit-client/utils';\nimport {\n type WireAdapter,\n type WireAdapterConstructor,\n type WireConfigValue,\n type WireContextValue,\n type WireDataCallback,\n} from '@conduit-client/lwc-types';\n\nexport type ConcreteCommandWireAdapterConstructor<\n Data,\n Config extends WireConfigValue = WireConfigValue,\n> = ConcreteConstructor<typeof CommandWireAdapterConstructor<Data, Config>>;\n\nclass StubWireAdapterConstructor<Data, Config extends WireConfigValue = WireConfigValue>\n implements WireAdapter\n{\n // queued state to be forwarded to the real wire adapter\n connected = false;\n config?: Config;\n context?: WireContextValue;\n realWireAdapter?: WireAdapter;\n\n constructor(\n realWireAdapterConstructor: PromiseLike<\n ConcreteCommandWireAdapterConstructor<Data, Config>\n >,\n protected callback: WireDataCallback,\n protected sourceContext?: {\n tagName?: string;\n }\n ) {\n try {\n this.callback({ data: undefined, error: undefined });\n } catch (e) {\n // TODO - need to handle this better\n throw toError(e);\n }\n\n realWireAdapterConstructor.then(\n (realWAC) => {\n this.realWireAdapter = new realWAC(this.callback, this.sourceContext, {\n // we did an initial emit above, real wire adapter should not do another\n skipEmptyEmit: true,\n });\n\n // copy queued state to new WireAdapter\n if (this.connected) {\n this.realWireAdapter.connect();\n }\n\n if (this.config) {\n this.realWireAdapter.update(this.config, this.context);\n }\n },\n (err) => {\n try {\n this.callback({ data: undefined, error: toError(err) });\n } catch (e) {\n // TODO - need to log this somewhere\n }\n }\n );\n }\n\n connect(): void {\n if (this.realWireAdapter) {\n this.realWireAdapter.connect();\n return;\n }\n\n this.connected = true;\n }\n\n disconnect(): void {\n if (this.realWireAdapter) {\n this.realWireAdapter.disconnect();\n return;\n }\n\n this.connected = false;\n }\n\n update(config: Config, context?: WireContextValue): void {\n if (this.realWireAdapter) {\n this.realWireAdapter.update(config, context);\n return;\n }\n\n this.config = config;\n this.context = context;\n }\n}\n\n/**\n * Returns a stub WireAdapterConstructor. If used, the stub will queue state until\n * a real wire adapter constructor is supplied.\n *\n * The stub is guaranteed to forward the wire adapter calls to the real wire adapter\n * synchronously iff realImplementation resolves synchronously. Once realImplementation\n * settles, all future calls to the stub are guaranteed to be forwarded/rejected\n * synchronously.\n *\n * @param realImplementation PromiseLike for the real implementation of the wire\n * adapter constructor. If realImplementation rejects, the stub will emit with the\n * same error.\n * @returns stub wire adapter constructor\n */\n\nexport function buildStubWireAdapterConstructor<\n Data,\n Config extends WireConfigValue = WireConfigValue,\n>(\n realWireAdapterConstructor: PromiseLike<ConcreteCommandWireAdapterConstructor<Data, Config>>\n): WireAdapterConstructor {\n let wacPromise = realWireAdapterConstructor;\n\n realWireAdapterConstructor.then(\n (realWAC) => {\n wacPromise = resolvedPromiseLike(realWAC);\n },\n (err) => {\n wacPromise = rejectedPromiseLike(err);\n }\n );\n\n return class extends StubWireAdapterConstructor<Data, Config> {\n constructor(\n callback: WireDataCallback,\n sourceContext?: {\n tagName?: string;\n }\n ) {\n super(wacPromise, callback, sourceContext);\n }\n };\n}\n","import { rejectedPromiseLike } from '@conduit-client/utils';\n\n/**\n * Returns a stub implementation of an async function. If called, the stub will\n * queue the call until a real implementation of the async function is supplied.\n *\n * The stub is guaranteed to forward the call to the real function synchronously\n * iff realImplementation resolves synchronously. Once realImplementation settles,\n * all future calls to the stub are guaranteed to be forwarded/rejected\n * synchronously.\n *\n * @param realImplementation PromiseLike for the real implementation of the async\n * function. If realImplementation rejects, all calls to the stub will reject\n * with the same error.\n * @returns async stub function\n */\nexport function buildAsyncFunctionStub<\n AsyncFunc extends (...params: Array<any>) => PromiseLike<unknown>,\n>(realImplementation: PromiseLike<AsyncFunc>): AsyncFunc {\n let realFunction: AsyncFunc | undefined;\n let errorResult: ReturnType<AsyncFunc> | undefined;\n\n return ((...params: Array<unknown>): PromiseLike<unknown> => {\n // synchronously passthrough to real function if we know it\n if (realFunction) {\n return realFunction(...params);\n }\n\n // synchronously reject if realImplementation previously rejected\n else if (errorResult) {\n return errorResult;\n }\n\n return realImplementation.then(\n (f) => {\n // save real function for next time\n realFunction = f;\n return f(...params);\n },\n (err) => {\n // save error for next time\n errorResult = rejectedPromiseLike(err) as ReturnType<AsyncFunc>;\n throw err;\n }\n );\n }) as AsyncFunc;\n}\n"],"names":[],"mappings":";;;;;;;AAoBA,MAAM,2BAEN;AAAA,EAOI,YACI,4BAGU,UACA,eAGZ;AAJY,SAAA,WAAA;AACA,SAAA,gBAAA;AAVd,SAAA,YAAY;AAcR,QAAI;AACA,WAAK,SAAS,EAAE,MAAM,QAAW,OAAO,QAAW;AAAA,IACvD,SAAS,GAAG;AAER,YAAM,QAAQ,CAAC;AAAA,IACnB;AAEA,+BAA2B;AAAA,MACvB,CAAC,YAAY;AACT,aAAK,kBAAkB,IAAI,QAAQ,KAAK,UAAU,KAAK,eAAe;AAAA;AAAA,UAElE,eAAe;AAAA,QAAA,CAClB;AAGD,YAAI,KAAK,WAAW;AAChB,eAAK,gBAAgB,QAAA;AAAA,QACzB;AAEA,YAAI,KAAK,QAAQ;AACb,eAAK,gBAAgB,OAAO,KAAK,QAAQ,KAAK,OAAO;AAAA,QACzD;AAAA,MACJ;AAAA,MACA,CAAC,QAAQ;AACL,YAAI;AACA,eAAK,SAAS,EAAE,MAAM,QAAW,OAAO,QAAQ,GAAG,GAAG;AAAA,QAC1D,SAAS,GAAG;AAAA,QAEZ;AAAA,MACJ;AAAA,IAAA;AAAA,EAER;AAAA,EAEA,UAAgB;AACZ,QAAI,KAAK,iBAAiB;AACtB,WAAK,gBAAgB,QAAA;AACrB;AAAA,IACJ;AAEA,SAAK,YAAY;AAAA,EACrB;AAAA,EAEA,aAAmB;AACf,QAAI,KAAK,iBAAiB;AACtB,WAAK,gBAAgB,WAAA;AACrB;AAAA,IACJ;AAEA,SAAK,YAAY;AAAA,EACrB;AAAA,EAEA,OAAO,QAAgB,SAAkC;AACrD,QAAI,KAAK,iBAAiB;AACtB,WAAK,gBAAgB,OAAO,QAAQ,OAAO;AAC3C;AAAA,IACJ;AAEA,SAAK,SAAS;AACd,SAAK,UAAU;AAAA,EACnB;AACJ;AAiBO,SAAS,gCAIZ,4BACsB;AACtB,MAAI,aAAa;AAEjB,6BAA2B;AAAA,IACvB,CAAC,YAAY;AACT,mBAAa,oBAAoB,OAAO;AAAA,IAC5C;AAAA,IACA,CAAC,QAAQ;AACL,mBAAa,oBAAoB,GAAG;AAAA,IACxC;AAAA,EAAA;AAGJ,SAAO,cAAc,2BAAyC;AAAA,IAC1D,YACI,UACA,eAGF;AACE,YAAM,YAAY,UAAU,aAAa;AAAA,IAC7C;AAAA,EAAA;AAER;AC9HO,SAAS,uBAEd,oBAAuD;AACrD,MAAI;AACJ,MAAI;AAEJ,UAAQ,IAAI,WAAiD;AAEzD,QAAI,cAAc;AACd,aAAO,aAAa,GAAG,MAAM;AAAA,IACjC,WAGS,aAAa;AAClB,aAAO;AAAA,IACX;AAEA,WAAO,mBAAmB;AAAA,MACtB,CAAC,MAAM;AAEH,uBAAe;AACf,eAAO,EAAE,GAAG,MAAM;AAAA,MACtB;AAAA,MACA,CAAC,QAAQ;AAEL,sBAAc,oBAAoB,GAAG;AACrC,cAAM;AAAA,MACV;AAAA,IAAA;AAAA,EAER;AACJ;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@conduit-client/adapter-module-init",
|
|
3
|
+
"version": "5.67.0-dev1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Luvio Adapter Module initialization",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/salesforce-experience-platform-emu/luvio-next.git",
|
|
10
|
+
"directory": "packages/@conduit-client/init"
|
|
11
|
+
},
|
|
12
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./v1": {
|
|
15
|
+
"import": "./dist/v1/index.js",
|
|
16
|
+
"types": "./dist/types/v1/index.d.ts",
|
|
17
|
+
"require": "./dist/v1/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"main": "./dist/main/index.js",
|
|
21
|
+
"module": "./dist/main/index.js",
|
|
22
|
+
"types": "./dist/main/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "vite build && tsc --build --emitDeclarationOnly",
|
|
28
|
+
"clean": "rm -rf dist",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:size": "size-limit",
|
|
31
|
+
"watch": "npm run build --watch"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@conduit-client/lwc-types": "5.67.0-dev1",
|
|
35
|
+
"@conduit-client/utils": "5.67.0-dev1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@conduit-client/lwc-bindings": "5.67.0-dev1"
|
|
39
|
+
},
|
|
40
|
+
"volta": {
|
|
41
|
+
"extends": "../../../package.json"
|
|
42
|
+
},
|
|
43
|
+
"size-limit": [
|
|
44
|
+
{
|
|
45
|
+
"path": "./dist/v1/index.js",
|
|
46
|
+
"limit": "700 B"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|