@myparcel-dev/sdk 4.1.0
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 +21 -0
- package/README.md +15 -0
- package/lib/createMyParcelSdk.d.ts +14 -0
- package/lib/createMyParcelSdk.spec.d.ts +1 -0
- package/lib/createPrivateSdk.d.ts +7 -0
- package/lib/createPrivateSdk.spec.d.ts +1 -0
- package/lib/createPublicSdk.d.ts +7 -0
- package/lib/endpoints/endpoints.spec.d.ts +1 -0
- package/lib/endpoints/index.d.ts +2 -0
- package/lib/endpoints/private/account-messages/AccountMessages.types.d.ts +6 -0
- package/lib/endpoints/private/account-messages/DeleteAccountMessage.d.ts +19 -0
- package/lib/endpoints/private/account-messages/GetAccountMessages.d.ts +19 -0
- package/lib/endpoints/private/account-messages/index.d.ts +3 -0
- package/lib/endpoints/private/accounts/Account.types.d.ts +58 -0
- package/lib/endpoints/private/accounts/GetAccount.d.ts +19 -0
- package/lib/endpoints/private/accounts/GetAccounts.d.ts +13 -0
- package/lib/endpoints/private/accounts/PutAccount.d.ts +18 -0
- package/lib/endpoints/private/accounts/index.d.ts +4 -0
- package/lib/endpoints/private/api-key/ApiKey.types.d.ts +12 -0
- package/lib/endpoints/private/api-key/GetApiKeys.d.ts +16 -0
- package/lib/endpoints/private/api-key/PostApiKeys.d.ts +19 -0
- package/lib/endpoints/private/api-key/index.d.ts +3 -0
- package/lib/endpoints/private/carrier-options/CarrierOption.types.d.ts +46 -0
- package/lib/endpoints/private/carrier-options/DeleteCarrierOptions.d.ts +17 -0
- package/lib/endpoints/private/carrier-options/GetCarrierOptions.d.ts +17 -0
- package/lib/endpoints/private/carrier-options/PostCarrierOptions.d.ts +19 -0
- package/lib/endpoints/private/carrier-options/PutCarrierOptions.d.ts +21 -0
- package/lib/endpoints/private/carrier-options/index.d.ts +5 -0
- package/lib/endpoints/private/index.d.ts +13 -0
- package/lib/endpoints/private/locations/GetLocations.d.ts +14 -0
- package/lib/endpoints/private/locations/Location.types.d.ts +9 -0
- package/lib/endpoints/private/locations/index.d.ts +2 -0
- package/lib/endpoints/private/shipments/GetShipment.d.ts +19 -0
- package/lib/endpoints/private/shipments/GetShipments.d.ts +22 -0
- package/lib/endpoints/private/shipments/PatchShipment.d.ts +21 -0
- package/lib/endpoints/private/shipments/PostShipments.d.ts +23 -0
- package/lib/endpoints/private/shipments/Shipment.types.d.ts +175 -0
- package/lib/endpoints/private/shipments/index.d.ts +4 -0
- package/lib/endpoints/private/shops/GetShop.d.ts +19 -0
- package/lib/endpoints/private/shops/PostShop.d.ts +22 -0
- package/lib/endpoints/private/shops/PostShopDuplicate.d.ts +23 -0
- package/lib/endpoints/private/shops/PutShop.d.ts +16 -0
- package/lib/endpoints/private/shops/Shop.types.d.ts +80 -0
- package/lib/endpoints/private/shops/index.d.ts +5 -0
- package/lib/endpoints/private/subscription-capabilities/GetSubscriptionCapabilities.d.ts +17 -0
- package/lib/endpoints/private/subscription-capabilities/SubscriptionCapability.types.d.ts +23 -0
- package/lib/endpoints/private/subscription-capabilities/index.d.ts +2 -0
- package/lib/endpoints/private/subscriptions/DeleteSubscription.d.ts +16 -0
- package/lib/endpoints/private/subscriptions/GetSubscriptions.d.ts +17 -0
- package/lib/endpoints/private/subscriptions/PatchSubscriptions.d.ts +19 -0
- package/lib/endpoints/private/subscriptions/PostSubscriptions.d.ts +19 -0
- package/lib/endpoints/private/subscriptions/Subscriptions.types.d.ts +30 -0
- package/lib/endpoints/private/subscriptions/index.d.ts +5 -0
- package/lib/endpoints/private/system-country-codes/GetSystemCountryCodes.d.ts +14 -0
- package/lib/endpoints/private/system-country-codes/SystemCountryCodes.types.d.ts +10 -0
- package/lib/endpoints/private/system-country-codes/index.d.ts +2 -0
- package/lib/endpoints/private/system-messages/GetSystemMessages.d.ts +16 -0
- package/lib/endpoints/private/system-messages/SystemMessage.types.d.ts +18 -0
- package/lib/endpoints/private/system-messages/index.d.ts +2 -0
- package/lib/endpoints/private/track-traces/GetTrackAndTraceByShipment.d.ts +16 -0
- package/lib/endpoints/private/track-traces/TrackTraces.types.d.ts +50 -0
- package/lib/endpoints/private/track-traces/index.d.ts +2 -0
- package/lib/endpoints/private/webhook-subscriptions/DeleteWebhookSubscriptions.d.ts +16 -0
- package/lib/endpoints/private/webhook-subscriptions/GetWebhookSubscriptions.d.ts +14 -0
- package/lib/endpoints/private/webhook-subscriptions/PostWebhookSubscriptions.d.ts +19 -0
- package/lib/endpoints/private/webhook-subscriptions/Webhook.types.d.ts +13 -0
- package/lib/endpoints/private/webhook-subscriptions/index.d.ts +4 -0
- package/lib/endpoints/public/carriers/Carrier.types.d.ts +10 -0
- package/lib/endpoints/public/carriers/GetCarrier.d.ts +19 -0
- package/lib/endpoints/public/carriers/GetCarriers.d.ts +15 -0
- package/lib/endpoints/public/carriers/index.d.ts +3 -0
- package/lib/endpoints/public/delivery-options/DeliveryOption.types.d.ts +22 -0
- package/lib/endpoints/public/delivery-options/GetDeliveryOptions.d.ts +49 -0
- package/lib/endpoints/public/delivery-options/index.d.ts +2 -0
- package/lib/endpoints/public/index.d.ts +3 -0
- package/lib/endpoints/public/pickup-locations/GetPickupLocations.d.ts +17 -0
- package/lib/endpoints/public/pickup-locations/PickupLocation.types.d.ts +31 -0
- package/lib/endpoints/public/pickup-locations/index.d.ts +2 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +622 -0
- package/lib/index.spec.d.ts +1 -0
- package/lib/model/client/AbstractClient.d.ts +78 -0
- package/lib/model/client/AbstractClient.spec.d.ts +1 -0
- package/lib/model/client/AbstractClient.types.d.ts +49 -0
- package/lib/model/client/FetchClient.d.ts +6 -0
- package/lib/model/client/helper/addParameters.d.ts +3 -0
- package/lib/model/client/helper/addParameters.spec.d.ts +1 -0
- package/lib/model/client/helper/index.d.ts +2 -0
- package/lib/model/client/helper/isJson.d.ts +1 -0
- package/lib/model/client/helper/isJson.spec.d.ts +1 -0
- package/lib/model/client/index.d.ts +4 -0
- package/lib/model/endpoint/AbstractEndpoint.d.ts +56 -0
- package/lib/model/endpoint/AbstractEndpoint.types.d.ts +20 -0
- package/lib/model/endpoint/AbstractPrivateEndpoint.d.ts +13 -0
- package/lib/model/endpoint/AbstractPublicEndpoint.d.ts +5 -0
- package/lib/model/endpoint/index.d.ts +4 -0
- package/lib/model/exception/ApiException.d.ts +5 -0
- package/lib/model/exception/UserException.d.ts +4 -0
- package/lib/model/exception/index.d.ts +2 -0
- package/lib/model/index.d.ts +3 -0
- package/lib/types/common.types.d.ts +31 -0
- package/lib/types/data.types.d.ts +23 -0
- package/lib/types/global.types.d.ts +4 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/request.types.d.ts +18 -0
- package/package.json +80 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type RequestHeaders, type ResponseWrapper } from '../../types/request.types';
|
|
2
|
+
import { type AbstractEndpoint } from '../endpoint/AbstractEndpoint';
|
|
3
|
+
import { type AbstractClient } from './AbstractClient';
|
|
4
|
+
interface ClientPlugin {
|
|
5
|
+
getClient?: () => void;
|
|
6
|
+
init?: (client: AbstractClient) => void;
|
|
7
|
+
transformRequest?: () => void;
|
|
8
|
+
transformResponse?: <Endpoint extends AbstractEndpoint>(response: ResponseWrapper<EndpointResponseBody<Endpoint>>) => ResponseWrapper<EndpointResponseBody<Endpoint>>;
|
|
9
|
+
}
|
|
10
|
+
type PluginConstructor = (client: AbstractClient) => ClientPlugin;
|
|
11
|
+
export interface ClientConfig {
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
headers?: RequestHeaders;
|
|
14
|
+
parameters?: Record<string, string>;
|
|
15
|
+
plugins?: PluginConstructor[];
|
|
16
|
+
options?: ClientOptions;
|
|
17
|
+
}
|
|
18
|
+
export interface ClientOptions {
|
|
19
|
+
timeout?: number;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export type ClientRequest = <E extends AbstractEndpoint>(endpoint: E, options: OptionsWithoutBody<E> | OptionsWithBody<E>) => Promise<ResponseWrapper<EndpointResponseBody<E>>>;
|
|
23
|
+
export type EndpointParameters<E extends AbstractEndpoint> = E['definition']['parameters'];
|
|
24
|
+
export type EndpointPath<E extends AbstractEndpoint> = E['definition']['path'];
|
|
25
|
+
export type EndpointResponse<E extends AbstractEndpoint> = E['definition']['response'];
|
|
26
|
+
export type PaginatedEndpointResponse<E extends AbstractEndpoint> = E['definition']['response'] & {
|
|
27
|
+
page?: number;
|
|
28
|
+
size?: number;
|
|
29
|
+
results?: number;
|
|
30
|
+
};
|
|
31
|
+
export type EndpointBody<E extends AbstractEndpoint> = E['definition']['body'];
|
|
32
|
+
export type EndpointResponseProperty<E extends AbstractEndpoint> = E['responseProperty'] extends string ? E['responseProperty'] : E['property'] extends string ? E['property'] : never;
|
|
33
|
+
type EndpointResponseBodyWrapper<E extends AbstractEndpoint> = EndpointResponseProperty<E>;
|
|
34
|
+
type Page = 'page' | 'size' | 'results';
|
|
35
|
+
export type EndpointResponseBody<E extends AbstractEndpoint> = {
|
|
36
|
+
[key in EndpointResponseBodyWrapper<E>]: EndpointResponse<E>;
|
|
37
|
+
} & {
|
|
38
|
+
[key in Page]?: number;
|
|
39
|
+
};
|
|
40
|
+
export interface OptionsWithBody<E extends AbstractEndpoint> {
|
|
41
|
+
body?: EndpointBody<E>;
|
|
42
|
+
headers?: RequestHeaders;
|
|
43
|
+
parameters?: EndpointParameters<E>;
|
|
44
|
+
path?: EndpointPath<E>;
|
|
45
|
+
timeout?: number;
|
|
46
|
+
}
|
|
47
|
+
export type OptionsWithoutBody<E extends AbstractEndpoint> = Omit<OptionsWithBody<E>, 'body'>;
|
|
48
|
+
export type Options<E extends AbstractEndpoint> = OptionsWithBody<E> | OptionsWithoutBody<E>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientConfig, type ClientRequest } from './AbstractClient.types';
|
|
2
|
+
import { AbstractClient } from './AbstractClient';
|
|
3
|
+
export declare class FetchClient extends AbstractClient {
|
|
4
|
+
constructor(config?: ClientConfig);
|
|
5
|
+
protected request: ClientRequest;
|
|
6
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type AbstractEndpoint } from '../../endpoint/AbstractEndpoint';
|
|
2
|
+
import { type EndpointParameters } from '../AbstractClient.types';
|
|
3
|
+
export declare const addParameters: <E extends AbstractEndpoint<import("../..").EndpointDefinition>>(path: string, parameters?: EndpointParameters<E> | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isJson: (data: string) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type HttpMethod } from '../../types/request.types';
|
|
2
|
+
import { type EndpointDefinition } from './AbstractEndpoint.types';
|
|
3
|
+
interface EndpointOptions {
|
|
4
|
+
headers?: AbstractEndpoint['definition']['headers'];
|
|
5
|
+
parameters?: AbstractEndpoint['definition']['parameters'];
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class AbstractEndpoint<D = EndpointDefinition> {
|
|
8
|
+
/**
|
|
9
|
+
* HTTP method.
|
|
10
|
+
*/
|
|
11
|
+
readonly method: HttpMethod;
|
|
12
|
+
/**
|
|
13
|
+
* Name of the endpoint.
|
|
14
|
+
*/
|
|
15
|
+
abstract readonly name: string;
|
|
16
|
+
/**
|
|
17
|
+
* URL path of the API endpoint. Can contain path variables like `:variable`.
|
|
18
|
+
*/
|
|
19
|
+
abstract readonly path: string;
|
|
20
|
+
/**
|
|
21
|
+
* The property in the request body and response body. If the response body
|
|
22
|
+
* property differs, set responseProperty alongside property.
|
|
23
|
+
* If the property is undefined, the endpoint will be called without a namespace.
|
|
24
|
+
*/
|
|
25
|
+
readonly property: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Property used in the response. Falls back to `this.property` if it's not
|
|
28
|
+
* set.
|
|
29
|
+
*/
|
|
30
|
+
readonly responseProperty: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Timeout in milliseconds.
|
|
33
|
+
* This is used to override the default timeout of the client.
|
|
34
|
+
*/
|
|
35
|
+
readonly timeout: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Used to expose EndpointDefinition type.
|
|
38
|
+
*/
|
|
39
|
+
readonly definition: D;
|
|
40
|
+
/**
|
|
41
|
+
* Headers to include when calling this endpoint.
|
|
42
|
+
*/
|
|
43
|
+
private readonly headers;
|
|
44
|
+
/**
|
|
45
|
+
* Parameters to include in the endpoint url.
|
|
46
|
+
*/
|
|
47
|
+
private readonly parameters;
|
|
48
|
+
constructor(options?: EndpointOptions);
|
|
49
|
+
getHeaders(): AbstractEndpoint['definition']['headers'];
|
|
50
|
+
getParameters(): AbstractEndpoint['definition']['parameters'];
|
|
51
|
+
getPath(): AbstractEndpoint['path'];
|
|
52
|
+
getProperty(): AbstractEndpoint['property'];
|
|
53
|
+
getResponseProperty(): AbstractEndpoint['responseProperty'];
|
|
54
|
+
getTimeout(): AbstractEndpoint['timeout'];
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type RequestHeaders } from '../../types/request.types';
|
|
2
|
+
import { type NoInfer } from '../../types/global.types';
|
|
3
|
+
import { type OneOrMore } from '@myparcel/ts-utils';
|
|
4
|
+
type Pagination = {
|
|
5
|
+
page?: number;
|
|
6
|
+
size?: number;
|
|
7
|
+
results?: number;
|
|
8
|
+
};
|
|
9
|
+
export type PaginatedResponse<T> = Pagination & Record<string, T>;
|
|
10
|
+
export interface EndpointDefinition {
|
|
11
|
+
name: string;
|
|
12
|
+
body?: NoInfer<unknown>;
|
|
13
|
+
headers?: RequestHeaders;
|
|
14
|
+
parameters?: NoInfer<Record<string, string | number | boolean>>;
|
|
15
|
+
path?: Record<string, string | number>;
|
|
16
|
+
response?: NoInfer<OneOrMore<unknown>> | PaginatedResponse<NoInfer<unknown[]>>;
|
|
17
|
+
timeout?: number;
|
|
18
|
+
}
|
|
19
|
+
export type CreateDefinition<D extends EndpointDefinition> = D;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type RequestHeaders } from '../../types/request.types';
|
|
2
|
+
import { type EndpointDefinition } from './AbstractEndpoint.types';
|
|
3
|
+
import { AbstractEndpoint } from './AbstractEndpoint';
|
|
4
|
+
type PrivateEndpointDefinition = {
|
|
5
|
+
headers: RequestHeaders & {
|
|
6
|
+
Authorization: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type Private<D = EndpointDefinition> = D & PrivateEndpointDefinition;
|
|
10
|
+
export declare abstract class AbstractPrivateEndpoint<D = EndpointDefinition> extends AbstractEndpoint<Private<D>> {
|
|
11
|
+
abstract readonly name: AbstractPrivateEndpoint['definition']['name'];
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type EndpointDefinition } from './AbstractEndpoint.types';
|
|
2
|
+
import { AbstractEndpoint } from './AbstractEndpoint';
|
|
3
|
+
export declare abstract class AbstractPublicEndpoint<D = EndpointDefinition> extends AbstractEndpoint<D> {
|
|
4
|
+
abstract readonly name: AbstractPublicEndpoint['definition']['name'];
|
|
5
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface Address {
|
|
2
|
+
area?: string;
|
|
3
|
+
box_number?: string;
|
|
4
|
+
cc: string;
|
|
5
|
+
city: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
eori_number?: string;
|
|
8
|
+
number?: string;
|
|
9
|
+
number_suffix?: string;
|
|
10
|
+
person: string;
|
|
11
|
+
postal_code: string;
|
|
12
|
+
region?: string;
|
|
13
|
+
state?: string;
|
|
14
|
+
street: string;
|
|
15
|
+
street_additional_info?: string;
|
|
16
|
+
vat_number?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AddressWithContactDetails extends Address {
|
|
19
|
+
email?: string;
|
|
20
|
+
phone?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RetailLocation {
|
|
23
|
+
cc: string;
|
|
24
|
+
city: string;
|
|
25
|
+
location_code: string;
|
|
26
|
+
location_name: string;
|
|
27
|
+
number: string;
|
|
28
|
+
postal_code: string;
|
|
29
|
+
retail_network_id: string;
|
|
30
|
+
street: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type Weekday = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
2
|
+
export type IntBoolean = 0 | 1;
|
|
3
|
+
export interface Price {
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: 'EUR' | string;
|
|
6
|
+
}
|
|
7
|
+
export interface StartEndDate {
|
|
8
|
+
end: Timestamp;
|
|
9
|
+
start: Timestamp;
|
|
10
|
+
}
|
|
11
|
+
export interface EnumSchema<Type> {
|
|
12
|
+
enum: Type[];
|
|
13
|
+
type: Type extends boolean ? 'boolean' : string;
|
|
14
|
+
}
|
|
15
|
+
export interface Timestamp {
|
|
16
|
+
date: string;
|
|
17
|
+
timezone: string;
|
|
18
|
+
timezone_type: number;
|
|
19
|
+
}
|
|
20
|
+
export type PaginationParameters = {
|
|
21
|
+
page: number;
|
|
22
|
+
size: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type HttpMethodWithBody = 'POST' | 'PATCH' | 'PUT';
|
|
2
|
+
export type HttpMethodWithoutBody = 'GET' | 'OPTIONS' | 'DELETE' | 'HEAD';
|
|
3
|
+
export type HttpMethod = HttpMethodWithBody | HttpMethodWithoutBody;
|
|
4
|
+
export type RequestHeader = 'Content-Type' | 'Authorization' | 'Accept' | 'Accept-Language';
|
|
5
|
+
export type RequestHeaders = Record<RequestHeader | string, string>;
|
|
6
|
+
export interface ResponseWrapper<Data = Record<string, unknown>> {
|
|
7
|
+
data: Data;
|
|
8
|
+
}
|
|
9
|
+
export interface ErrorResponse {
|
|
10
|
+
message: string;
|
|
11
|
+
request_id: string;
|
|
12
|
+
errors: {
|
|
13
|
+
status?: number;
|
|
14
|
+
code: number;
|
|
15
|
+
title?: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@myparcel-dev/sdk",
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "JavaScript SDK to connect to the MyParcel API via Node.js or browser",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"myparcel",
|
|
7
|
+
"sdk",
|
|
8
|
+
"node",
|
|
9
|
+
"browser"
|
|
10
|
+
],
|
|
11
|
+
"repository": "github:myparcelnl/js-sdk",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Edie Lemoine <edie@myparcel.nl>",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./lib/index.d.ts",
|
|
18
|
+
"import": "./lib/index.js",
|
|
19
|
+
"require": "./lib/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/index.cjs",
|
|
23
|
+
"module": "./lib/index.js",
|
|
24
|
+
"types": "./lib/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"lib"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "vite build",
|
|
30
|
+
"build:dev": "vite build --mode development",
|
|
31
|
+
"test": "vitest",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
33
|
+
"test:run": "vitest run",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"watch": "yarn build:dev --watch"
|
|
36
|
+
},
|
|
37
|
+
"lint-staged": {
|
|
38
|
+
"*.{ts,js,cjs.mjs}": "eslint --fix",
|
|
39
|
+
"*.{json,yml,md}": "prettier --write",
|
|
40
|
+
"package.json": [
|
|
41
|
+
"sort-package-json",
|
|
42
|
+
"sh -c \"publint\""
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"prettier": "@myparcel/prettier-config",
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@myparcel-dev/constants": "^2.0.0",
|
|
48
|
+
"@myparcel-dev/ts-utils": "^1.6.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@myparcel-eslint/eslint-config-esnext": "^1.2.0",
|
|
52
|
+
"@myparcel-eslint/eslint-config-import": "^1.2.1",
|
|
53
|
+
"@myparcel-eslint/eslint-config-node": "^1.2.0",
|
|
54
|
+
"@myparcel-eslint/eslint-config-prettier": "^1.2.0",
|
|
55
|
+
"@myparcel-eslint/eslint-config-prettier-typescript": "^1.2.0",
|
|
56
|
+
"@myparcel/semantic-release-config": "^5.0.0",
|
|
57
|
+
"@tsconfig/recommended": "^1.0.2",
|
|
58
|
+
"@types/node": "^20.0.0",
|
|
59
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
60
|
+
"@vitest/ui": "^1.0.0",
|
|
61
|
+
"eslint": "^8.34.0",
|
|
62
|
+
"eslint-plugin-sort-exports": "^0.9.0",
|
|
63
|
+
"husky": "^9.0.0",
|
|
64
|
+
"prettier": "^2.8.4",
|
|
65
|
+
"publint": "^0.2.0",
|
|
66
|
+
"sort-package-json": "^2.4.1",
|
|
67
|
+
"typescript": "^5.2.0",
|
|
68
|
+
"vite": "^5.0.0",
|
|
69
|
+
"vite-plugin-dts": "^3.6.0",
|
|
70
|
+
"vitest": "^1.0.0",
|
|
71
|
+
"vitest-fetch-mock": "^0.2.1"
|
|
72
|
+
},
|
|
73
|
+
"packageManager": "yarn@4.0.1",
|
|
74
|
+
"volta": {
|
|
75
|
+
"node": "20.10.0"
|
|
76
|
+
},
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
}
|
|
80
|
+
}
|