@webiny/api-website-builder-scheduler 6.0.0-rc.6

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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/context.d.ts +2 -0
  4. package/context.js +13 -0
  5. package/context.js.map +1 -0
  6. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnDeleteEventHandler.d.ts +20 -0
  7. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnDeleteEventHandler.js +48 -0
  8. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnDeleteEventHandler.js.map +1 -0
  9. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnPublishEventHandler.d.ts +19 -0
  10. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnPublishEventHandler.js +45 -0
  11. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnPublishEventHandler.js.map +1 -0
  12. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnUnpublishEventHandler.d.ts +19 -0
  13. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnUnpublishEventHandler.js +45 -0
  14. package/features/CancelScheduledActionOnPageChange/CancelScheduledActionOnUnpublishEventHandler.js.map +1 -0
  15. package/features/CancelScheduledActionOnPageChange/feature.d.ts +8 -0
  16. package/features/CancelScheduledActionOnPageChange/feature.js +22 -0
  17. package/features/CancelScheduledActionOnPageChange/feature.js.map +1 -0
  18. package/features/CancelScheduledPageAction/CancelScheduledPageActionUseCase.d.ts +15 -0
  19. package/features/CancelScheduledPageAction/CancelScheduledPageActionUseCase.js +25 -0
  20. package/features/CancelScheduledPageAction/CancelScheduledPageActionUseCase.js.map +1 -0
  21. package/features/CancelScheduledPageAction/abstractions.d.ts +22 -0
  22. package/features/CancelScheduledPageAction/abstractions.js +11 -0
  23. package/features/CancelScheduledPageAction/abstractions.js.map +1 -0
  24. package/features/CancelScheduledPageAction/feature.d.ts +6 -0
  25. package/features/CancelScheduledPageAction/feature.js +16 -0
  26. package/features/CancelScheduledPageAction/feature.js.map +1 -0
  27. package/features/CancelScheduledPageAction/index.d.ts +1 -0
  28. package/features/CancelScheduledPageAction/index.js +3 -0
  29. package/features/CancelScheduledPageAction/index.js.map +1 -0
  30. package/features/SchedulePageAction/SchedulePageActionUseCase.d.ts +25 -0
  31. package/features/SchedulePageAction/SchedulePageActionUseCase.js +74 -0
  32. package/features/SchedulePageAction/SchedulePageActionUseCase.js.map +1 -0
  33. package/features/SchedulePageAction/abstractions.d.ts +42 -0
  34. package/features/SchedulePageAction/abstractions.js +17 -0
  35. package/features/SchedulePageAction/abstractions.js.map +1 -0
  36. package/features/SchedulePageAction/actionHandlers/PublishPageActionHandler.d.ts +22 -0
  37. package/features/SchedulePageAction/actionHandlers/PublishPageActionHandler.js +34 -0
  38. package/features/SchedulePageAction/actionHandlers/PublishPageActionHandler.js.map +1 -0
  39. package/features/SchedulePageAction/actionHandlers/UnpublishPageActionHandler.d.ts +22 -0
  40. package/features/SchedulePageAction/actionHandlers/UnpublishPageActionHandler.js +34 -0
  41. package/features/SchedulePageAction/actionHandlers/UnpublishPageActionHandler.js.map +1 -0
  42. package/features/SchedulePageAction/feature.d.ts +7 -0
  43. package/features/SchedulePageAction/feature.js +21 -0
  44. package/features/SchedulePageAction/feature.js.map +1 -0
  45. package/features/SchedulePageAction/index.d.ts +1 -0
  46. package/features/SchedulePageAction/index.js +3 -0
  47. package/features/SchedulePageAction/index.js.map +1 -0
  48. package/graphql/ActionMapper.d.ts +12 -0
  49. package/graphql/ActionMapper.js +15 -0
  50. package/graphql/ActionMapper.js.map +1 -0
  51. package/graphql/dates.d.ts +6 -0
  52. package/graphql/dates.js +9 -0
  53. package/graphql/dates.js.map +1 -0
  54. package/graphql/index.d.ts +2 -0
  55. package/graphql/index.js +239 -0
  56. package/graphql/index.js.map +1 -0
  57. package/graphql/schema.d.ts +142 -0
  58. package/graphql/schema.js +76 -0
  59. package/graphql/schema.js.map +1 -0
  60. package/index.d.ts +6 -0
  61. package/index.js +12 -0
  62. package/index.js.map +1 -0
  63. package/package.json +44 -0
@@ -0,0 +1,142 @@
1
+ import zod from "zod";
2
+ export declare const getScheduleSchema: zod.ZodObject<{
3
+ id: zod.ZodString;
4
+ }, "strip", zod.ZodTypeAny, {
5
+ id: string;
6
+ }, {
7
+ id: string;
8
+ }>;
9
+ export declare enum ScheduleType {
10
+ publish = "publish",
11
+ unpublish = "unpublish"
12
+ }
13
+ export declare const listScheduleSchema: zod.ZodObject<{
14
+ where: zod.ZodOptional<zod.ZodObject<{
15
+ targetId: zod.ZodOptional<zod.ZodString>;
16
+ title_contains: zod.ZodOptional<zod.ZodString>;
17
+ title_not_contains: zod.ZodOptional<zod.ZodString>;
18
+ type: zod.ZodOptional<zod.ZodNativeEnum<typeof ScheduleType>>;
19
+ scheduledBy: zod.ZodOptional<zod.ZodString>;
20
+ scheduledFor: zod.ZodEffects<zod.ZodOptional<zod.ZodDate>, `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined, Date | undefined>;
21
+ scheduledFor_gte: zod.ZodEffects<zod.ZodOptional<zod.ZodDate>, `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined, Date | undefined>;
22
+ scheduledFor_lte: zod.ZodEffects<zod.ZodOptional<zod.ZodDate>, `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined, Date | undefined>;
23
+ }, "strip", zod.ZodTypeAny, {
24
+ type?: ScheduleType | undefined;
25
+ targetId?: string | undefined;
26
+ title_contains?: string | undefined;
27
+ title_not_contains?: string | undefined;
28
+ scheduledBy?: string | undefined;
29
+ scheduledFor?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
30
+ scheduledFor_gte?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
31
+ scheduledFor_lte?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
32
+ }, {
33
+ type?: ScheduleType | undefined;
34
+ targetId?: string | undefined;
35
+ title_contains?: string | undefined;
36
+ title_not_contains?: string | undefined;
37
+ scheduledBy?: string | undefined;
38
+ scheduledFor?: Date | undefined;
39
+ scheduledFor_gte?: Date | undefined;
40
+ scheduledFor_lte?: Date | undefined;
41
+ }>>;
42
+ sort: zod.ZodOptional<zod.ZodArray<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>, "many">>;
43
+ limit: zod.ZodOptional<zod.ZodNumber>;
44
+ after: zod.ZodOptional<zod.ZodString>;
45
+ }, "strip", zod.ZodTypeAny, {
46
+ sort?: string[] | undefined;
47
+ where?: {
48
+ type?: ScheduleType | undefined;
49
+ targetId?: string | undefined;
50
+ title_contains?: string | undefined;
51
+ title_not_contains?: string | undefined;
52
+ scheduledBy?: string | undefined;
53
+ scheduledFor?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
54
+ scheduledFor_gte?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
55
+ scheduledFor_lte?: `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z` | undefined;
56
+ } | undefined;
57
+ limit?: number | undefined;
58
+ after?: string | undefined;
59
+ }, {
60
+ sort?: string[] | undefined;
61
+ where?: {
62
+ type?: ScheduleType | undefined;
63
+ targetId?: string | undefined;
64
+ title_contains?: string | undefined;
65
+ title_not_contains?: string | undefined;
66
+ scheduledBy?: string | undefined;
67
+ scheduledFor?: Date | undefined;
68
+ scheduledFor_gte?: Date | undefined;
69
+ scheduledFor_lte?: Date | undefined;
70
+ } | undefined;
71
+ limit?: number | undefined;
72
+ after?: string | undefined;
73
+ }>;
74
+ export declare const createScheduleSchema: zod.ZodIntersection<zod.ZodDiscriminatedUnion<"immediately", [zod.ZodObject<{
75
+ immediately: zod.ZodLiteral<true>;
76
+ scheduleFor: zod.ZodOptional<zod.ZodNever>;
77
+ type: zod.ZodNativeEnum<typeof ScheduleType>;
78
+ }, "strip", zod.ZodTypeAny, {
79
+ type: ScheduleType;
80
+ immediately: true;
81
+ scheduleFor?: undefined;
82
+ }, {
83
+ type: ScheduleType;
84
+ immediately: true;
85
+ scheduleFor?: undefined;
86
+ }>, zod.ZodObject<{
87
+ immediately: zod.ZodOptional<zod.ZodLiteral<false>>;
88
+ scheduleFor: zod.ZodUnion<[zod.ZodDate, zod.ZodEffects<zod.ZodString, Date, string>]>;
89
+ type: zod.ZodNativeEnum<typeof ScheduleType>;
90
+ }, "strip", zod.ZodTypeAny, {
91
+ type: ScheduleType;
92
+ scheduleFor: Date;
93
+ immediately?: false | undefined;
94
+ }, {
95
+ type: ScheduleType;
96
+ scheduleFor: string | Date;
97
+ immediately?: false | undefined;
98
+ }>]>, zod.ZodObject<{
99
+ id: zod.ZodString;
100
+ }, "strip", zod.ZodTypeAny, {
101
+ id: string;
102
+ }, {
103
+ id: string;
104
+ }>>;
105
+ export declare const updateScheduleSchema: zod.ZodIntersection<zod.ZodDiscriminatedUnion<"immediately", [zod.ZodObject<{
106
+ immediately: zod.ZodLiteral<true>;
107
+ scheduleFor: zod.ZodOptional<zod.ZodNever>;
108
+ type: zod.ZodNativeEnum<typeof ScheduleType>;
109
+ }, "strip", zod.ZodTypeAny, {
110
+ type: ScheduleType;
111
+ immediately: true;
112
+ scheduleFor?: undefined;
113
+ }, {
114
+ type: ScheduleType;
115
+ immediately: true;
116
+ scheduleFor?: undefined;
117
+ }>, zod.ZodObject<{
118
+ immediately: zod.ZodOptional<zod.ZodLiteral<false>>;
119
+ scheduleFor: zod.ZodUnion<[zod.ZodDate, zod.ZodEffects<zod.ZodString, Date, string>]>;
120
+ type: zod.ZodNativeEnum<typeof ScheduleType>;
121
+ }, "strip", zod.ZodTypeAny, {
122
+ type: ScheduleType;
123
+ scheduleFor: Date;
124
+ immediately?: false | undefined;
125
+ }, {
126
+ type: ScheduleType;
127
+ scheduleFor: string | Date;
128
+ immediately?: false | undefined;
129
+ }>]>, zod.ZodObject<{
130
+ id: zod.ZodString;
131
+ }, "strip", zod.ZodTypeAny, {
132
+ id: string;
133
+ }, {
134
+ id: string;
135
+ }>>;
136
+ export declare const cancelScheduleSchema: zod.ZodObject<{
137
+ id: zod.ZodString;
138
+ }, "strip", zod.ZodTypeAny, {
139
+ id: string;
140
+ }, {
141
+ id: string;
142
+ }>;
@@ -0,0 +1,76 @@
1
+ import zod from "zod";
2
+ import { dateToISOString } from "./dates.js";
3
+ export const getScheduleSchema = zod.object({
4
+ id: zod.string()
5
+ });
6
+ export let ScheduleType = /*#__PURE__*/function (ScheduleType) {
7
+ ScheduleType["publish"] = "publish";
8
+ ScheduleType["unpublish"] = "unpublish";
9
+ return ScheduleType;
10
+ }({});
11
+ const publishAndUnpublishSchemaType = zod.nativeEnum(ScheduleType);
12
+ export const listScheduleSchema = zod.object({
13
+ where: zod.object({
14
+ targetId: zod.string().optional(),
15
+ title_contains: zod.string().optional(),
16
+ title_not_contains: zod.string().optional(),
17
+ type: publishAndUnpublishSchemaType.optional(),
18
+ scheduledBy: zod.string().optional(),
19
+ scheduledFor: zod.date().optional().transform(value => {
20
+ if (!value) {
21
+ return undefined;
22
+ }
23
+ return dateToISOString(value);
24
+ }),
25
+ scheduledFor_gte: zod.date().optional().transform(value => {
26
+ if (!value) {
27
+ return undefined;
28
+ }
29
+ return dateToISOString(value);
30
+ }),
31
+ scheduledFor_lte: zod.date().optional().transform(value => {
32
+ if (!value) {
33
+ return undefined;
34
+ }
35
+ return dateToISOString(value);
36
+ })
37
+ }).optional(),
38
+ sort: zod.array(zod.string().refine(value => {
39
+ const [field, direction] = value.split("_");
40
+ if (!field) {
41
+ return false;
42
+ } else if (direction !== "ASC" && direction !== "DESC") {
43
+ return false;
44
+ }
45
+ return true;
46
+ }).transform(value => {
47
+ if (!value) {
48
+ return value;
49
+ }
50
+ return `values_${value}`;
51
+ })).optional(),
52
+ limit: zod.number().optional(),
53
+ after: zod.string().optional()
54
+ });
55
+ const schedulerInputSchema = zod.discriminatedUnion("immediately", [zod.object({
56
+ immediately: zod.literal(true),
57
+ scheduleFor: zod.never().optional(),
58
+ type: publishAndUnpublishSchemaType
59
+ }), zod.object({
60
+ immediately: zod.literal(false).optional(),
61
+ scheduleFor: zod.date().or(zod.string().transform(value => {
62
+ return new Date(value);
63
+ })),
64
+ type: publishAndUnpublishSchemaType
65
+ })]);
66
+ export const createScheduleSchema = schedulerInputSchema.and(zod.object({
67
+ id: zod.string()
68
+ }));
69
+ export const updateScheduleSchema = schedulerInputSchema.and(zod.object({
70
+ id: zod.string()
71
+ }));
72
+ export const cancelScheduleSchema = zod.object({
73
+ id: zod.string()
74
+ });
75
+
76
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["zod","dateToISOString","getScheduleSchema","object","id","string","ScheduleType","publishAndUnpublishSchemaType","nativeEnum","listScheduleSchema","where","targetId","optional","title_contains","title_not_contains","type","scheduledBy","scheduledFor","date","transform","value","undefined","scheduledFor_gte","scheduledFor_lte","sort","array","refine","field","direction","split","limit","number","after","schedulerInputSchema","discriminatedUnion","immediately","literal","scheduleFor","never","or","Date","createScheduleSchema","and","updateScheduleSchema","cancelScheduleSchema"],"sources":["schema.ts"],"sourcesContent":["import zod from \"zod\";\nimport { dateToISOString } from \"./dates.js\";\n\nexport const getScheduleSchema = zod.object({\n id: zod.string()\n});\n\nexport enum ScheduleType {\n publish = \"publish\",\n unpublish = \"unpublish\"\n}\n\nconst publishAndUnpublishSchemaType = zod.nativeEnum(ScheduleType);\n\nexport const listScheduleSchema = zod.object({\n where: zod\n .object({\n targetId: zod.string().optional(),\n title_contains: zod.string().optional(),\n title_not_contains: zod.string().optional(),\n type: publishAndUnpublishSchemaType.optional(),\n scheduledBy: zod.string().optional(),\n scheduledFor: zod\n .date()\n .optional()\n .transform(value => {\n if (!value) {\n return undefined;\n }\n return dateToISOString(value);\n }),\n scheduledFor_gte: zod\n .date()\n .optional()\n .transform(value => {\n if (!value) {\n return undefined;\n }\n return dateToISOString(value);\n }),\n scheduledFor_lte: zod\n .date()\n .optional()\n .transform(value => {\n if (!value) {\n return undefined;\n }\n return dateToISOString(value);\n })\n })\n .optional(),\n sort: zod\n .array(\n zod\n .string()\n .refine((value): value is string => {\n const [field, direction] = value.split(\"_\");\n if (!field) {\n return false;\n } else if (direction !== \"ASC\" && direction !== \"DESC\") {\n return false;\n }\n return true;\n })\n .transform(value => {\n if (!value) {\n return value;\n }\n return `values_${value}`;\n })\n )\n .optional(),\n limit: zod.number().optional(),\n after: zod.string().optional()\n});\n\nconst schedulerInputSchema = zod.discriminatedUnion(\"immediately\", [\n zod.object({\n immediately: zod.literal(true),\n scheduleFor: zod.never().optional(),\n type: publishAndUnpublishSchemaType\n }),\n zod.object({\n immediately: zod.literal(false).optional(),\n scheduleFor: zod.date().or(\n zod.string().transform(value => {\n return new Date(value);\n })\n ),\n type: publishAndUnpublishSchemaType\n })\n]);\n\nexport const createScheduleSchema = schedulerInputSchema.and(\n zod.object({\n id: zod.string()\n })\n);\n\nexport const updateScheduleSchema = schedulerInputSchema.and(\n zod.object({\n id: zod.string()\n })\n);\n\nexport const cancelScheduleSchema = zod.object({\n id: zod.string()\n});\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,KAAK;AACrB,SAASC,eAAe;AAExB,OAAO,MAAMC,iBAAiB,GAAGF,GAAG,CAACG,MAAM,CAAC;EACxCC,EAAE,EAAEJ,GAAG,CAACK,MAAM,CAAC;AACnB,CAAC,CAAC;AAEF,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAKxB,MAAMC,6BAA6B,GAAGP,GAAG,CAACQ,UAAU,CAACF,YAAY,CAAC;AAElE,OAAO,MAAMG,kBAAkB,GAAGT,GAAG,CAACG,MAAM,CAAC;EACzCO,KAAK,EAAEV,GAAG,CACLG,MAAM,CAAC;IACJQ,QAAQ,EAAEX,GAAG,CAACK,MAAM,CAAC,CAAC,CAACO,QAAQ,CAAC,CAAC;IACjCC,cAAc,EAAEb,GAAG,C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ACL,CAAC;AAED,OAAO,MAAMsC,oBAAoB,GAAGV,oBAAoB,CAACS,GAAG,CACxD1C,GAAG,CAACG,MAAM,CAAC;EACPC,EAAE,EAAEJ,GAAG,CAACK,MAAM,CAAC;AACnB,CAAC,CACL,CAAC;AAED,OAAO,MAAMuC,oBAAoB,GAAG5C,GAAG,CAACG,MAAM,CAAC;EAC3CC,EAAE,EAAEJ,GAAG,CAACK,MAAM,CAAC;AACnB,CAAC,CAAC","ignoreList":[]}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { PluginCollection } from "@webiny/plugins/types.js";
2
+ /**
3
+ * This will register both API and Handler plugins for the Website Builder Scheduler.
4
+ * API plugin will provide the GraphQL API and code for managing the scheduled WB page actions.
5
+ */
6
+ export declare const createWebsiteBuilderScheduler: () => PluginCollection;
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import { createWebsiteBuilderScheduleContext } from "./context.js";
2
+ import { createWbSchedulerGraphQL } from "./graphql/index.js";
3
+
4
+ /**
5
+ * This will register both API and Handler plugins for the Website Builder Scheduler.
6
+ * API plugin will provide the GraphQL API and code for managing the scheduled WB page actions.
7
+ */
8
+ export const createWebsiteBuilderScheduler = () => {
9
+ return [createWebsiteBuilderScheduleContext(), createWbSchedulerGraphQL()];
10
+ };
11
+
12
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createWebsiteBuilderScheduleContext","createWbSchedulerGraphQL","createWebsiteBuilderScheduler"],"sources":["index.ts"],"sourcesContent":["import type { PluginCollection } from \"@webiny/plugins/types.js\";\nimport { createWebsiteBuilderScheduleContext } from \"~/context.js\";\nimport { createWbSchedulerGraphQL } from \"~/graphql/index.js\";\n\n/**\n * This will register both API and Handler plugins for the Website Builder Scheduler.\n * API plugin will provide the GraphQL API and code for managing the scheduled WB page actions.\n */\nexport const createWebsiteBuilderScheduler = (): PluginCollection => {\n return [createWebsiteBuilderScheduleContext(), createWbSchedulerGraphQL()];\n};\n"],"mappings":"AACA,SAASA,mCAAmC;AAC5C,SAASC,wBAAwB;;AAEjC;AACA;AACA;AACA;AACA,OAAO,MAAMC,6BAA6B,GAAGA,CAAA,KAAwB;EACjE,OAAO,CAACF,mCAAmC,CAAC,CAAC,EAAEC,wBAAwB,CAAC,CAAC,CAAC;AAC9E,CAAC","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@webiny/api-website-builder-scheduler",
3
+ "version": "6.0.0-rc.6",
4
+ "type": "module",
5
+ "main": "index.js",
6
+ "description": "Schedule for Webiny Website Builder",
7
+ "keywords": [
8
+ "api-website-builder-scheduler:base"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/webiny/webiny-js.git",
13
+ "directory": "packages/api-website-builder-scheduler"
14
+ },
15
+ "license": "MIT",
16
+ "dependencies": {
17
+ "@webiny/api": "6.0.0-rc.6",
18
+ "@webiny/api-scheduler": "6.0.0-rc.6",
19
+ "@webiny/api-website-builder": "6.0.0-rc.6",
20
+ "@webiny/feature": "6.0.0-rc.6",
21
+ "@webiny/handler-graphql": "6.0.0-rc.6",
22
+ "@webiny/utils": "6.0.0-rc.6",
23
+ "zod": "3.25.76"
24
+ },
25
+ "devDependencies": {
26
+ "@webiny/api-core": "6.0.0-rc.6",
27
+ "@webiny/api-headless-cms": "6.0.0-rc.6",
28
+ "@webiny/aws-sdk": "6.0.0-rc.6",
29
+ "@webiny/build-tools": "6.0.0-rc.6",
30
+ "@webiny/handler": "6.0.0-rc.6",
31
+ "@webiny/handler-aws": "6.0.0-rc.6",
32
+ "@webiny/plugins": "6.0.0-rc.6",
33
+ "@webiny/project-utils": "6.0.0-rc.6",
34
+ "@webiny/wcp": "6.0.0-rc.6",
35
+ "aws-sdk-client-mock": "4.1.0",
36
+ "typescript": "5.9.3",
37
+ "vitest": "4.0.18"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "directory": "dist"
42
+ },
43
+ "gitHead": "a2a076532809feabf674a6873464f09071d86c72"
44
+ }