@unhead/schema-org 2.1.9 → 3.0.0-beta.10
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/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -44
- package/dist/react.d.mts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.mjs +3 -3
- package/dist/shared/schema-org.BS2Q1uTx.d.mts +11 -0
- package/dist/shared/{schema-org.UT1u1UYq.d.mts → schema-org.C1OXVKVP.d.ts} +142 -48
- package/dist/shared/schema-org.C7IeLKiX.d.ts +11 -0
- package/dist/shared/{schema-org.CFcsqFfN.d.mts → schema-org.CX_95Tmq.d.mts} +2 -22
- package/dist/shared/{schema-org.CFcsqFfN.d.ts → schema-org.CX_95Tmq.d.ts} +2 -22
- package/dist/shared/{schema-org.CAKsqzbX.d.ts → schema-org.Cxijls86.d.mts} +142 -48
- package/dist/shared/schema-org.DvWGLdBv.mjs +1932 -0
- package/dist/solid-js.d.mts +3 -3
- package/dist/solid-js.d.ts +3 -3
- package/dist/solid-js.mjs +3 -3
- package/dist/svelte.d.mts +3 -3
- package/dist/svelte.d.ts +3 -3
- package/dist/svelte.mjs +3 -3
- package/dist/vue.d.mts +38 -38
- package/dist/vue.d.ts +38 -38
- package/dist/vue.mjs +47 -43
- package/package.json +11 -11
- package/dist/chunks/index.mjs +0 -23
- package/dist/chunks/index10.mjs +0 -63
- package/dist/chunks/index11.mjs +0 -35
- package/dist/chunks/index12.mjs +0 -48
- package/dist/chunks/index13.mjs +0 -36
- package/dist/chunks/index14.mjs +0 -25
- package/dist/chunks/index15.mjs +0 -37
- package/dist/chunks/index16.mjs +0 -27
- package/dist/chunks/index17.mjs +0 -34
- package/dist/chunks/index18.mjs +0 -32
- package/dist/chunks/index19.mjs +0 -31
- package/dist/chunks/index2.mjs +0 -12
- package/dist/chunks/index20.mjs +0 -31
- package/dist/chunks/index21.mjs +0 -30
- package/dist/chunks/index22.mjs +0 -30
- package/dist/chunks/index23.mjs +0 -82
- package/dist/chunks/index24.mjs +0 -14
- package/dist/chunks/index25.mjs +0 -33
- package/dist/chunks/index26.mjs +0 -31
- package/dist/chunks/index27.mjs +0 -29
- package/dist/chunks/index28.mjs +0 -12
- package/dist/chunks/index29.mjs +0 -46
- package/dist/chunks/index3.mjs +0 -317
- package/dist/chunks/index30.mjs +0 -53
- package/dist/chunks/index31.mjs +0 -41
- package/dist/chunks/index32.mjs +0 -26
- package/dist/chunks/index33.mjs +0 -47
- package/dist/chunks/index34.mjs +0 -29
- package/dist/chunks/index35.mjs +0 -34
- package/dist/chunks/index36.mjs +0 -33
- package/dist/chunks/index37.mjs +0 -34
- package/dist/chunks/index38.mjs +0 -51
- package/dist/chunks/index39.mjs +0 -17
- package/dist/chunks/index4.mjs +0 -54
- package/dist/chunks/index40.mjs +0 -29
- package/dist/chunks/index5.mjs +0 -31
- package/dist/chunks/index6.mjs +0 -29
- package/dist/chunks/index7.mjs +0 -35
- package/dist/chunks/index8.mjs +0 -18
- package/dist/chunks/index9.mjs +0 -20
- package/dist/shared/schema-org.B9Q-o8S0.mjs +0 -877
- package/dist/shared/schema-org.BR4WcSqZ.d.ts +0 -21
- package/dist/shared/schema-org.CrNDsWck.mjs +0 -19
- package/dist/shared/schema-org.oFHFm6my.d.mts +0 -21
- package/dist/shared/schema-org.zHUqdMMo.mjs +0 -27
package/dist/chunks/index10.mjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { withBase } from 'ufo';
|
|
2
|
-
import { d as defineSchemaOrgResolver, a9 as IdentityId, a6 as setIfEmpty, a7 as idReference, e as resolveRelation, ab as resolvableDateToDate, a8 as resolvableDateToIso } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
3
|
-
import { offerResolver } from './index23.mjs';
|
|
4
|
-
import { p as personResolver, o as organizationResolver } from './index3.mjs';
|
|
5
|
-
import { placeResolver } from './index8.mjs';
|
|
6
|
-
import { virtualLocationResolver } from './index9.mjs';
|
|
7
|
-
import 'unhead/plugins';
|
|
8
|
-
import 'unhead/utils';
|
|
9
|
-
import '../shared/schema-org.zHUqdMMo.mjs';
|
|
10
|
-
import './index16.mjs';
|
|
11
|
-
import './index28.mjs';
|
|
12
|
-
import './index40.mjs';
|
|
13
|
-
import './index39.mjs';
|
|
14
|
-
|
|
15
|
-
const PrimaryEventId = "#event";
|
|
16
|
-
const eventResolver = defineSchemaOrgResolver({
|
|
17
|
-
defaults: {
|
|
18
|
-
"@type": "Event"
|
|
19
|
-
},
|
|
20
|
-
inheritMeta: [
|
|
21
|
-
"inLanguage",
|
|
22
|
-
"description",
|
|
23
|
-
"image",
|
|
24
|
-
{ meta: "title", key: "name" }
|
|
25
|
-
],
|
|
26
|
-
idPrefix: ["url", PrimaryEventId],
|
|
27
|
-
resolve(node, ctx) {
|
|
28
|
-
if (node.location) {
|
|
29
|
-
const isVirtual = node.location === "string" || node.location?.url !== "undefined";
|
|
30
|
-
node.location = resolveRelation(node.location, ctx, isVirtual ? virtualLocationResolver : placeResolver);
|
|
31
|
-
}
|
|
32
|
-
node.performer = resolveRelation(node.performer, ctx, personResolver, {
|
|
33
|
-
root: true
|
|
34
|
-
});
|
|
35
|
-
node.organizer = resolveRelation(node.organizer, ctx, organizationResolver, {
|
|
36
|
-
root: true
|
|
37
|
-
});
|
|
38
|
-
node.offers = resolveRelation(node.offers, ctx, offerResolver);
|
|
39
|
-
if (node.eventAttendanceMode)
|
|
40
|
-
node.eventAttendanceMode = withBase(node.eventAttendanceMode, "https://schema.org/");
|
|
41
|
-
if (node.eventStatus)
|
|
42
|
-
node.eventStatus = withBase(node.eventStatus, "https://schema.org/");
|
|
43
|
-
const isOnline = node.eventStatus === "https://schema.org/EventMovedOnline";
|
|
44
|
-
const dates = ["startDate", "previousStartDate", "endDate"];
|
|
45
|
-
dates.forEach((date) => {
|
|
46
|
-
if (!isOnline) {
|
|
47
|
-
if (node[date] instanceof Date && node[date].getHours() === 0 && node[date].getMinutes() === 0)
|
|
48
|
-
node[date] = resolvableDateToDate(node[date]);
|
|
49
|
-
} else {
|
|
50
|
-
node[date] = resolvableDateToIso(node[date]);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
setIfEmpty(node, "endDate", node.startDate);
|
|
54
|
-
return node;
|
|
55
|
-
},
|
|
56
|
-
resolveRootNode(node, { find }) {
|
|
57
|
-
const identity = find(IdentityId);
|
|
58
|
-
if (identity)
|
|
59
|
-
setIfEmpty(node, "organizer", idReference(identity));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
export { PrimaryEventId, eventResolver, placeResolver, virtualLocationResolver };
|
package/dist/chunks/index11.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a9 as IdentityId, aa as resolveDefaultType, e as resolveRelation, a as resolveNode } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { localBusinessResolver } from './index17.mjs';
|
|
3
|
-
import { r as ratingResolver } from '../shared/schema-org.CrNDsWck.mjs';
|
|
4
|
-
import 'unhead/plugins';
|
|
5
|
-
import 'unhead/utils';
|
|
6
|
-
import 'ufo';
|
|
7
|
-
import './index24.mjs';
|
|
8
|
-
import './index3.mjs';
|
|
9
|
-
import './index16.mjs';
|
|
10
|
-
import './index28.mjs';
|
|
11
|
-
import './index40.mjs';
|
|
12
|
-
import './index39.mjs';
|
|
13
|
-
|
|
14
|
-
const foodEstablishmentResolver = defineSchemaOrgResolver({
|
|
15
|
-
defaults: {
|
|
16
|
-
"@type": ["Organization", "LocalBusiness", "FoodEstablishment"]
|
|
17
|
-
},
|
|
18
|
-
inheritMeta: [
|
|
19
|
-
{ key: "url", meta: "host" },
|
|
20
|
-
{ key: "currenciesAccepted", meta: "currency" }
|
|
21
|
-
],
|
|
22
|
-
idPrefix: ["host", IdentityId],
|
|
23
|
-
resolve(node, ctx) {
|
|
24
|
-
resolveDefaultType(node, ["Organization", "LocalBusiness", "FoodEstablishment"]);
|
|
25
|
-
node.starRating = resolveRelation(node.starRating, ctx, ratingResolver);
|
|
26
|
-
node = resolveNode(node, ctx, localBusinessResolver);
|
|
27
|
-
return node;
|
|
28
|
-
},
|
|
29
|
-
resolveRootNode(node, ctx) {
|
|
30
|
-
localBusinessResolver.resolveRootNode(node, ctx);
|
|
31
|
-
return node;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
export { foodEstablishmentResolver };
|
package/dist/chunks/index12.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, ad as resolveWithBase, e as resolveRelation, a5 as imageResolver } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
|
|
3
|
-
const howToStepDirectionResolver = defineSchemaOrgResolver({
|
|
4
|
-
cast(node) {
|
|
5
|
-
if (typeof node === "string") {
|
|
6
|
-
return {
|
|
7
|
-
text: node
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
return node;
|
|
11
|
-
},
|
|
12
|
-
defaults: {
|
|
13
|
-
"@type": "HowToDirection"
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const howToStepResolver = defineSchemaOrgResolver({
|
|
18
|
-
cast(node) {
|
|
19
|
-
if (typeof node === "string") {
|
|
20
|
-
return {
|
|
21
|
-
text: node
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return node;
|
|
25
|
-
},
|
|
26
|
-
defaults: {
|
|
27
|
-
"@type": "HowToStep"
|
|
28
|
-
},
|
|
29
|
-
resolve(step, ctx) {
|
|
30
|
-
if (step.url)
|
|
31
|
-
step.url = resolveWithBase(ctx.meta.url, step.url);
|
|
32
|
-
if (step.image) {
|
|
33
|
-
step.image = resolveRelation(step.image, ctx, imageResolver, {
|
|
34
|
-
root: true
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
if (step.itemListElement)
|
|
38
|
-
step.itemListElement = resolveRelation(step.itemListElement, ctx, howToStepDirectionResolver);
|
|
39
|
-
return step;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
const index = {
|
|
44
|
-
__proto__: null,
|
|
45
|
-
howToStepResolver: howToStepResolver
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { howToStepDirectionResolver as a, howToStepResolver as h, index as i };
|
package/dist/chunks/index13.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a6 as setIfEmpty, a7 as idReference, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { d as PrimaryWebPageId } from './index3.mjs';
|
|
3
|
-
import { h as howToStepResolver } from './index12.mjs';
|
|
4
|
-
export { a as howToStepDirectionResolver } from './index12.mjs';
|
|
5
|
-
import 'unhead/plugins';
|
|
6
|
-
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
|
-
import './index16.mjs';
|
|
9
|
-
import './index28.mjs';
|
|
10
|
-
import './index40.mjs';
|
|
11
|
-
import './index39.mjs';
|
|
12
|
-
|
|
13
|
-
const HowToId = "#howto";
|
|
14
|
-
const howToResolver = defineSchemaOrgResolver({
|
|
15
|
-
defaults: {
|
|
16
|
-
"@type": "HowTo"
|
|
17
|
-
},
|
|
18
|
-
inheritMeta: [
|
|
19
|
-
"description",
|
|
20
|
-
"image",
|
|
21
|
-
"inLanguage",
|
|
22
|
-
{ meta: "title", key: "name" }
|
|
23
|
-
],
|
|
24
|
-
idPrefix: ["url", HowToId],
|
|
25
|
-
resolve(node, ctx) {
|
|
26
|
-
node.step = resolveRelation(node.step, ctx, howToStepResolver);
|
|
27
|
-
return node;
|
|
28
|
-
},
|
|
29
|
-
resolveRootNode(node, { find }) {
|
|
30
|
-
const webPage = find(PrimaryWebPageId);
|
|
31
|
-
if (webPage)
|
|
32
|
-
setIfEmpty(node, "mainEntityOfPage", idReference(webPage));
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export { HowToId, howToResolver, howToStepResolver };
|
package/dist/chunks/index14.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, a6 as setIfEmpty } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { listItemResolver } from './index16.mjs';
|
|
3
|
-
import 'unhead/plugins';
|
|
4
|
-
import 'unhead/utils';
|
|
5
|
-
import 'ufo';
|
|
6
|
-
|
|
7
|
-
const itemListResolver = defineSchemaOrgResolver({
|
|
8
|
-
defaults: {
|
|
9
|
-
"@type": "ItemList"
|
|
10
|
-
},
|
|
11
|
-
resolve(node, ctx) {
|
|
12
|
-
if (node.itemListElement) {
|
|
13
|
-
let index = 1;
|
|
14
|
-
node.itemListElement = resolveRelation(node.itemListElement, ctx, listItemResolver, {
|
|
15
|
-
array: true,
|
|
16
|
-
afterResolve(node2) {
|
|
17
|
-
setIfEmpty(node2, "position", index++);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return node;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export { itemListResolver };
|
package/dist/chunks/index15.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a9 as IdentityId, a6 as setIfEmpty, a7 as idReference, a8 as resolvableDateToIso, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { m as monetaryAmountResolver } from '../shared/schema-org.zHUqdMMo.mjs';
|
|
3
|
-
import { d as PrimaryWebPageId, o as organizationResolver } from './index3.mjs';
|
|
4
|
-
import { placeResolver } from './index8.mjs';
|
|
5
|
-
import 'unhead/plugins';
|
|
6
|
-
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
|
-
import './index16.mjs';
|
|
9
|
-
import './index28.mjs';
|
|
10
|
-
import './index40.mjs';
|
|
11
|
-
import './index39.mjs';
|
|
12
|
-
|
|
13
|
-
const jobPostingResolver = defineSchemaOrgResolver({
|
|
14
|
-
defaults: {
|
|
15
|
-
"@type": "JobPosting"
|
|
16
|
-
},
|
|
17
|
-
idPrefix: ["url", "#job-posting"],
|
|
18
|
-
resolve(node, ctx) {
|
|
19
|
-
node.datePosted = resolvableDateToIso(node.datePosted);
|
|
20
|
-
node.hiringOrganization = resolveRelation(node.hiringOrganization, ctx, organizationResolver);
|
|
21
|
-
node.jobLocation = resolveRelation(node.jobLocation, ctx, placeResolver);
|
|
22
|
-
node.baseSalary = resolveRelation(node.baseSalary, ctx, monetaryAmountResolver);
|
|
23
|
-
node.validThrough = resolvableDateToIso(node.validThrough);
|
|
24
|
-
return node;
|
|
25
|
-
},
|
|
26
|
-
resolveRootNode(jobPosting, { find }) {
|
|
27
|
-
const webPage = find(PrimaryWebPageId);
|
|
28
|
-
const identity = find(IdentityId);
|
|
29
|
-
if (identity)
|
|
30
|
-
setIfEmpty(jobPosting, "hiringOrganization", idReference(identity));
|
|
31
|
-
if (webPage)
|
|
32
|
-
setIfEmpty(jobPosting, "mainEntityOfPage", idReference(webPage));
|
|
33
|
-
return jobPosting;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export { jobPostingResolver };
|
package/dist/chunks/index16.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, ad as resolveWithBase, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import 'unhead/plugins';
|
|
3
|
-
import 'unhead/utils';
|
|
4
|
-
import 'ufo';
|
|
5
|
-
|
|
6
|
-
const listItemResolver = defineSchemaOrgResolver({
|
|
7
|
-
cast(node) {
|
|
8
|
-
if (typeof node === "string") {
|
|
9
|
-
node = {
|
|
10
|
-
name: node
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
return node;
|
|
14
|
-
},
|
|
15
|
-
defaults: {
|
|
16
|
-
"@type": "ListItem"
|
|
17
|
-
},
|
|
18
|
-
resolve(node, ctx) {
|
|
19
|
-
if (typeof node.item === "string")
|
|
20
|
-
node.item = resolveWithBase(ctx.meta.host, node.item);
|
|
21
|
-
else if (typeof node.item === "object")
|
|
22
|
-
node.item = resolveRelation(node.item, ctx);
|
|
23
|
-
return node;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export { listItemResolver };
|
package/dist/chunks/index17.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a9 as IdentityId, aa as resolveDefaultType, e as resolveRelation, a as resolveNode } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { openingHoursResolver } from './index24.mjs';
|
|
3
|
-
import { o as organizationResolver } from './index3.mjs';
|
|
4
|
-
import { addressResolver } from './index28.mjs';
|
|
5
|
-
import 'unhead/plugins';
|
|
6
|
-
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
|
-
import './index16.mjs';
|
|
9
|
-
import './index40.mjs';
|
|
10
|
-
import './index39.mjs';
|
|
11
|
-
|
|
12
|
-
const localBusinessResolver = defineSchemaOrgResolver({
|
|
13
|
-
defaults: {
|
|
14
|
-
"@type": ["Organization", "LocalBusiness"]
|
|
15
|
-
},
|
|
16
|
-
inheritMeta: [
|
|
17
|
-
{ key: "url", meta: "host" },
|
|
18
|
-
{ key: "currenciesAccepted", meta: "currency" }
|
|
19
|
-
],
|
|
20
|
-
idPrefix: ["host", IdentityId],
|
|
21
|
-
resolve(node, ctx) {
|
|
22
|
-
resolveDefaultType(node, ["Organization", "LocalBusiness"]);
|
|
23
|
-
node.address = resolveRelation(node.address, ctx, addressResolver);
|
|
24
|
-
node.openingHoursSpecification = resolveRelation(node.openingHoursSpecification, ctx, openingHoursResolver);
|
|
25
|
-
node = resolveNode({ ...node }, ctx, organizationResolver);
|
|
26
|
-
return node;
|
|
27
|
-
},
|
|
28
|
-
resolveRootNode(node, ctx) {
|
|
29
|
-
organizationResolver.resolveRootNode(node, ctx);
|
|
30
|
-
return node;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export { localBusinessResolver };
|
package/dist/chunks/index18.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, ab as resolvableDateToDate } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver, o as organizationResolver } from './index3.mjs';
|
|
4
|
-
import { reviewResolver } from './index32.mjs';
|
|
5
|
-
import { videoResolver } from './index38.mjs';
|
|
6
|
-
import 'unhead/plugins';
|
|
7
|
-
import 'unhead/utils';
|
|
8
|
-
import 'ufo';
|
|
9
|
-
import './index16.mjs';
|
|
10
|
-
import './index28.mjs';
|
|
11
|
-
import './index40.mjs';
|
|
12
|
-
import './index39.mjs';
|
|
13
|
-
import '../shared/schema-org.CrNDsWck.mjs';
|
|
14
|
-
|
|
15
|
-
const movieResolver = defineSchemaOrgResolver({
|
|
16
|
-
defaults: {
|
|
17
|
-
"@type": "Movie"
|
|
18
|
-
},
|
|
19
|
-
resolve(node, ctx) {
|
|
20
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
21
|
-
node.review = resolveRelation(node.review, ctx, reviewResolver);
|
|
22
|
-
node.director = resolveRelation(node.director, ctx, personResolver);
|
|
23
|
-
node.actor = resolveRelation(node.actor, ctx, personResolver);
|
|
24
|
-
node.trailer = resolveRelation(node.trailer, ctx, videoResolver);
|
|
25
|
-
node.productionCompany = resolveRelation(node.productionCompany, ctx, organizationResolver);
|
|
26
|
-
if (node.dateCreated)
|
|
27
|
-
node.dateCreated = resolvableDateToDate(node.dateCreated);
|
|
28
|
-
return node;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { movieResolver };
|
package/dist/chunks/index19.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a8 as resolvableDateToIso, ad as resolveWithBase, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver } from './index3.mjs';
|
|
4
|
-
import { reviewResolver } from './index32.mjs';
|
|
5
|
-
import 'unhead/plugins';
|
|
6
|
-
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
|
-
import './index16.mjs';
|
|
9
|
-
import './index28.mjs';
|
|
10
|
-
import './index40.mjs';
|
|
11
|
-
import './index39.mjs';
|
|
12
|
-
import '../shared/schema-org.CrNDsWck.mjs';
|
|
13
|
-
|
|
14
|
-
const musicAlbumResolver = defineSchemaOrgResolver({
|
|
15
|
-
defaults: {
|
|
16
|
-
"@type": "MusicAlbum"
|
|
17
|
-
},
|
|
18
|
-
idPrefix: "host",
|
|
19
|
-
resolve(node, ctx) {
|
|
20
|
-
if (node.datePublished)
|
|
21
|
-
node.datePublished = resolvableDateToIso(node.datePublished);
|
|
22
|
-
if (node.url)
|
|
23
|
-
node.url = resolveWithBase(ctx.meta.host, node.url);
|
|
24
|
-
node.byArtist = resolveRelation(node.byArtist, ctx, personResolver);
|
|
25
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
26
|
-
node.review = resolveRelation(node.review, ctx, reviewResolver);
|
|
27
|
-
return node;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export { musicAlbumResolver };
|
package/dist/chunks/index2.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import 'unhead/plugins';
|
|
3
|
-
import 'unhead/utils';
|
|
4
|
-
import 'ufo';
|
|
5
|
-
|
|
6
|
-
const aggregateRatingResolver = defineSchemaOrgResolver({
|
|
7
|
-
defaults: {
|
|
8
|
-
"@type": "AggregateRating"
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export { aggregateRatingResolver };
|
package/dist/chunks/index20.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, ab as resolvableDateToDate, ad as resolveWithBase, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { p as personResolver } from './index3.mjs';
|
|
3
|
-
import 'unhead/plugins';
|
|
4
|
-
import 'unhead/utils';
|
|
5
|
-
import 'ufo';
|
|
6
|
-
import './index16.mjs';
|
|
7
|
-
import './index28.mjs';
|
|
8
|
-
import './index40.mjs';
|
|
9
|
-
import './index39.mjs';
|
|
10
|
-
|
|
11
|
-
const musicGroupResolver = defineSchemaOrgResolver({
|
|
12
|
-
defaults: {
|
|
13
|
-
"@type": "MusicGroup"
|
|
14
|
-
},
|
|
15
|
-
idPrefix: "host",
|
|
16
|
-
inheritMeta: [
|
|
17
|
-
{ meta: "host", key: "url" }
|
|
18
|
-
],
|
|
19
|
-
resolve(node, ctx) {
|
|
20
|
-
if (node.foundingDate)
|
|
21
|
-
node.foundingDate = resolvableDateToDate(node.foundingDate);
|
|
22
|
-
if (node.dissolutionDate)
|
|
23
|
-
node.dissolutionDate = resolvableDateToDate(node.dissolutionDate);
|
|
24
|
-
if (node.url)
|
|
25
|
-
node.url = resolveWithBase(ctx.meta.host, node.url);
|
|
26
|
-
node.member = resolveRelation(node.member, ctx, personResolver);
|
|
27
|
-
return node;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export { musicGroupResolver };
|
package/dist/chunks/index21.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a8 as resolvableDateToIso, ad as resolveWithBase, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver } from './index3.mjs';
|
|
4
|
-
import 'unhead/plugins';
|
|
5
|
-
import 'unhead/utils';
|
|
6
|
-
import 'ufo';
|
|
7
|
-
import './index16.mjs';
|
|
8
|
-
import './index28.mjs';
|
|
9
|
-
import './index40.mjs';
|
|
10
|
-
import './index39.mjs';
|
|
11
|
-
|
|
12
|
-
const musicPlaylistResolver = defineSchemaOrgResolver({
|
|
13
|
-
defaults: {
|
|
14
|
-
"@type": "MusicPlaylist"
|
|
15
|
-
},
|
|
16
|
-
idPrefix: "host",
|
|
17
|
-
resolve(node, ctx) {
|
|
18
|
-
if (node.datePublished)
|
|
19
|
-
node.datePublished = resolvableDateToIso(node.datePublished);
|
|
20
|
-
if (node.dateModified)
|
|
21
|
-
node.dateModified = resolvableDateToIso(node.dateModified);
|
|
22
|
-
if (node.url)
|
|
23
|
-
node.url = resolveWithBase(ctx.meta.host, node.url);
|
|
24
|
-
node.creator = resolveRelation(node.creator, ctx, personResolver);
|
|
25
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
26
|
-
return node;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { musicPlaylistResolver };
|
package/dist/chunks/index22.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, a8 as resolvableDateToIso, ad as resolveWithBase, e as resolveRelation } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver } from './index3.mjs';
|
|
4
|
-
import 'unhead/plugins';
|
|
5
|
-
import 'unhead/utils';
|
|
6
|
-
import 'ufo';
|
|
7
|
-
import './index16.mjs';
|
|
8
|
-
import './index28.mjs';
|
|
9
|
-
import './index40.mjs';
|
|
10
|
-
import './index39.mjs';
|
|
11
|
-
|
|
12
|
-
const musicRecordingResolver = defineSchemaOrgResolver({
|
|
13
|
-
defaults: {
|
|
14
|
-
"@type": "MusicRecording"
|
|
15
|
-
},
|
|
16
|
-
idPrefix: "host",
|
|
17
|
-
resolve(node, ctx) {
|
|
18
|
-
if (node.datePublished)
|
|
19
|
-
node.datePublished = resolvableDateToIso(node.datePublished);
|
|
20
|
-
if (node.url)
|
|
21
|
-
node.url = resolveWithBase(ctx.meta.host, node.url);
|
|
22
|
-
if (node.audio)
|
|
23
|
-
node.audio = resolveWithBase(ctx.meta.host, node.audio);
|
|
24
|
-
node.byArtist = resolveRelation(node.byArtist, ctx, personResolver);
|
|
25
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
26
|
-
return node;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { musicRecordingResolver };
|
package/dist/chunks/index23.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { withBase } from 'ufo';
|
|
2
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, a6 as setIfEmpty, ad as resolveWithBase, a8 as resolvableDateToIso } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
3
|
-
import { m as monetaryAmountResolver, q as quantitativeValueResolver } from '../shared/schema-org.zHUqdMMo.mjs';
|
|
4
|
-
import 'unhead/plugins';
|
|
5
|
-
import 'unhead/utils';
|
|
6
|
-
|
|
7
|
-
const merchantReturnPolicyResolver = defineSchemaOrgResolver({
|
|
8
|
-
defaults: {
|
|
9
|
-
"@type": "MerchantReturnPolicy"
|
|
10
|
-
},
|
|
11
|
-
resolve(node, ctx) {
|
|
12
|
-
if (node.returnPolicyCategory)
|
|
13
|
-
node.returnPolicyCategory = withBase(node.returnPolicyCategory, "https://schema.org/");
|
|
14
|
-
if (node.returnFees)
|
|
15
|
-
node.returnFees = withBase(node.returnFees, "https://schema.org/");
|
|
16
|
-
if (node.returnMethod)
|
|
17
|
-
node.returnMethod = withBase(node.returnMethod, "https://schema.org/");
|
|
18
|
-
node.returnShippingFeesAmount = resolveRelation(node.returnShippingFeesAmount, ctx, monetaryAmountResolver);
|
|
19
|
-
return node;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const definedRegionResolver = defineSchemaOrgResolver({
|
|
24
|
-
defaults: {
|
|
25
|
-
"@type": "DefinedRegion"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const shippingDeliveryTimeResolver = defineSchemaOrgResolver({
|
|
30
|
-
defaults: {
|
|
31
|
-
"@type": "ShippingDeliveryTime"
|
|
32
|
-
},
|
|
33
|
-
resolve(node, ctx) {
|
|
34
|
-
node.handlingTime = resolveRelation(node.handlingTime, ctx, quantitativeValueResolver);
|
|
35
|
-
node.transitTime = resolveRelation(node.transitTime, ctx, quantitativeValueResolver);
|
|
36
|
-
return node;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const offerShippingDetailsResolver = defineSchemaOrgResolver({
|
|
41
|
-
defaults: {
|
|
42
|
-
"@type": "OfferShippingDetails"
|
|
43
|
-
},
|
|
44
|
-
resolve(node, ctx) {
|
|
45
|
-
node.deliveryTime = resolveRelation(node.deliveryTime, ctx, shippingDeliveryTimeResolver);
|
|
46
|
-
node.shippingDestination = resolveRelation(node.shippingDestination, ctx, definedRegionResolver);
|
|
47
|
-
node.shippingRate = resolveRelation(node.shippingRate, ctx, monetaryAmountResolver);
|
|
48
|
-
return node;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
const offerResolver = defineSchemaOrgResolver({
|
|
53
|
-
cast(node) {
|
|
54
|
-
if (typeof node === "number" || typeof node === "string") {
|
|
55
|
-
return {
|
|
56
|
-
price: node
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return node;
|
|
60
|
-
},
|
|
61
|
-
defaults: {
|
|
62
|
-
"@type": "Offer",
|
|
63
|
-
"availability": "InStock"
|
|
64
|
-
},
|
|
65
|
-
resolve(node, ctx) {
|
|
66
|
-
setIfEmpty(node, "priceCurrency", ctx.meta.currency);
|
|
67
|
-
setIfEmpty(node, "priceValidUntil", new Date(Date.UTC((/* @__PURE__ */ new Date()).getFullYear() + 1, 12, -1, 0, 0, 0)));
|
|
68
|
-
if (node.url)
|
|
69
|
-
resolveWithBase(ctx.meta.host, node.url);
|
|
70
|
-
if (node.availability)
|
|
71
|
-
node.availability = withBase(node.availability, "https://schema.org/");
|
|
72
|
-
if (node.itemCondition)
|
|
73
|
-
node.itemCondition = withBase(node.itemCondition, "https://schema.org/");
|
|
74
|
-
if (node.priceValidUntil)
|
|
75
|
-
node.priceValidUntil = resolvableDateToIso(node.priceValidUntil);
|
|
76
|
-
node.hasMerchantReturnPolicy = resolveRelation(node.hasMerchantReturnPolicy, ctx, merchantReturnPolicyResolver);
|
|
77
|
-
node.shippingDetails = resolveRelation(node.shippingDetails, ctx, offerShippingDetailsResolver);
|
|
78
|
-
return node;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export { offerResolver };
|
package/dist/chunks/index24.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import 'unhead/plugins';
|
|
3
|
-
import 'unhead/utils';
|
|
4
|
-
import 'ufo';
|
|
5
|
-
|
|
6
|
-
const openingHoursResolver = defineSchemaOrgResolver({
|
|
7
|
-
defaults: {
|
|
8
|
-
"@type": "OpeningHoursSpecification",
|
|
9
|
-
"opens": "00:00",
|
|
10
|
-
"closes": "23:59"
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export { openingHoursResolver };
|
package/dist/chunks/index25.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, a8 as resolvableDateToIso } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver } from './index3.mjs';
|
|
4
|
-
import { reviewResolver } from './index32.mjs';
|
|
5
|
-
import 'unhead/plugins';
|
|
6
|
-
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
|
-
import './index16.mjs';
|
|
9
|
-
import './index28.mjs';
|
|
10
|
-
import './index40.mjs';
|
|
11
|
-
import './index39.mjs';
|
|
12
|
-
import '../shared/schema-org.CrNDsWck.mjs';
|
|
13
|
-
|
|
14
|
-
const podcastEpisodeResolver = defineSchemaOrgResolver({
|
|
15
|
-
defaults: {
|
|
16
|
-
"@type": "PodcastEpisode"
|
|
17
|
-
},
|
|
18
|
-
inheritMeta: [
|
|
19
|
-
"inLanguage"
|
|
20
|
-
],
|
|
21
|
-
resolve(node, ctx) {
|
|
22
|
-
node.author = resolveRelation(node.author, ctx, personResolver);
|
|
23
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
24
|
-
node.review = resolveRelation(node.review, ctx, reviewResolver);
|
|
25
|
-
if (node.datePublished)
|
|
26
|
-
node.datePublished = resolvableDateToIso(node.datePublished);
|
|
27
|
-
if (node.uploadDate)
|
|
28
|
-
node.uploadDate = resolvableDateToIso(node.uploadDate);
|
|
29
|
-
return node;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { podcastEpisodeResolver };
|
package/dist/chunks/index26.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, a8 as resolvableDateToIso } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { aggregateRatingResolver } from './index2.mjs';
|
|
3
|
-
import { p as personResolver, o as organizationResolver } from './index3.mjs';
|
|
4
|
-
import 'unhead/plugins';
|
|
5
|
-
import 'unhead/utils';
|
|
6
|
-
import 'ufo';
|
|
7
|
-
import './index16.mjs';
|
|
8
|
-
import './index28.mjs';
|
|
9
|
-
import './index40.mjs';
|
|
10
|
-
import './index39.mjs';
|
|
11
|
-
|
|
12
|
-
const podcastSeasonResolver = defineSchemaOrgResolver({
|
|
13
|
-
defaults: {
|
|
14
|
-
"@type": "PodcastSeason"
|
|
15
|
-
},
|
|
16
|
-
resolve(node, ctx) {
|
|
17
|
-
node.actor = resolveRelation(node.actor, ctx, personResolver);
|
|
18
|
-
node.director = resolveRelation(node.director, ctx, personResolver);
|
|
19
|
-
node.productionCompany = resolveRelation(node.productionCompany, ctx, organizationResolver);
|
|
20
|
-
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
21
|
-
if (node.datePublished)
|
|
22
|
-
node.datePublished = resolvableDateToIso(node.datePublished);
|
|
23
|
-
if (node.startDate)
|
|
24
|
-
node.startDate = resolvableDateToIso(node.startDate);
|
|
25
|
-
if (node.endDate)
|
|
26
|
-
node.endDate = resolvableDateToIso(node.endDate);
|
|
27
|
-
return node;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export { podcastSeasonResolver };
|