pkg-sdk-test 0.0.14 → 0.0.16
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/README.md +295 -0
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/Client.d.ts +4 -4
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/errors/BadRequestError.d.ts +3 -3
- package/dist/cjs/api/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/errors/InternalServerError.d.ts +3 -3
- package/dist/cjs/api/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/errors/NotFoundError.d.ts +3 -3
- package/dist/cjs/api/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +3 -3
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +1 -0
- package/dist/cjs/api/resources/payments/client/Client.d.ts +38 -23
- package/dist/cjs/api/resources/payments/client/Client.js +89 -36
- package/dist/cjs/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.ts +3 -3
- package/dist/cjs/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsRequest.d.ts +3 -2
- package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.ts +10 -0
- package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.js +3 -0
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.ts +2 -2
- package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.js +8 -0
- package/dist/cjs/api/resources/payments/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/payments/types/index.js +1 -0
- package/dist/cjs/api/resources/staticWallets/client/Client.d.ts +24 -23
- package/dist/cjs/api/resources/staticWallets/client/Client.js +59 -39
- package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.ts +2 -1
- package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.ts +12 -2
- package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.js +10 -0
- package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.ts +2 -1
- package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.js +3 -0
- package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.ts +7 -0
- package/dist/cjs/api/resources/staticWallets/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/staticWallets/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/staticWallets/index.d.ts +1 -0
- package/dist/cjs/api/resources/staticWallets/index.js +1 -0
- package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.js +8 -0
- package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.js +8 -0
- package/dist/cjs/api/resources/staticWallets/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/staticWallets/types/index.js +18 -0
- package/dist/cjs/api/types/CryptopayAssetId.d.ts +32 -0
- package/dist/cjs/api/types/CryptopayAssetId.js +35 -0
- package/dist/cjs/api/types/CryptopayListPaymentsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayListStaticDepositsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayListStaticWalletsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayPaymentResponse.d.ts +6 -6
- package/dist/cjs/api/types/CryptopayPublicPaymentResponse.d.ts +5 -5
- package/dist/cjs/api/types/CryptopayRedirectConfigDto.d.ts +11 -1
- package/dist/cjs/api/types/CryptopayRedirectConfigDto.js +11 -0
- package/dist/cjs/api/types/CryptopayStaticDepositResponse.d.ts +13 -2
- package/dist/cjs/api/types/CryptopayStaticDepositResponse.js +11 -0
- package/dist/cjs/api/types/CryptopayStaticWalletResponse.d.ts +2 -1
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.js +1 -1
- package/dist/cjs/errors/{SuwardApiError.d.ts → SuwardSDKError.d.ts} +1 -1
- package/dist/cjs/errors/{SuwardApiError.js → SuwardSDKError.js} +4 -4
- package/dist/{esm/errors/SuwardApiTimeoutError.d.mts → cjs/errors/SuwardSDKTimeoutError.d.ts} +1 -1
- package/dist/cjs/errors/{SuwardApiTimeoutError.js → SuwardSDKTimeoutError.js} +4 -4
- package/dist/cjs/errors/handleNonStatusCodeError.js +5 -5
- package/dist/cjs/errors/index.d.ts +2 -2
- package/dist/cjs/errors/index.js +5 -5
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/Client.d.mts +4 -4
- package/dist/esm/Client.mjs +1 -1
- package/dist/esm/api/errors/BadRequestError.d.mts +3 -3
- package/dist/esm/api/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/errors/InternalServerError.d.mts +3 -3
- package/dist/esm/api/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/errors/NotFoundError.d.mts +3 -3
- package/dist/esm/api/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +3 -3
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/payments/client/Client.d.mts +38 -23
- package/dist/esm/api/resources/payments/client/Client.mjs +89 -36
- package/dist/esm/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.mts +3 -3
- package/dist/esm/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsRequest.d.mts +3 -2
- package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.mts +10 -0
- package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.mjs +2 -0
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.mts +2 -2
- package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.mjs +5 -0
- package/dist/esm/api/resources/payments/types/index.d.mts +1 -0
- package/dist/esm/api/resources/payments/types/index.mjs +1 -0
- package/dist/esm/api/resources/staticWallets/client/Client.d.mts +24 -23
- package/dist/esm/api/resources/staticWallets/client/Client.mjs +59 -39
- package/dist/esm/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.mts +2 -1
- package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.mts +12 -2
- package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.mjs +9 -1
- package/dist/esm/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.mts +2 -1
- package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.mts +13 -0
- package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.mjs +2 -0
- package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.mts +7 -0
- package/dist/esm/api/resources/staticWallets/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/staticWallets/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/staticWallets/index.d.mts +1 -0
- package/dist/esm/api/resources/staticWallets/index.mjs +1 -0
- package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.mjs +5 -0
- package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.mjs +5 -0
- package/dist/esm/api/resources/staticWallets/types/index.d.mts +2 -0
- package/dist/esm/api/resources/staticWallets/types/index.mjs +2 -0
- package/dist/esm/api/types/CryptopayAssetId.d.mts +32 -0
- package/dist/esm/api/types/CryptopayAssetId.mjs +32 -0
- package/dist/esm/api/types/CryptopayListPaymentsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayListStaticDepositsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayListStaticWalletsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayPaymentResponse.d.mts +6 -6
- package/dist/esm/api/types/CryptopayPublicPaymentResponse.d.mts +5 -5
- package/dist/esm/api/types/CryptopayRedirectConfigDto.d.mts +11 -1
- package/dist/esm/api/types/CryptopayRedirectConfigDto.mjs +10 -1
- package/dist/esm/api/types/CryptopayStaticDepositResponse.d.mts +13 -2
- package/dist/esm/api/types/CryptopayStaticDepositResponse.mjs +10 -1
- package/dist/esm/api/types/CryptopayStaticWalletResponse.d.mts +2 -1
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/auth/HeaderAuthProvider.d.mts +1 -1
- package/dist/esm/auth/HeaderAuthProvider.mjs +1 -1
- package/dist/esm/errors/{SuwardApiError.d.mts → SuwardSDKError.d.mts} +1 -1
- package/dist/esm/errors/{SuwardApiError.mjs → SuwardSDKError.mjs} +2 -2
- package/dist/{cjs/errors/SuwardApiTimeoutError.d.ts → esm/errors/SuwardSDKTimeoutError.d.mts} +1 -1
- package/dist/esm/errors/{SuwardApiTimeoutError.mjs → SuwardSDKTimeoutError.mjs} +2 -2
- package/dist/esm/errors/handleNonStatusCodeError.mjs +5 -5
- package/dist/esm/errors/index.d.mts +2 -2
- package/dist/esm/errors/index.mjs +2 -2
- package/dist/esm/index.d.mts +3 -3
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +86 -82
- package/reference.md +771 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type * as SuwardSDK from "../index.mjs";
|
|
1
2
|
export interface CryptopayStaticWalletResponse {
|
|
2
3
|
address?: string | undefined;
|
|
3
|
-
allowedAssets?:
|
|
4
|
+
allowedAssets?: SuwardSDK.CryptopayAssetId[] | undefined;
|
|
4
5
|
createdAt?: number | undefined;
|
|
5
6
|
externalId?: string | undefined;
|
|
6
7
|
id?: string | undefined;
|
|
@@ -13,7 +13,7 @@ export declare namespace HeaderAuthProvider {
|
|
|
13
13
|
const AUTH_CONFIG_ERROR_MESSAGE: string;
|
|
14
14
|
type Options = AuthOptions;
|
|
15
15
|
type AuthOptions = {
|
|
16
|
-
[PARAM_KEY]
|
|
16
|
+
[PARAM_KEY]?: core.Supplier<string>;
|
|
17
17
|
};
|
|
18
18
|
function createInstance(options: Options): core.AuthProvider;
|
|
19
19
|
}
|
|
@@ -23,7 +23,7 @@ export class HeaderAuthProvider {
|
|
|
23
23
|
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
24
24
|
const headerValue = yield core.Supplier.get(this.options[PARAM_KEY]);
|
|
25
25
|
if (headerValue == null) {
|
|
26
|
-
throw new errors.
|
|
26
|
+
throw new errors.SuwardSDKError({
|
|
27
27
|
message: HeaderAuthProvider.AUTH_CONFIG_ERROR_MESSAGE,
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import { toJson } from "../core/json.mjs";
|
|
3
|
-
export class
|
|
3
|
+
export class SuwardSDKError extends Error {
|
|
4
4
|
constructor({ message, statusCode, body, rawResponse, cause, }) {
|
|
5
5
|
super(buildMessage({ message, statusCode, body }));
|
|
6
6
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
7
7
|
if (Error.captureStackTrace) {
|
|
8
8
|
Error.captureStackTrace(this, this.constructor);
|
|
9
9
|
}
|
|
10
|
-
this.name = "
|
|
10
|
+
this.name = "SuwardSDKError";
|
|
11
11
|
this.statusCode = statusCode;
|
|
12
12
|
this.body = body;
|
|
13
13
|
this.rawResponse = rawResponse;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export class
|
|
2
|
+
export class SuwardSDKTimeoutError extends Error {
|
|
3
3
|
constructor(message, opts) {
|
|
4
4
|
super(message);
|
|
5
5
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
6
6
|
if (Error.captureStackTrace) {
|
|
7
7
|
Error.captureStackTrace(this, this.constructor);
|
|
8
8
|
}
|
|
9
|
-
this.name = "
|
|
9
|
+
this.name = "SuwardSDKTimeoutError";
|
|
10
10
|
if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
|
|
11
11
|
this.cause = opts.cause;
|
|
12
12
|
}
|
|
@@ -3,28 +3,28 @@ import * as errors from "./index.mjs";
|
|
|
3
3
|
export function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
4
4
|
switch (error.reason) {
|
|
5
5
|
case "non-json":
|
|
6
|
-
throw new errors.
|
|
6
|
+
throw new errors.SuwardSDKError({
|
|
7
7
|
statusCode: error.statusCode,
|
|
8
8
|
body: error.rawBody,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
11
|
case "body-is-null":
|
|
12
|
-
throw new errors.
|
|
12
|
+
throw new errors.SuwardSDKError({
|
|
13
13
|
statusCode: error.statusCode,
|
|
14
14
|
rawResponse: rawResponse,
|
|
15
15
|
});
|
|
16
16
|
case "timeout":
|
|
17
|
-
throw new errors.
|
|
17
|
+
throw new errors.SuwardSDKTimeoutError(`Timeout exceeded when calling ${method} ${path}.`, {
|
|
18
18
|
cause: error.cause,
|
|
19
19
|
});
|
|
20
20
|
case "unknown":
|
|
21
|
-
throw new errors.
|
|
21
|
+
throw new errors.SuwardSDKError({
|
|
22
22
|
message: error.errorMessage,
|
|
23
23
|
rawResponse: rawResponse,
|
|
24
24
|
cause: error.cause,
|
|
25
25
|
});
|
|
26
26
|
default:
|
|
27
|
-
throw new errors.
|
|
27
|
+
throw new errors.SuwardSDKError({
|
|
28
28
|
message: "Unknown error",
|
|
29
29
|
rawResponse: rawResponse,
|
|
30
30
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { SuwardSDKError } from "./SuwardSDKError.mjs";
|
|
2
|
+
export { SuwardSDKTimeoutError } from "./SuwardSDKTimeoutError.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { SuwardSDKError } from "./SuwardSDKError.mjs";
|
|
2
|
+
export { SuwardSDKTimeoutError } from "./SuwardSDKTimeoutError.mjs";
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as SuwardSDK from "./api/index.mjs";
|
|
2
2
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { SuwardSDKClient } from "./Client.mjs";
|
|
4
|
+
export { SuwardSDKError, SuwardSDKTimeoutError } from "./errors/index.mjs";
|
|
5
5
|
export * from "./exports.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export * as SuwardSDK from "./api/index.mjs";
|
|
2
|
+
export { SuwardSDKClient } from "./Client.mjs";
|
|
3
|
+
export { SuwardSDKError, SuwardSDKTimeoutError } from "./errors/index.mjs";
|
|
4
4
|
export * from "./exports.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.16";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.16";
|
package/package.json
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": {
|
|
11
|
-
"types": "./dist/esm/index.d.mts",
|
|
12
|
-
"default": "./dist/esm/index.mjs"
|
|
13
|
-
},
|
|
14
|
-
"require": {
|
|
15
|
-
"types": "./dist/cjs/index.d.ts",
|
|
16
|
-
"default": "./dist/cjs/index.js"
|
|
17
|
-
},
|
|
18
|
-
"default": "./dist/cjs/index.js"
|
|
2
|
+
"name": "pkg-sdk-test",
|
|
3
|
+
"version": "0.0.16",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/crylabsorg/suward-sdk-ts.git"
|
|
19
8
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"module": "./dist/esm/index.mjs",
|
|
12
|
+
"types": "./dist/cjs/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/esm/index.d.mts",
|
|
17
|
+
"default": "./dist/esm/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/cjs/index.d.ts",
|
|
21
|
+
"default": "./dist/cjs/index.js"
|
|
22
|
+
},
|
|
23
|
+
"default": "./dist/cjs/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./payments": {
|
|
26
|
+
"import": {
|
|
27
|
+
"types": "./dist/esm/api/resources/payments/exports.d.mts",
|
|
28
|
+
"default": "./dist/esm/api/resources/payments/exports.mjs"
|
|
29
|
+
},
|
|
30
|
+
"require": {
|
|
31
|
+
"types": "./dist/cjs/api/resources/payments/exports.d.ts",
|
|
32
|
+
"default": "./dist/cjs/api/resources/payments/exports.js"
|
|
33
|
+
},
|
|
34
|
+
"default": "./dist/cjs/api/resources/payments/exports.js"
|
|
35
|
+
},
|
|
36
|
+
"./staticWallets": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/esm/api/resources/staticWallets/exports.d.mts",
|
|
39
|
+
"default": "./dist/esm/api/resources/staticWallets/exports.mjs"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/cjs/api/resources/staticWallets/exports.d.ts",
|
|
43
|
+
"default": "./dist/cjs/api/resources/staticWallets/exports.js"
|
|
44
|
+
},
|
|
45
|
+
"default": "./dist/cjs/api/resources/staticWallets/exports.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
30
48
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"reference.md",
|
|
52
|
+
"README.md",
|
|
53
|
+
"LICENSE"
|
|
54
|
+
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
57
|
+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
58
|
+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
59
|
+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
60
|
+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
61
|
+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
62
|
+
"build": "pnpm build:cjs && pnpm build:esm",
|
|
63
|
+
"build:cjs": "tsc --project ./tsconfig.cjs.json",
|
|
64
|
+
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
|
|
65
|
+
"test": "vitest",
|
|
66
|
+
"test:unit": "vitest --project unit",
|
|
67
|
+
"test:wire": "vitest --project wire"
|
|
41
68
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"dependencies": {},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"webpack": "^5.105.4",
|
|
67
|
-
"ts-loader": "^9.5.4",
|
|
68
|
-
"vitest": "^4.1.1",
|
|
69
|
-
"msw": "2.11.2",
|
|
70
|
-
"@types/node": "^20.0.0",
|
|
71
|
-
"typescript": "~5.9.3",
|
|
72
|
-
"@biomejs/biome": "2.4.10"
|
|
73
|
-
},
|
|
74
|
-
"browser": {
|
|
75
|
-
"fs": false,
|
|
76
|
-
"os": false,
|
|
77
|
-
"path": false,
|
|
78
|
-
"stream": false,
|
|
79
|
-
"crypto": false
|
|
80
|
-
},
|
|
81
|
-
"packageManager": "pnpm@10.33.0",
|
|
82
|
-
"engines": {
|
|
83
|
-
"node": ">=18.0.0"
|
|
84
|
-
},
|
|
85
|
-
"sideEffects": false,
|
|
86
|
-
"name": "pkg-sdk-test"
|
|
69
|
+
"dependencies": {},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"webpack": "^5.105.4",
|
|
72
|
+
"ts-loader": "^9.5.4",
|
|
73
|
+
"vitest": "^4.1.1",
|
|
74
|
+
"msw": "2.11.2",
|
|
75
|
+
"@types/node": "^20.0.0",
|
|
76
|
+
"typescript": "~5.9.3",
|
|
77
|
+
"@biomejs/biome": "2.4.10"
|
|
78
|
+
},
|
|
79
|
+
"browser": {
|
|
80
|
+
"fs": false,
|
|
81
|
+
"os": false,
|
|
82
|
+
"path": false,
|
|
83
|
+
"stream": false,
|
|
84
|
+
"crypto": false
|
|
85
|
+
},
|
|
86
|
+
"packageManager": "pnpm@10.33.0",
|
|
87
|
+
"engines": {
|
|
88
|
+
"node": ">=18.0.0"
|
|
89
|
+
},
|
|
90
|
+
"sideEffects": false
|
|
87
91
|
}
|