@solana/transaction-confirmation 2.0.0-development.1532546
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 +20 -0
- package/README.md +178 -0
- package/dist/index.browser.cjs +283 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.js +275 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.native.js +275 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.node.cjs +283 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.js +275 -0
- package/dist/index.node.js.map +1 -0
- package/dist/types/confirmation-strategy-blockheight.d.ts +14 -0
- package/dist/types/confirmation-strategy-blockheight.d.ts.map +1 -0
- package/dist/types/confirmation-strategy-nonce.d.ts +13 -0
- package/dist/types/confirmation-strategy-nonce.d.ts.map +1 -0
- package/dist/types/confirmation-strategy-racer.d.ts +14 -0
- package/dist/types/confirmation-strategy-racer.d.ts.map +1 -0
- package/dist/types/confirmation-strategy-recent-signature.d.ts +11 -0
- package/dist/types/confirmation-strategy-recent-signature.d.ts.map +1 -0
- package/dist/types/confirmation-strategy-timeout.d.ts +8 -0
- package/dist/types/confirmation-strategy-timeout.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/waiters.d.ts +29 -0
- package/dist/types/waiters.d.ts.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GetEpochInfoApi, SlotNotificationsApi } from '@solana/rpc-core';
|
|
2
|
+
import type { Rpc, RpcSubscriptions } from '@solana/rpc-types';
|
|
3
|
+
import { Commitment } from '@solana/rpc-types';
|
|
4
|
+
type GetBlockHeightExceedencePromiseFn = (config: {
|
|
5
|
+
abortSignal: AbortSignal;
|
|
6
|
+
commitment?: Commitment;
|
|
7
|
+
lastValidBlockHeight: bigint;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
export declare function createBlockHeightExceedencePromiseFactory({ rpc, rpcSubscriptions, }: Readonly<{
|
|
10
|
+
rpc: Rpc<GetEpochInfoApi>;
|
|
11
|
+
rpcSubscriptions: RpcSubscriptions<SlotNotificationsApi>;
|
|
12
|
+
}>): GetBlockHeightExceedencePromiseFn;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=confirmation-strategy-blockheight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation-strategy-blockheight.d.ts","sourceRoot":"","sources":["../../src/confirmation-strategy-blockheight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,KAAK,iCAAiC,GAAG,CAAC,MAAM,EAAE;IAC9C,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAChC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,wBAAgB,yCAAyC,CAAC,EACtD,GAAG,EACH,gBAAgB,GACnB,EAAE,QAAQ,CAAC;IACR,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CAC5D,CAAC,GAAG,iCAAiC,CA4DrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import type { AccountNotificationsApi, GetAccountInfoApi } from '@solana/rpc-core';
|
|
3
|
+
import type { Commitment, Rpc, RpcSubscriptions } from '@solana/rpc-types';
|
|
4
|
+
import { Nonce } from '@solana/transactions';
|
|
5
|
+
type GetNonceInvalidationPromiseFn = (config: {
|
|
6
|
+
abortSignal: AbortSignal;
|
|
7
|
+
commitment: Commitment;
|
|
8
|
+
currentNonceValue: Nonce;
|
|
9
|
+
nonceAccountAddress: Address;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
export declare function createNonceInvalidationPromiseFactory(rpc: Rpc<GetAccountInfoApi>, rpcSubscriptions: RpcSubscriptions<AccountNotificationsApi>): GetNonceInvalidationPromiseFn;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=confirmation-strategy-nonce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation-strategy-nonce.d.ts","sourceRoot":"","sources":["../../src/confirmation-strategy-nonce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAA6B,UAAU,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,KAAK,6BAA6B,GAAG,CAAC,MAAM,EAAE;IAC1C,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,iBAAiB,EAAE,KAAK,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAChC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAQpB,wBAAgB,qCAAqC,CACjD,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,EAC3B,gBAAgB,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,GAC5D,6BAA6B,CA0E/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import { Commitment } from '@solana/rpc-types';
|
|
3
|
+
import { createRecentSignatureConfirmationPromiseFactory } from './confirmation-strategy-recent-signature.js';
|
|
4
|
+
export interface BaseTransactionConfirmationStrategyConfig {
|
|
5
|
+
abortSignal?: AbortSignal;
|
|
6
|
+
commitment: Commitment;
|
|
7
|
+
getRecentSignatureConfirmationPromise: ReturnType<typeof createRecentSignatureConfirmationPromiseFactory>;
|
|
8
|
+
}
|
|
9
|
+
type WithNonNullableAbortSignal<T> = Omit<T, 'abortSignal'> & Readonly<{
|
|
10
|
+
abortSignal: AbortSignal;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function raceStrategies<TConfig extends BaseTransactionConfirmationStrategyConfig>(signature: Signature, config: TConfig, getSpecificStrategiesForRace: (config: WithNonNullableAbortSignal<TConfig>) => readonly Promise<unknown>[]): Promise<unknown>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=confirmation-strategy-racer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation-strategy-racer.d.ts","sourceRoot":"","sources":["../../src/confirmation-strategy-racer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,+CAA+C,EAAE,MAAM,0CAA0C,CAAC;AAE3G,MAAM,WAAW,yCAAyC;IACtD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,qCAAqC,EAAE,UAAU,CAAC,OAAO,+CAA+C,CAAC,CAAC;CAC7G;AAED,KAAK,0BAA0B,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAErG,wBAAsB,cAAc,CAAC,OAAO,SAAS,yCAAyC,EAC1F,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,OAAO,EACf,4BAA4B,EAAE,CAAC,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC,KAAK,SAAS,OAAO,CAAC,OAAO,CAAC,EAAE,oBA2B7G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import type { GetSignatureStatusesApi, SignatureNotificationsApi } from '@solana/rpc-core';
|
|
3
|
+
import { type Commitment, type Rpc, type RpcSubscriptions } from '@solana/rpc-types';
|
|
4
|
+
type GetRecentSignatureConfirmationPromiseFn = (config: {
|
|
5
|
+
abortSignal: AbortSignal;
|
|
6
|
+
commitment: Commitment;
|
|
7
|
+
signature: Signature;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
export declare function createRecentSignatureConfirmationPromiseFactory(rpc: Rpc<GetSignatureStatusesApi>, rpcSubscriptions: RpcSubscriptions<SignatureNotificationsApi>): GetRecentSignatureConfirmationPromiseFn;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=confirmation-strategy-recent-signature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation-strategy-recent-signature.d.ts","sourceRoot":"","sources":["../../src/confirmation-strategy-recent-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,KAAK,UAAU,EAAwB,KAAK,GAAG,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE3G,KAAK,uCAAuC,GAAG,CAAC,MAAM,EAAE;IACpD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;CACxB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,wBAAgB,+CAA+C,CAC3D,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,EACjC,gBAAgB,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,GAC9D,uCAAuC,CAwDzC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Commitment } from '@solana/rpc-types';
|
|
2
|
+
type Config = Readonly<{
|
|
3
|
+
abortSignal: AbortSignal;
|
|
4
|
+
commitment: Commitment;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function getTimeoutPromise({ abortSignal: callerAbortSignal, commitment }: Config): Promise<unknown>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=confirmation-strategy-timeout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation-strategy-timeout.d.ts","sourceRoot":"","sources":["../../src/confirmation-strategy-timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,KAAK,MAAM,GAAG,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;CAC1B,CAAC,CAAC;AAEH,wBAAsB,iBAAiB,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,MAAM,oBAmB7F"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './confirmation-strategy-blockheight.js';
|
|
2
|
+
export * from './confirmation-strategy-nonce.js';
|
|
3
|
+
export * from './confirmation-strategy-recent-signature.js';
|
|
4
|
+
export * from './confirmation-strategy-timeout.js';
|
|
5
|
+
export * from './waiters.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import type { Slot } from '@solana/rpc-types';
|
|
3
|
+
import { IDurableNonceTransaction, ITransactionWithFeePayer, ITransactionWithSignatures } from '@solana/transactions';
|
|
4
|
+
import { createBlockHeightExceedencePromiseFactory } from './confirmation-strategy-blockheight.js';
|
|
5
|
+
import { createNonceInvalidationPromiseFactory } from './confirmation-strategy-nonce.js';
|
|
6
|
+
import { BaseTransactionConfirmationStrategyConfig } from './confirmation-strategy-racer.js';
|
|
7
|
+
import { getTimeoutPromise } from './confirmation-strategy-timeout.js';
|
|
8
|
+
interface WaitForDurableNonceTransactionConfirmationConfig extends BaseTransactionConfirmationStrategyConfig {
|
|
9
|
+
getNonceInvalidationPromise: ReturnType<typeof createNonceInvalidationPromiseFactory>;
|
|
10
|
+
transaction: ITransactionWithFeePayer & ITransactionWithSignatures & IDurableNonceTransaction;
|
|
11
|
+
}
|
|
12
|
+
interface WaitForRecentTransactionWithBlockhashLifetimeConfirmationConfig extends BaseTransactionConfirmationStrategyConfig {
|
|
13
|
+
getBlockHeightExceedencePromise: ReturnType<typeof createBlockHeightExceedencePromiseFactory>;
|
|
14
|
+
transaction: ITransactionWithFeePayer & ITransactionWithSignatures & Readonly<{
|
|
15
|
+
lifetimeConstraint: {
|
|
16
|
+
lastValidBlockHeight: Slot;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
interface WaitForRecentTransactionWithTimeBasedLifetimeConfirmationConfig extends BaseTransactionConfirmationStrategyConfig {
|
|
21
|
+
getTimeoutPromise: typeof getTimeoutPromise;
|
|
22
|
+
signature: Signature;
|
|
23
|
+
}
|
|
24
|
+
export declare function waitForDurableNonceTransactionConfirmation(config: WaitForDurableNonceTransactionConfirmationConfig): Promise<void>;
|
|
25
|
+
export declare function waitForRecentTransactionConfirmation(config: WaitForRecentTransactionWithBlockhashLifetimeConfirmationConfig): Promise<void>;
|
|
26
|
+
/** @deprecated */
|
|
27
|
+
export declare function waitForRecentTransactionConfirmationUntilTimeout(config: WaitForRecentTransactionWithTimeBasedLifetimeConfirmationConfig): Promise<void>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=waiters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waiters.d.ts","sourceRoot":"","sources":["../../src/waiters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAEH,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,yCAAyC,EAAkB,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,UAAU,gDAAiD,SAAQ,yCAAyC;IACxG,2BAA2B,EAAE,UAAU,CAAC,OAAO,qCAAqC,CAAC,CAAC;IACtF,WAAW,EAAE,wBAAwB,GAAG,0BAA0B,GAAG,wBAAwB,CAAC;CACjG;AAED,UAAU,+DACN,SAAQ,yCAAyC;IACjD,+BAA+B,EAAE,UAAU,CAAC,OAAO,yCAAyC,CAAC,CAAC;IAC9F,WAAW,EAAE,wBAAwB,GACjC,0BAA0B,GAC1B,QAAQ,CAAC;QACL,kBAAkB,EAAE;YAChB,oBAAoB,EAAE,IAAI,CAAC;SAC9B,CAAC;KACL,CAAC,CAAC;CACV;AAED,UAAU,+DACN,SAAQ,yCAAyC;IACjD,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,SAAS,EAAE,SAAS,CAAC;CACxB;AAED,wBAAsB,0CAA0C,CAC5D,MAAM,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC,CAef;AAED,wBAAsB,oCAAoC,CACtD,MAAM,EAAE,+DAA+D,GACxE,OAAO,CAAC,IAAI,CAAC,CAmBf;AAED,kBAAkB;AAClB,wBAAsB,gDAAgD,CAClE,MAAM,EAAE,+DAA+D,GACxE,OAAO,CAAC,IAAI,CAAC,CAaf"}
|
package/package.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@solana/transaction-confirmation",
|
|
3
|
+
"version": "2.0.0-development.1532546",
|
|
4
|
+
"description": "Helpers for confirming Solana transactions",
|
|
5
|
+
"exports": {
|
|
6
|
+
"browser": {
|
|
7
|
+
"import": "./dist/index.browser.js",
|
|
8
|
+
"require": "./dist/index.browser.cjs"
|
|
9
|
+
},
|
|
10
|
+
"node": {
|
|
11
|
+
"import": "./dist/index.node.js",
|
|
12
|
+
"require": "./dist/index.node.cjs"
|
|
13
|
+
},
|
|
14
|
+
"react-native": "./dist/index.native.js",
|
|
15
|
+
"types": "./dist/types/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"browser": {
|
|
18
|
+
"./dist/index.node.cjs": "./dist/index.browser.cjs",
|
|
19
|
+
"./dist/index.node.js": "./dist/index.browser.js"
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/index.node.cjs",
|
|
22
|
+
"module": "./dist/index.node.js",
|
|
23
|
+
"react-native": "./dist/index.native.js",
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"./dist/"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"keywords": [
|
|
31
|
+
"blockchain",
|
|
32
|
+
"solana",
|
|
33
|
+
"web3"
|
|
34
|
+
],
|
|
35
|
+
"author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/solana-labs/solana-web3.js"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "http://github.com/solana-labs/solana-web3.js/issues"
|
|
43
|
+
},
|
|
44
|
+
"browserslist": [
|
|
45
|
+
"supports bigint and not dead",
|
|
46
|
+
"maintained node versions"
|
|
47
|
+
],
|
|
48
|
+
"engine": {
|
|
49
|
+
"node": ">=17.4"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@solana/addresses": "2.0.0-experimental.1532546",
|
|
53
|
+
"@solana/codecs-strings": "2.0.0-experimental.1532546",
|
|
54
|
+
"@solana/errors": "2.0.0-experimental.1532546",
|
|
55
|
+
"@solana/keys": "2.0.0-experimental.1532546",
|
|
56
|
+
"@solana/transactions": "2.0.0-experimental.1532546",
|
|
57
|
+
"@solana/rpc-core": "2.0.0-experimental.1532546",
|
|
58
|
+
"@solana/rpc-types": "2.0.0-experimental.1532546"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@solana/eslint-config-solana": "^1.0.2",
|
|
62
|
+
"@solana/instructions": "2.0.0-experimental.1532546",
|
|
63
|
+
"@swc/jest": "^0.2.29",
|
|
64
|
+
"@types/jest": "^29.5.11",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
66
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
67
|
+
"agadoo": "^3.0.0",
|
|
68
|
+
"build-scripts": "0.0.0",
|
|
69
|
+
"eslint": "^8.45.0",
|
|
70
|
+
"eslint-plugin-jest": "^27.4.2",
|
|
71
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
72
|
+
"jest": "^29.7.0",
|
|
73
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
74
|
+
"jest-runner-eslint": "^2.1.2",
|
|
75
|
+
"jest-runner-prettier": "^1.0.0",
|
|
76
|
+
"prettier": "^3.1",
|
|
77
|
+
"test-config": "0.0.0",
|
|
78
|
+
"tsconfig": "0.0.0",
|
|
79
|
+
"tsup": "^8.0.1",
|
|
80
|
+
"typescript": "^5.2.2",
|
|
81
|
+
"version-from-git": "^1.1.1"
|
|
82
|
+
},
|
|
83
|
+
"bundlewatch": {
|
|
84
|
+
"defaultCompression": "gzip",
|
|
85
|
+
"files": [
|
|
86
|
+
{
|
|
87
|
+
"path": "./dist/index*.js"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"scripts": {
|
|
92
|
+
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
93
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
|
|
94
|
+
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
95
|
+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|
|
96
|
+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|
|
97
|
+
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
98
|
+
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
99
|
+
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
100
|
+
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
101
|
+
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
102
|
+
"test:typecheck": "tsc --noEmit",
|
|
103
|
+
"test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
104
|
+
"test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
105
|
+
}
|
|
106
|
+
}
|